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 >