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 <otis_gospodne...@yahoo.com>:
> 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é <jerome.et...@gmail.com>
>> 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

Reply via email to