Yes, you need to specify one or the other then, index-time or query-time, depending on where you want your synonyms to kick in.
Eh, hitting reply to this email used your personal email instead of solr-user@lucene.apache.org . Eh eh. Making it hard for people replying to keep the discussion on the list without doing extra work.... Otis -- Sematext is hiring -- http://sematext.com/about/jobs.html?mls Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR ----- Original Message ---- > From: Jérôme Etévé <jerome.et...@gmail.com> > To: Otis Gospodnetic <otis_gospodne...@yahoo.com> > Cc: solr-user@lucene.apache.org > Sent: Tuesday, August 4, 2009 12:39:33 PM > Subject: Re: Synonym aware string field typ > > Hi Otis, > > Thanks. Yep, this synonym behaviour is the one I want. > > So if I don't want the synonyms to be applied at index time, I need > to specify an index time analyzer right ? > > Jerome. > > > 2009/8/4 Otis Gospodnetic : > > Hi, > > > > KeywordTokenizer will not tokenize your string. I have a feeling that > > won't > work with synonyms, unless your field value entirely match a synonym. Maybe > an > example would help: > > > > If you have: > > foo canine bar > > Then KeywordTokenizer won't break this into 3 tokens. > > And then canine/dog synonym won't work. > > > > Yes, if you define the analyzer like that, it will be used both at index > > and > query time. > > > > Otis > > -- > > Sematext is hiring -- http://sematext.com/about/jobs.html?mls > > Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR > > > > > > > > ----- Original Message ---- > >> From: Jérôme Etévé > >> To: solr-user@lucene.apache.org > >> Sent: Tuesday, August 4, 2009 7:33:28 AM > >> Subject: Synonym aware string field typ > >> > >> Hi all, > >> > >> I'd like to have a string type which is synonym aware at query time. > >> Is it ok to have something like that: > >> > >> > >> > >> > >> > >> tokenizerFactory="solr.KeywordTokenizerFactory" > >> synonyms="my_synonyms.txt" ignoreCase="true"/> > >> > >> > >> > >> > >> > >> My questions are: > >> > >> - Will the index time analyzer stay the default for the type solr.StrField > >> . > >> - Is the KeywordTokenizerFactory the right one to use for the query > >> time analyzer ? > >> > >> Cheers! > >> > >> Jerome. > >> > >> -- > >> Jerome Eteve. > >> > >> Chat with me live at http://www.eteve.net > >> > >> jer...@eteve.net > > > > > > > > -- > Jerome Eteve. > > Chat with me live at http://www.eteve.net > > jer...@eteve.net