On 11/17/21 9:00 AM, Scott Q. wrote:
I am facing a weird issue, possibly caused by my config.
I have indexed a document which has a field called subject, subject is
defined as:
<snip> -- the definition you included is blank in the email that I got.
I do not know why. If it was an email attachment, the mailing list eats
almost all attachments that get sent.
I have a document with subject field: cobrancas E-mail marketing em
dezembro, 2020 - referente ao uso de novembro
If I search for subject:"cobrancas e-mail" then it finds the document,
but if I search for subject:"cobrancas e-mail marketing" I have no
match.
Why would this happen ?
There could be a lot of reasons. My best guess at the moment is that
you have stemming configured on the analysis chain and the phrase search
(quotes) is making that NOT happen on the query analysis. The analysis
tab in the admin UI unfortunately cannot show you what happens with a
phrase query. Ordinarily I would suggest using that to see what
happens, but in this case we can't do that.
Can you share your schema file? It is usually named managed-schema (with
no extension) or schema.xml, depending on solrconfig.xml.
Also, if you add a "debugQuery=true" parameter to the query request, you
can see how Solr ultimately analyzes and parses the query. I would like
to see the full response with debug enabled, both on the search that
succeeds and the one that fails. And if you can do another search for
subject:(cobrancas e-mail marketing), replacing the quotes with
parentheses, I would like to see the debug output from that as well.
What version of Solr, and was it installed from the binary release download?
Thanks,
Shawn