Hi Alessandro,

 The range query type does not work, it returns 400 with the response as
"Range Queries are not supported for Dense Vector fields. Please use the
{!knn} query parser to run K nearest neighbors search queries."


On Mon, Oct 23, 2023 at 2:36 AM Alessandro Benedetti <a.benede...@sease.io>
wrote:

> Hi,
> Using the knn query parser is not going to cut it as it's driven by the
> topK parameter (and you do all distance similarity and stuff).
>
> Normally in Solr you just do: field:[* TO *] to retrieve docs that have at
> least one value in a field.
> I can't try right now, can you check if that's implemented correctly?
>
> Cheers
>
> On Mon, 23 Oct 2023, 01:35 rajani m, <rajinima...@gmail.com> wrote:
>
> > Hi Solr Users,
> >
> >   How do you query Solr to get a count of the number of docs consisting
> of
> > vector fields?  Would you make use of knn qp and populate a query vector
> of
> > the same length with 1's? For example,
> > localhost:8983/solr/v9/select?q={!knn
> > f=vector_field topK=10}[512 dim vector].  Also, this http request with
> knn
> > parser usually returns a "414 Request-URI Too Large", what are your
> > alternatives?
> >
> > Thank you,
> > Rajani
> >
>

Reply via email to