Li Enlai created SOLR-18329:
-------------------------------

             Summary: DenseVectorField should support existence queries 
(field:* / [* TO *])
                 Key: SOLR-18329
                 URL: https://issues.apache.org/jira/browse/SOLR-18329
             Project: Solr
          Issue Type: Improvement
          Components: Schema and Analysis
            Reporter: Li Enlai


Lucene has supported existence checks for vector fields since 9.1
(KnnVectorFieldExistsQuery, later unified into FieldExistsQuery).
Solr's DenseVectorField currently rejects these queries with BAD_REQUEST.

Proposal:
- Support normal existence queries on DenseVectorField:
  - vector:*
  - -vector:*
  - vector:[* TO *]
- Implement via FieldExistsQuery in DenseVectorField.getExistenceQuery()
- Keep rejecting bounded range queries (unchanged)

This is a small consistency fix so DenseVectorField behaves like other
field types for existence checks.

Discuss:
- users@: https://lists.apache.org/thread/x0x61yh07zzqo73cbct2hdzkybrlgr3m
- dev@: https://lists.apache.org/thread/5rgllrwmxr99k3wwrssbwy0p8nlh3rmx

I have a local patch with tests ready and can open a PR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to