Ok so that works for normal fields but to retrieve vector fields I've seen
recommendations of also storing the vector fields contents in a normal
field for retrieval which you also use the above syntax against...

Thx
Robi

On Mon, Jun 16, 2025, 9:15 AM Vincenzo D'Amore <v.dam...@gmail.com> wrote:

> Thanks for your prompt reply, but unfortunately:
>
> -my_vector:*  returns the error message "Field Queries are not supported
> for Dense Vector fields. Please use the {!knn} query parser to run K
> nearest neighbors search queries."
>
>
> On Mon, Jun 16, 2025 at 5:47 PM Robi Petersen <robip...@gmail.com> wrote:
>
> > -my_vector:*
> >
> > On Mon, Jun 16, 2025, 8:39 AM Vincenzo D'Amore <v.dam...@gmail.com>
> wrote:
> >
> > > Hi all,
> > >
> > > I’m using Solr (version 9.8.1) with a knn_vector field and I’d like to
> > > filter for documents that *do not have* this vector field populated.
> > >
> > > I tried using the query:
> > >
> > > -my_vector:[* TO *]
> > >
> > > …but Solr returns the following error:
> > >
> > > *“Range Queries are not supported for Dense Vector fields. Please use
> the
> > > {!knn} query parser to run K nearest neighbors search queries.”*
> > >
> > > Is there a supported way to filter documents that *do not have a value
> > for
> > > a knn_vector field* (i.e., the field is missing)?
> > >
> > > Any suggestions or workarounds would be appreciated.
> > >
> > > Thanks, Vincenzo
> > >
> > > --
> > > Vincenzo D'Amore
> > >
> >
>
>
> --
> Vincenzo D'Amore
>

Reply via email to