The documentation says as below

https://solr.apache.org/guide/solr/latest/query-guide/dense-vector-search.html#graph-pre-filtering

The example request below shows two usages of vector query parsers that will 
get no implicit Pre-Filtering from any of the fq parameters, because neither 
usage is as the main q param:
?q=(color_str:red OR {!vectorSimilarity f=color_vector minReturn=0.7 v="[1.0, 
2.0, 3.0, 4.0]"})
&fq={!knn f=title_vector topK=10}[9.0, 8.0, 7.0, 6.0]
&fq=inStock:true


In the hybrid query ,Boolean query is performed , so the vector part of the 
query does not honor the fq ?  . Please confirm

Thanks,
Rajeswari

From: "Natarajan, Rajeswari" <rajeswari.natara...@sap.com>
Date: Wednesday, May 21, 2025 at 11:48 AM
To: "users@solr.apache.org" <users@solr.apache.org>
Subject: Implicit filters on hybrid query

Hi,

Following this page to do hybrid search 
https://sease.io/2023/12/hybrid-search-with-apache-solr.html

In hybrid search , will the fq params be honored by vector search as a pre 
filter.

Let me know.


Thanks,
Rajeswari

Reply via email to