renatoh commented on PR #4475:
URL: https://github.com/apache/solr/pull/4475#issuecomment-4606298194
@dsmiley I am wondering about the AND/must case. With dismax the query:
`q.op=AND&q=black and pink&qf=title_txt_en`
turns into:
`+(DisjunctionMaxQuery((title_txt_en:black))
DisjunctionMaxQuery((title_txt_en:pink)))~2 ()`
The stopword is remove entirely and documents with black and pink are
returned.
With the Bool-Parser:
`q=({!bool must=$w1 must=$w2
must=$w3})&w1=(title_txt_en:luggage)&w2=(title_txt_en:and)&w3=(title_txt_en:pink)`
before change:
`+title_txt_en:black +() +title_txt_en:pink`
after change:
`+MatchNoDocsQuery(MatchNoDocsQuery(\"empty query\")) +title_txt_en:pink
+title_txt_en:black`
The clause with a stopword only result in no documents being returned,
before and after my change.
Wouldn't you expect that an empty clause does not have an impact on the
documents matching?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]