Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6308

Remove filtered documents from elevated set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.9
    • 4.10
    • None
    • None

    Description

      I would like to add a parameter to the Query Elevation Component. Something like showFiltered=false where any results that have been filtered from the result set with the fq parameter will no longer be elevated.

      as an example if I had two documents returned in a query

      id="A"
      field_1="foo"
      
      id="B"
      field_1="bar"
      

      I would want the following query to yield the shown results

      /solr/elevate?q=*&fq=field_1:bar&elevate=true&elevateIds=A
      
      id="B"
      field_1="bar"
      

      id A is removed from the results because it is not contained in the filtered results even though it is elevated. It would be nice if we could pass an optional parameter like showFiltered=false where any results that have been filtered from the result set with the fq parameter will no longer be elevated.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dboychuck David Boychuck
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 8h
                  8h
                  Remaining:
                  Remaining Estimate - 8h
                  8h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified