On 6/24/2019 5:37 PM, Wei wrote:
<field name=“description” type=“*simpletext*” indexed="true" stored="true"/>
I'm assuming that the asterisks here are for emphasis, that they are not actually present. This can be very confusing. It is far better to relay the precise information and not try to emphasize anything.
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.
If the quotes are present in what you actually sent to Solr, then that IS a phrase query. And that is why it did not match your third example.
Try one of these instead: q=*:*&fq=description:(ice cream) q=*:*&fq=description:ice description:cream) Thanks, Shawn