You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erik Hatcher (JIRA)" <ji...@apache.org> on 2013/01/09 13:08:15 UTC

[jira] [Comment Edited] (SOLR-874) Dismax parser exceptions on trailing OPERATOR

    [ https://issues.apache.org/jira/browse/SOLR-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548410#comment-13548410 ] 

Erik Hatcher edited comment on SOLR-874 at 1/9/13 12:07 PM:
------------------------------------------------------------

I started to dig into this for 4.1, but it's hairier than I thought with edge cases that need to be accounted for.  Moving this to 5.0 since I won't have time to deal with this for 4.1, sorry.
                
      was (Author: ehatcher):
    I started to dig into this for 4.1, but it's hairier than I thought with edge cases that need to be accounted for.  Moving this to 5.0 since I won't have time to make deal with this for 4.1, sorry.
                  
> Dismax parser exceptions on trailing OPERATOR
> ---------------------------------------------
>
>                 Key: SOLR-874
>                 URL: https://issues.apache.org/jira/browse/SOLR-874
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 1.3
>            Reporter: Erik Hatcher
>             Fix For: 5.0
>
>         Attachments: SOLR-874-1.3.patch, SOLR-874-1.4.1.patch, SOLR-874.patch
>
>
> Dismax is supposed to be immune to parse exceptions, but alas it's not:
> http://localhost:8983/solr/select?defType=dismax&qf=name&q=ipod+AND
> kaboom!
> Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse 'ipod AND': Encountered "<EOF>" at line 1, column 8.
> Was expecting one of:
>     <NOT> ...
>     "+" ...
>     "-" ...
>     "(" ...
>     "*" ...
>     <QUOTED> ...
>     <TERM> ...
>     <PREFIXTERM> ...
>     <WILDTERM> ...
>     "[" ...
>     "{" ...
>     <NUMBER> ...
>     <TERM> ...
>     "*" ...
>     
> 	at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:175)
> 	at org.apache.solr.search.DismaxQParser.parse(DisMaxQParserPlugin.java:138)
> 	at org.apache.solr.search.QParser.getQuery(QParser.java:88)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org