Hi,

I have always been using solr fq on string fields. Recently I need to apply
fq on one text field defined as follows:

<fieldtype name=“simpletext” class="solr.TextField"
*autoGeneratePhraseQueries="true"*>

       <analyzer type="*index*">

           <tokenizer class="solr.StandardTokenizerFactory"/>

           <filter class="solr.LowerCaseFilterFactory"/>

       </analyzer>

       <analyzer type="*query*">

           <tokenizer class="solr.StandardTokenizerFactory"/>

           <filter class="solr.LowerCaseFilterFactory”/>

       </analyzer>

</fieldtype>


<field name=“description” type=“*simpletext*” indexed="true" stored="true"/>


For query q=*:*&fq=description:”ice cream”,  the filter query returns
matches for “ice cream bar”  and “vanilla ice cream” , but does not match
for “ice cold cream”.

The results seem neither exact match nor phrase match. What's the expected
behavior for fq on text fields?  I have tried to look into the solr docs
but there is no clear explanation.

Thanks,
Wei

Reply via email to