Lucene - Core
  1. Lucene - Core
  2. LUCENE-25

QueryParser produces empty BooleanQueries when all clauses are stop words

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: PC

      Description

      When I want to do the following query (example):
      (fieldx : xxxxx OR fieldy : xxxxxxxx)AND(fieldx : stopword OR fieldy : stopword)
      it will search (after passing the Analyzer including a StopFilter) for
      (fieldx : xxxxx OR fieldy : xxxxxx) AND() and give a wrong searchresult or a
      NullPointerException.

      1. LUCENE-25.patch
        2 kB
        Grant Ingersoll
      2. ASF.LICENSE.NOT.GRANTED--patch9.txt
        9 kB
        Jean-François Halleux

        Issue Links

          Activity

          Puk Witte created issue -
          Jeff Turner made changes -
          Field Original Value New Value
          issue.field.bugzillaimportkey 7574 12314175
          Hoss Man made changes -
          Summary [PATCH] StopFilter does not throw out parentheses QueryParser produces empty BooleanQueries when all clauses are stop words
          Bugzilla Id 7574
          Assignee Lucene Developers [ java-dev@lucene.apache.org ]
          Component/s Analysis [ 12310230 ]
          Component/s QueryParser [ 12310234 ]
          Hoss Man made changes -
          Link This issue is related to LUCENE-666 [ LUCENE-666 ]
          Grant Ingersoll made changes -
          Attachment LUCENE-25.patch [ 12371923 ]
          Mark Miller made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Workflow jira [ 12324180 ] Default workflow, editable Closed status [ 12564447 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12564447 ] jira [ 12585722 ]
          Steve Rowe made changes -
          Affects Version/s 1.2 [ 12310284 ]
          Affects Version/s 1.0.2 [ 12310281 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Puk Witte
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development