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

Shawn Heisey commented on SOLR-4646:
------------------------------------

The comment from [~dsmiley] talks about implementation.  My opinion below is 
about the default setting.

I think the default should be false.  There are plenty of situations where the 
word that gets turned into an operator is better suited as part of the query.  
For example, "q=peaches and cream" is an example where "and" as a term can be 
extremely important to obtaining relevant results.  Depending on the content in 
the index, it can be a very different query than "q=peaches AND cream".  With 
the current default, you can only achieve the latter query, unless you do 
tricks like stick an escape in the operator:

{code}
q=peaches an\d cream
{code}

Lowercase operators is a feature that many people want, so it's a good thing 
that we have this setting.  In my opinion, enabling it by default is the wrong 
thing to do.

> 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: Improvement
>          Components: query parsers
>    Affects Versions: 4.1, 4.2
>            Reporter: Alexander Koval
>            Priority: Trivial
>
> [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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to