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

Collector that manages diversity in search results

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1
    • Component/s: core/query/scoring
    • Labels:
      None
    • Lucene Fields:
      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

            • Assignee:
              Unassigned
              Reporter:
              markh Mark Harwood
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: