lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Etévé <jerome.et...@gmail.com>
Subject Synonym aware string field typ
Date Tue, 04 Aug 2009 11:33:28 GMT
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:

<fieldType name="sastring" class="solr.StrField">
  <analyzer type="query">
       <tokenizer class="solr.KeywordTokenizerFactory"/>
               <filter class="solr.SynonymFilterFactory"
tokenizerFactory="solr.KeywordTokenizerFactory"
synonyms="my_synonyms.txt" ignoreCase="true"/>
   </analyzer>

</fieldType>


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

jerome@eteve.net

Mime
View raw message