Indeed - I assumed that only the "+" and "-" characters had any
special meaning when parsing dismax queries and that all other content
would be treated just as keywords.  That seems to be how it's
described in the dismax documentation?

Looks like this is a relevant issue (is there another)?

https://issues.apache.org/jira/browse/SOLR-874

-Peter

On Mon, Jul 13, 2009 at 4:12 PM, Mark Miller<markrmil...@gmail.com> wrote:
> It doesn't ignore OR and AND, though it probably should. I think there is a
> JIRA issue for it somewhere.
>
> On Mon, Jul 13, 2009 at 4:10 PM, Peter Wolanin 
> <peter.wola...@acquia.com>wrote:
>
>> 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
>>
>
>
>
> --
> --
> - Mark
>
> http://www.lucidimagination.com
>



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

Reply via email to