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

Solr SQL using {!complexphrase} for wildcard filters doesn't always work as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.11.2, 9.1
    • Parallel SQL

    Description

      If a field is text analyzed, then doing {{

      {!complexphrase}

      name:\"Test*\"}} causes:

      \"msg\":\"maxClauseCount is set to 1024\",\n    \"trace\":\"org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024\\n\\tat 
      

      Working around the issue with the parens hack like name LIKE '(Test*)' makes the query work as expected. Perhaps we can just drop using the complexphrase parser if the predicate has a trailing wildcard only (leading too), that'll probably cover the bulk of the problems and use parens instead of double quotes if it has multiple wild card in it?

      Need to build some better test cases around wildcard matching for string and text analyzed fields.

      Attachments

        Activity

          People

            thelabdude Timothy Potter
            thelabdude Timothy Potter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 50m
                3h 50m