Hi,
I am trying to configure synonym filter.
my requirement is:
when user searching by phrase like "what is solr user?" then it should
be replace with "solr user".
something like : what is solr user? => solr user
My schema for particular field is:
<fieldType name="text_sync" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.TrimFilterFactory" />
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true" tokenizerFactory="KeywordTokenizerFactory"/>
</analyzer>
</fieldType>
it seems working fine while trying by analysis.jsp but not by url
http://localhost:8080/solr/core0/select?q="what is solr user?"
or
http://localhost:8080/solr/core0/select?q=what is solr user?
Please guide me for achieve desire result.