Because the standard query parser treats '?' as a single-character wildcard:
https://lucene.apache.org/solr/guide/6_6/the-standard-query-parser.html
So in the case q="how do I add a field", the word "field" in your document
matches. In the second case q="how do I add a field?" it is looking for
t
the parsedquery is same when debugging, but when calculating the scores
different fields are being taken into consideration. Why would that be the
case? My guess is that the suggeststopfilterfactory is not working as i
expect it to and causing this weird situation.
Updated field type definition:
What does adding &debug=query show in both cases?
Best,
Erick
On Sun, Jan 13, 2019 at 9:30 PM Jay Potharaju wrote:
>
> Hi,
> When searching I get different results when the query contains question
> mark vs without question mark . The field i am searching on does not have
> any question marks.
Hi,
When searching I get different results when the query contains question
mark vs without question mark . The field i am searching on does not have
any question marks.
Any suggestions?
<
tokenizer class="solr.StandardTokenizerFactory"/> <
filter class="solr.LowerCaseFilterFactory"/>
T