Hi,

DenseVectorField currently rejects existence queries such as:

  vector:*
  vector:[* TO *]

This was documented as an intentional limitation in SOLR-15880.
In practice this makes it hard to filter documents that have/miss a
vector field (users often work around it with a secondary boolean field).

Lucene already supports this via FieldExistsQuery for
KnnFloatVectorField / KnnByteVectorField.

I would like to propose a small improvement:
- DenseVectorField#getExistenceQuery -> FieldExistsQuery
- treat [* TO *] as existence (same as FieldType default)
- keep rejecting real field/range/sort queries

I already have a local patch + unit tests.
Does this sound reasonable to file as a Jira Improvement and open a PR?

Thanks,
Li Enlai

Reply via email to