I can still generate this error with Solr built from svn trunk just now. http://localhost:8983/solr/select/?qt=dismax&q=OR+vti+OR+foo
I'm doubly perplexed by this since 'or' is in the stopwords file. -Peter On Mon, Jul 13, 2009 at 3:15 PM, Peter Wolanin<peter.wola...@acquia.com> wrote: > 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 > -- Peter M. Wolanin, Ph.D. Momentum Specialist, Acquia. Inc. peter.wola...@acquia.com