lucene-dev mailing list archives

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


Jack Krupansky commented on SOLR-4646:

-1 but... I won't strenuously resist the proposed change.

In some sense, it is a reasonable change - edismax is closer to the traditional Solr query

But, in a larger sense, the original goal od edismax was to try to establish a new and higher
bar of usability - the idea that you have to use upper case for keywords is a holdover from
the crude old days of search. Sure, we have the option to disable this "improvement", but
somehow the cultural knowledge of the motivation for that improvement seems to have gotten
lost, and now people are retreating to the barbaric past of primitive search.

Also, the discussion has failed to note that the pf2 and pf3 parameters will actually include
the operator keywords for phrase boosting. For example, a query for "in and out or not" (no
quotes) will do boosting for "in and out", "and out or", and "out or not", so relevance will
be quite decent - even or Norwegion text!

So, I don't see what significant downside the proposed change would fix, at the cost of defaulting
to a more old-fashioned approach to search.

> lowercaseOperators is enabled by default for edismax query parser
> -----------------------------------------------------------------
>                 Key: SOLR-4646
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.1, 4.2
>            Reporter: Alexander Koval
> [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