lucene-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/SOLR-4646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13620865#comment-13620865
] 

Jack Krupansky commented on SOLR-4646:
--------------------------------------

bq. up to 4.2 you get one behavior, and after that you get a different one

Hmmm... I would think that as a general proposition, intentional, incompatible behavior changes
should be limited to major releases of trunk, and not to dot releases, where the expectation
is that existing apps should still "just work" unless the issue is clearly a bug. In this
case, sure, some people consider it a bug, but the reality is that they just don't like the
default for some cases.

So, if you want to propose this "improvement" for trunk, 5.0, fine. But I don't think it is
appropriate to change the rules of the road in a dot release - unless it is a compelling,
global problem - which it doesn't appear to be. I mean, the subset of apps that do have an
issue with this have a very simple workaround (set lowercaseOperators to false in "defaults"
in their query request handler.)

And to be clear, support for lower case operators is an intentional feature. Granted, not
everyone agrees, now.


                
> lowercaseOperators is enabled by default for edismax query parser
> -----------------------------------------------------------------
>
>                 Key: SOLR-4646
>                 URL: https://issues.apache.org/jira/browse/SOLR-4646
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.1, 4.2
>            Reporter: Alexander Koval
>
> [Documentation|http://wiki.apache.org/solr/ExtendedDisMax#lowercaseOperators] 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}}
parameter:
> * {{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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message