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

filter queries (fq) ignore the default query parser (defType)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      This would be a breaking change but is a good puzzler - if you're using a non-standard query parser (set up as default everywhere), filter queries completely ignore it. One can override locally via

      fq={!type=...}...

      but it seems like an obscure solution.

      See this code in QueryComponent:
      https://github.com/apache/solr/blob/b8b65ce5060e71ebca1f8acc16559ada41e5df77/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L160

      and for fq:
      https://github.com/apache/solr/blob/b8b65ce5060e71ebca1f8acc16559ada41e5df77/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L210

      Is this behavior intended?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dweiss Dawid Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 40m
                  40m