eliaporciani commented on code in PR #904: URL: https://github.com/apache/solr/pull/904#discussion_r905195851
########## solr/core/src/java/org/apache/solr/search/neural/KnnQParser.java: ########## @@ -72,7 +81,49 @@ public Query parse() { DenseVectorField denseVectorType = (DenseVectorField) fieldType; float[] parsedVectorToSearch = parseVector(vectorToSearch, denseVectorType.getDimension()); - return denseVectorType.getKnnVectorQuery(schemaField.getName(), parsedVectorToSearch, topK); + + return getFilterQuery() + .map( + filterQuery -> + denseVectorType.getKnnVectorQuery( + schemaField.getName(), parsedVectorToSearch, topK, filterQuery)) + .orElse( + denseVectorType.getKnnVectorQuery(schemaField.getName(), parsedVectorToSearch, topK)); + } + + private Optional<? extends Query> getFilterQuery() throws SolrException { Review Comment: removed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org