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

Need QueryParser support for BooleanQuery.minNrShouldMatch

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      35284

      Description

      Attached 2 new classes:

      1) CoordConstrainedBooleanQuery
      A boolean query that only matches if a specified number of the contained clauses
      match. An example use might be a query that returns a list of books where ANY 2
      people from a list of people were co-authors, eg:
      "Lucene In Action" would match ("Erik Hatcher" "Otis Gospodnetić" "Mark Harwood"
      "Doug Cutting") with a minRequiredOverlap of 2 because Otis and Erik wrote that.
      The book "Java Development with Ant" would not match because only 1 element in
      the list (Erik) was selected.

      2) CustomQueryParserExample
      A customised QueryParser that allows definition of
      CoordConstrainedBooleanQueries. The solution (mis)uses fieldnames to pass
      parameters to the custom query.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                markharw00d@yahoo.co.uk Mark Harwood
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: