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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • 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
          25 kB
          Steven Rowe
        2. SOLR-10357.patch
          25 kB
          Steven Rowe
        3. SOLR-10357.patch
          26 kB
          Steven Rowe

        Issue Links

          Activity

            People

              sarowe Steven Rowe
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: