I have two different collections- test1 and test3 in SolrCloud. When I search for "BUG-123"
in test1 I see following parsed query in debug section.
"debug": {
"rawquerystring": "\"BUG-123\"",
"querystring": "\"BUG-123\"",
"parsedquery": "PhraseQuery(_text_:\"bug 123\")",
"parsedquery_toString": "_text_:\"bug 123\"",
...}
Whereas When I search for "BUG-123"
in test3
I see following parsed query in debug section.
"debug": {
"rawquerystring": "\"BUG-123\"",
"querystring": "\"BUG-123\"",
"parsedquery": "PhraseQuery(_text_:\"bug ? 123\")",
"parsedquery_toString": "_text_:\"bug ? 123\"",
...}
Please note in case of test3
, "-"
character gets replaced with "?"
. Due to this I do not get any documents in search result.
I need help to understand why -
gets replaced with ?
and how to avoid it.