Re: Search query with & without question mark

2019-01-14 Thread Elizabeth Haubert
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

Re: Search query with & without question mark

2019-01-13 Thread Jay Potharaju
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:

Re: Search query with & without question mark

2019-01-13 Thread Erick Erickson
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.

Search query with & without question mark

2019-01-13 Thread Jay Potharaju
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