You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ab...@apache.org on 2023/01/05 21:12:20 UTC

[solr] branch branch_9x updated: SOLR-16567: KnnQueryParser support for both pre-filters and post-filter, compilation error fix (#1245)

This is an automated email from the ASF dual-hosted git repository.

abenedetti pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new e948e660a3f SOLR-16567: KnnQueryParser support for both pre-filters and post-filter, compilation error fix (#1245)
e948e660a3f is described below

commit e948e660a3f59fba0ec7a5af325b03d2d6e98d29
Author: Alessandro Benedetti <a....@sease.io>
AuthorDate: Thu Jan 5 22:12:05 2023 +0100

    SOLR-16567: KnnQueryParser support for both pre-filters and post-filter, compilation error fix (#1245)
---
 solr/core/src/java/org/apache/solr/search/neural/KnnQParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/search/neural/KnnQParser.java b/solr/core/src/java/org/apache/solr/search/neural/KnnQParser.java
index 5eb6fc1d0f4..fe5dcc4780f 100644
--- a/solr/core/src/java/org/apache/solr/search/neural/KnnQParser.java
+++ b/solr/core/src/java/org/apache/solr/search/neural/KnnQParser.java
@@ -91,7 +91,7 @@ public class KnnQParser extends QParser {
         try {
           List<Query> filters = QueryUtils.parseFilterQueries(req);
           SolrIndexSearcher.ProcessedFilter processedFilter =
-              req.getSearcher().getProcessedFilter(filters);
+              req.getSearcher().getProcessedFilter(null, filters);
           return processedFilter.filter;
         } catch (IOException e) {
           throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);