This contribution introduces in Apache Solr the ability to run vector-based searches using native Apache Lucene data structures optimized for approximate nearest neighbours.
This is the first milestone in introducing Neural Search in Apache Solr.
More will come later.
It builds on top of https://issues.apache.org/jira/browse/LUCENE-9004 to provide a:
- Dense Vector Field - At moment Single valued, supporting stored, indexed
- Knn Query Parser - simple query parser to run knn search on target vector and field
The Dense Vector field only supports KNN searches (no range query, no field queries, no existence queries...)
The Knn query parser can be used as query, filter query and rerank query.