Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4646

[edismax] let lowercaseOperators default to "false"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.1, 4.2
    • 7.0
    • query parsers
    • None

    Description

      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 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)"

      Attachments

        1. SOLR-4646.patch
          5 kB
          Jan Høydahl
        2. SOLR-4646.patch
          383 kB
          Jan Høydahl
        3. SOLR-4646.patch
          5 kB
          Jan Høydahl
        4. SOLR-4646.patch
          4 kB
          Jan Høydahl

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              anti_social Alexander Koval
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: