[ https://issues.apache.org/jira/browse/SOLR-4646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903047#comment-14903047 ]
David Smiley commented on SOLR-4646: ------------------------------------ This is an old conversation but I hit this today (from real user queries) and thought I'd offer my opinion. Allowing lowercase operators, _as it's currently implemented in edismax_ is trappy. A user might type "foo bar or baz", and based on how edismax is implemented, "foo" will always be BooleanClause.Occur.SHOULD ('mm' is ignored, 'q.op' is ignored). I'd feel better about it if in this mode, the default operator was set to AND. Nonetheless I think this feature is trappy; users don't necessarily know this syntax and it's implications. > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org