Hello list, first time posting here. I am trying to find an answer to
a strange search behaviour we're finding in our VuFind application. In
order to eliminate any VuFind related variables, I have used the
vanilla Solr example schema to try our problematic search.
I posted this xml to the example schema, slightly modified version of
the monitor.xml for testing:
<add><doc>
<field name="id">1</field>
<field name="name">In pursuit of the PhD</field>
<field name="manu">Dell, Inc.</field>
<field name="cat">electronics</field>
<field name="cat">monitor</field>
<field name="features">In pursuit of the PhD</field>
<field name="includes">In pursuit of the PhD</field>
<field name="weight">401.6</field>
<field name="price">2199</field>
<field name="popularity">6</field>
<field name="inStock">true</field>
</doc></add>
Then run a query in the admin interface with debug on and got no match:
features:PhD
The debug info shows:
<str name="rawquerystring">features:PhD</str>
<str name="querystring">features:PhD</str>
<str name="parsedquery">PhraseQuery(features:"ph d")</str>
<str name="parsedquery_toString">features:"ph d"</str>
But, In the analysis tool, it shows a match for the split "ph d" given
the query term PhD.
If I set the splitOnCaseChange=0 option in the WordDelimiterFilter,
then a match is found as expected.
I appreciate any insight on this problem. Thanks in advance.
Tuan