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

Collector that manages diversity in search results

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.1
    • core/query/scoring
    • None
    • New

    Description

      This issue provides a new collector for situations where a client doesn't want more than N matches for any given key (e.g. no more than 5 products from any one retailer in a marketplace). In these circumstances a document that was previously thought of as competitive during collection has to be removed from the final PQ and replaced with another doc (eg a retailer who already has 5 matches in the PQ receives a 6th match which is better than his previous ones). This requires a new remove method on the existing PriorityQueue class.

      Attachments

        1. LUCENE-6066.patch
          35 kB
          Adrien Grand
        2. LUCENE-PQRemoveV8.patch
          35 kB
          Mark Harwood
        3. LUCENE-PQRemoveV9.patch
          35 kB
          Mark Harwood

        Activity

          People

            Unassigned Unassigned
            mharwood Mark Harwood
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: