[
https://issues.apache.org/jira/browse/SOLR-6282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14142610#comment-14142610
]
Anurag Sharma commented on SOLR-6282:
-------------------------------------
Jason - There is syntax error of unequal parenthesis in your query.
Tried similar query scenario having special characters, length, spaces, etc.
using books.csv schema in exampledocs. It works without any issue. The request
and response are:
http://localhost:8983/solr/select?q=((title%22%20rtb%22%20)%20OR%20title:%22%20rtb%22^100)%20AND%20((author%20fly~0.75%20street~0.75%20gang~0.75%20)^7%20OR%20author:%22%20fly%20street%20gang%20%22^30)
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">4</int>
<lst name="params">
<str name="q">
((title" rtb" ) OR title:" rtb"^100) AND ((author fly~0.75 street~0.75
gang~0.75 )^7 OR author:" fly street gang "^30)
</str>
</lst>
</lst>
<result name="response" numFound="0" start="0"/>
</response>
Also tried query with unequal parentheses which clearly gave syntax error. Here
are the request and response:
http://localhost:8983/solr/select?q=((title%22%20rtb%22%20)%20OR%20title:%22%20rtb%22^100)%20AND%20((author%20fly~0.75%20street~0.75%20gang~0.75%20)^7%20OR%20author:%22%20fly%20street%20gang%20%22^30))
<response>
<lst name="responseHeader">
<int name="status">400</int>
<int name="QTime">10</int>
<lst name="params">
<str name="q">
((title" rtb" ) OR title:" rtb"^100) AND ((author fly~0.75 street~0.75
gang~0.75 )^7 OR author:" fly street gang "^30))
</str>
</lst>
</lst>
<lst name="error">
<str name="msg">
org.apache.solr.search.SyntaxError: Cannot parse '((title" rtb" ) OR title:"
rtb"^100) AND ((author fly~0.75 street~0.75 gang~0.75 )^7 OR author:" fly
street gang "^30))': Encountered " ")" ") "" at line 1, column 118. Was
expecting one of: <EOF> <AND> ... <OR> ... <NOT> ... "+" ... "-" ... <BAREOPER>
... "(" ... "*" ... "^" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM>
... <REGEXPTERM> ... "[" ... "{" ... <LPARAMS> ... <NUMBER> ...
</str>
<int name="code">400</int>
</lst>
</response>
I did not see ArrayIndexOutOfBoundsException for any of the above queries.
Please provide valid schema and data to reproduce the issue.
> ArrayIndexOutOfBoundsException during search
> --------------------------------------------
>
> Key: SOLR-6282
> URL: https://issues.apache.org/jira/browse/SOLR-6282
> Project: Solr
> Issue Type: Bug
> Components: query parsers
> Affects Versions: 4.8
> Reporter: Jason Emeric
> Priority: Critical
> Labels: difficulty-medium, impact-low
>
> When executing a search with the following query strings a
> ERROR org.apache.solr.servlet.SolrDispatchFilter รข
> null:java.lang.ArrayIndexOutOfBoundsException
> error is thrown and no stack trace is provided. This is happening on
> searches that seem to have no similar pattern to them (special characters,
> length, spaces, etc.)
> q=((work_title_search:(%22+zoe%22%20)%20OR%20work_title_search:%22+zoe%22^100)%20AND%20(performer_name_search:(+big~0.75%20+b%27z%20%20)^7%20OR%20performer_name_search:%22+big%20+b%27z%20%20%22^30))
> q=((work_title_search:(%22+rtb%22%20)%20OR%20work_title_search:%22+rtb%22^100)%20AND%20(performer_name_search:(+fly~0.75%20+street~0.75%20+gang~0.75%20)^7%20OR%20performer_name_search:%22+fly%20+street%20+gang%20%22^30))
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]