[
https://issues.apache.org/jira/browse/SOLR-8409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15053998#comment-15053998
]
Dennis Gove commented on SOLR-8409:
-----------------------------------
It looks like this
{code}
presentTitles:\"chief executive officer\" AND age:[36 TO *]
{code}
I suspect that the \" is the culprit here because the streaming expression
parser does not remove the \ before the quote. As such, and this is a hunch, I
suspect that the query parser is seeing \" and not considering it a quote that
is starting a phase but instead a quote that is just part of the string being
searched.
{code}
chief executive officer
{code}
I believe this can be fixed by adding logic into the expression parser that
will transform \" into " and in fact I've written that code (very simple) but
my lack of ability to replicate in a unit test is preventing me from ensuring
the issue is actually fixed.
> Complex q param in Streaming Expression results in a bad query
> --------------------------------------------------------------
>
> Key: SOLR-8409
> URL: https://issues.apache.org/jira/browse/SOLR-8409
> Project: Solr
> Issue Type: Bug
> Components: SolrJ
> Affects Versions: Trunk, 6.0
> Reporter: Dennis Gove
> Priority: Minor
> Labels: streaming, streaming_api
>
> When providing an expression like
> {code}
> stream=search(people, fl="id,first", sort="first asc",
> q="presentTitles:\"chief executive officer\" AND age:[36 TO *]")
> {code}
> the following error is seen.
> {code}
> no field name specified in query and no default specified via 'df' param
> {code}
> I believe the issue is related to the \" (escaped quotes) and the spaces in
> the q field. If I remove the spaces then the query returns results as
> expected (though I've yet to validate if those results are accurate).
> This requires some investigation to get down to the root cause. I would like
> to fix it before Solr 6 is cut.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]