lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajini maski <>
Subject Facing problem with white space in synonyms
Date Wed, 27 Apr 2011 12:18:11 GMT
   Query related to solr synonymfilterfactory.  I am using Solr 1.4.1.

I have datatype field "textSynonym"

 <fieldType name="textSynonym" class="solr.TextField"
positionIncrementGap="100" >
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
 <field name="BODY" type="textSynonym" indexed="true" stored="true"/>
 The steps followed are :

1) synonym.txt has  many words separated with a white space . Example
: Hindclaw, Hind claw
2) Indexed a word  -  "Hindclaw"

3) In analysis page, searched this word. BODY(field name):Hindclaw
 4) Output obtained for "Hindclaw" is  Hindclaw, Hind and claw.
It separated based on white space as well. Note: I have not used white space
tokenizer for this data type.

What is the error?

Thanks and Regards,
Rajani Maski

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message