KnnVectorQueryBuilder does not respect allowUnmappedFields #106846
Labels
>bug
:Search/Mapping
Index mappings, including merging and defining field types
Team:Search
Meta label for search team
Elasticsearch Version
8.13
Installed Plugins
No response
Java Version
bundled
OS Version
N/A
Problem Description
KnnVectorQueryBuilder
does not respect theindex.query.parse.allow_unmapped_fields
index setting. If this is set totrue
(the default value), queries should be rewritten toMatchNoDocsQuery
if the field specified in the query does not exist. However,KnnVectorQueryBuilder
always returns an error in this case.Steps to Reproduce
knn
query against a missing fieldLogs (if relevant)
No response
The text was updated successfully, but these errors were encountered: