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

Implement pre-filtering functionallity for KnnQParser

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 9.1
    • None
    • None

    Description

      At the current state of development, with KnnQParser it is possible to specify filter queries and the result is the intersection between:

      • top-K document founds by the KNN search
      • Results of the filter query
        As a consequence, if the filter query filters out some documents in the top-K results, we will have less than K results in the result set.

      The proposal is to leverage the recent Apache Lucene development LUCENE-10382 to change the behavior of the filter queries in the KnnQParser in such a way:

      • The filter query works as pre-filtering
      • KNN Search retrieves the top-K results among the documents that are not filtered out.

      Attachments

        Issue Links

          Activity

            People

              abenedetti Alessandro Benedetti
              eliaporciani Elia Porciani
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m
                  3h 40m