lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] [Commented] (SOLR-4646) lowercaseOperators is enabled by default for edismax query parser
Date Wed, 03 Apr 2013 18:01:20 GMT


Mark Miller commented on SOLR-4646:

bq. Right - lowercase "and" and "or" were meant to be a natural language improvement (while
not being that bad when used as literals instead of operators). 

That's why its a nice option.  The better default allows you to be explicit in this case.
Guessing operators makes a much better option.
> lowercaseOperators is enabled by default for edismax query parser
> -----------------------------------------------------------------
>                 Key: SOLR-4646
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: query parsers
>    Affects Versions: 4.1, 4.2
>            Reporter: Alexander Koval
>            Priority: Trivial
> [Documentation|] says:
> *lowercaseOperators*
> This param controls whether to try to interpret lowercase words as boolean operators
such as "and", "not" and "or". Set {{&lowercaseOperators=true}} to allow this. Default
is {{"*false*"}}.
> But in fact {{lowercaseOperators=true}} by default.
> And if one of boolean operators in lowercase is present in query it turns off {{mm}}
> * {{q=Young+6+or+Ariston&defType=edismax&qf=name&mm=100%25&debugQuery=true}}
>   {{"parsedquery_toString": "+((name:young) (name:6) (name:ariston))"}}
> * {{q=Young+6+or+Ariston&defType=edismax&qf=name&mm=100%25&lowercaseOperators=false&debugQuery=true}}
>   {{"parsedquery_toString": "+(((name:young) (name:6) (name:ariston))~3)"}}

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message