Solr
  1. Solr
  2. SOLR-5034

A facet.query analyzed to a null Query will NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.1
    • Fix Version/s: 4.4
    • Labels:
      None

      Description

      If you give a query to facet.query that analyzes down to a null Query, then it will NPE. One way this can happen is when the text analysis filters out the token.

      facet.query={!field f=lengthfilt}a
      

      lengthfilt is a field in the test schema that has a min length of 2.

        Activity

        Hide
        David Smiley added a comment -

        I'll commit tomorrow if there are no problems raised with my patch.

        Show
        David Smiley added a comment - I'll commit tomorrow if there are no problems raised with my patch.
        Hide
        ASF subversion and git services added a comment -

        Commit 1502730 from David Smiley
        [ https://svn.apache.org/r1502730 ]

        SOLR-5034: A facet.query that parses or analyzes down to a null Query would throw a NPE.

        Show
        ASF subversion and git services added a comment - Commit 1502730 from David Smiley [ https://svn.apache.org/r1502730 ] SOLR-5034 : A facet.query that parses or analyzes down to a null Query would throw a NPE.
        Hide
        ASF subversion and git services added a comment -

        Commit 1502731 from David Smiley
        [ https://svn.apache.org/r1502731 ]

        SOLR-5034: A facet.query that parses or analyzes down to a null Query would throw a NPE.

        Show
        ASF subversion and git services added a comment - Commit 1502731 from David Smiley [ https://svn.apache.org/r1502731 ] SOLR-5034 : A facet.query that parses or analyzes down to a null Query would throw a NPE.
        Hide
        ASF subversion and git services added a comment -

        Commit 1502831 from David Smiley
        [ https://svn.apache.org/r1502831 ]

        SOLR-5034: A facet.query that parses or analyzes down to a null Query would throw a NPE.

        Show
        ASF subversion and git services added a comment - Commit 1502831 from David Smiley [ https://svn.apache.org/r1502831 ] SOLR-5034 : A facet.query that parses or analyzes down to a null Query would throw a NPE.

          People

          • Assignee:
            David Smiley
            Reporter:
            David Smiley
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development