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

When sow=false, edismax&standard query parsers should handle per-fieldtype autoGeneratePhraseQueries by setting QueryBuilder.autoGenerateMultiTermSynonymsQuery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      Right now, the options to not split on whitespace (sow=false) and to autogenerate phrase queries (autoGeneratePhraseQueries="true") will cause queries to throw an exception, since they are incompatible.

      QueryBuilder.autoGenerateMultiTermSynonymsPhraseQuery, introduced in LUCENE-7638, is the graph query version of Solr's per-fieldtype autoGeneratePhraseQueries option, and is not incompatible with sow=false.

      So autoGeneratePhraseQueries="true" should cause QueryBuilder.autoGenerateMultiTermSynonymsPhraseQuery to be set to true when sow=false, rather than triggering an exception.

        Attachments

        1. SOLR-10357.patch
          26 kB
          Steve Rowe
        2. SOLR-10357.patch
          25 kB
          Steve Rowe
        3. SOLR-10357.patch
          25 kB
          Steve Rowe

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                steve_rowe Steve Rowe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: