Hi tom This seems to place in the index This is a scenic line of words I just want scenic and words in the index
I'm not at a terminal at the moment but will try again to make sure. I'm sure I'm missing the obvious Cheers lee On 7 Dec 2010 07:40, "Tom Hill" <solr-l...@worldware.com> wrote: > Hi Lee, > > > On Mon, Dec 6, 2010 at 10:56 PM, lee carroll > <lee.a.carr...@googlemail.com> wrote: >> Hi Erik > > Nope, Erik is the other one. :-) > >> thanks for the reply. I only want the synonyms to be in the index >> how can I achieve that ? Sorry probably missing something obvious in the >> docs > > Exactly what he said, use the => syntax. You've already got it. Add the lines > > pretty => scenic > text => words > > to synonyms.txt, and it will do what you want. > > Tom > >> On 7 Dec 2010 01:28, "Erick Erickson" <erickerick...@gmail.com> wrote: >>> See: >>> >> http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory >>> >>> with the => syntax, I think that's what you're looking for >>> >>> Best >>> Erick >>> >>> On Mon, Dec 6, 2010 at 6:34 PM, lee carroll < lee.a.carr...@googlemail.com >>>wrote: >>> >>>> Hi Can the following usecase be achieved. >>>> >>>> value to be analysed at index time "this is a pretty line of text" >>>> >>>> synonym list is pretty => scenic , text => words >>>> >>>> valued placed in the index is "scenic words" >>>> >>>> That is to say only the matching synonyms. Basically i want to produce a >>>> normalised set of phrases for faceting. >>>> >>>> Cheers Lee C >>>> >>