Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7148

Support boolean subset matching

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • core/search

    Description

      In Lucene, I know of the possibility of Occur.SHOULD, Occur.MUST and the “minimum should match” setting on the boolean query.

      Now, when querying, I want to

      • (1) match the documents which either contain all the terms of the query (Occur.MUST for all terms would do that) or,
      • (2) if all terms for a given field of a document are a subset of the query terms, that document should match as well.

      Example:
      Document d hast field f with terms A, B, C
      Query with the following terms should match that document:
      A
      B
      A B
      A B C
      A B C D
      Query with the following terms should not match:
      D
      A B D

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              otmar Otmar Caduff
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: