KnnVectorQueryBuilder does not respect allowUnmappedFields #106846
Labels
>bug
priority:normal
A label for assessing bug priority to be used by ES engineers
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
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: