You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Matteo Grolla (JIRA)" <ji...@apache.org> on 2016/05/23 09:51:12 UTC
[jira] [Created] (SOLR-9149) bug when nested query precedes the
main query
Matteo Grolla created SOLR-9149:
-----------------------------------
Summary: bug when nested query precedes the main query
Key: SOLR-9149
URL: https://issues.apache.org/jira/browse/SOLR-9149
Project: Solr
Issue Type: Bug
Affects Versions: 5.4.1
Reporter: Matteo Grolla
I have a problem with nested queries
If the order is:
1) query
2) nested query (embedded in _query_:"...")
everything works fine
if it is the opposite, like this
http://localhost:8983/solr/test/select?q=_query_:%22{!lucene%20df=name_t}(\%22black%20dog\%22)%22%20OR%20name_t:%22white%20cat%22~20&debug=true
then the span query "white cat"~20
becomes a phrase query "white cat"
if both queries are embedded in _query_:"..." the behaviour is correct.
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">8</int>
<lst name="params">
<str name="q">
_query_:"{!lucene df=name_t}(\"black dog\")" OR name_t:"white cat"~20
</str>
<str name="debug">true</str>
</lst>
</lst>
<result name="response" numFound="0" start="0"/>
<lst name="debug">
<str name="rawquerystring">
_query_:"{!lucene df=name_t}(\"black dog\")" OR name_t:"white cat"~20
</str>
<str name="querystring">
_query_:"{!lucene df=name_t}(\"black dog\")" OR name_t:"white cat"~20
</str>
<str name="parsedquery">
PhraseQuery(name_t:"black dog") PhraseQuery(name_t:"white cat")
</str>
<str name="parsedquery_toString">name_t:"black dog" name_t:"white cat"</str>
<lst name="explain"/>
<str name="QParser">LuceneQParser</str>
a simpler example is
_query_:"ABC" name_t:"white cat"~3
is parsed to
text:abc name_t:"white cat"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org