I have been getting exceptions thrown when users try to send boolean
queries into the dismax handler.  In particular, with a leading 'OR'.
I'm really not sure why this happens - I thought the dsimax parser
ignored AND/OR?

I'm using rev 779609 in case there were recent changes to this.  Is
this a known issue?


Jul 13, 2009 1:47:06 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException:
org.apache.lucene.queryParser.ParseException: Cannot parse 'OR vti OR
bin OR vti OR aut OR author OR dll': Encountered " <OR> "OR "" at line
1, column 0.
Was expecting one of:
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    "*" ...
    <QUOTED> ...
    <TERM> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...
    <TERM> ...
    "*" ...

        at 
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:110)
        at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:174)
        at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)



-- 
Peter M. Wolanin, Ph.D.
Momentum Specialist,  Acquia. Inc.
peter.wola...@acquia.com

Reply via email to