Improve error messages for scripting vector calculations #91526
Labels
>enhancement
:Search Relevance/Vectors
Vector search
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
The class bindings
dotProduct
,l1Norm
,l2norm
, andcosineSimilarity
give confusing error messages when a user writes a script and either gives a non-existent field or a field that is not a vector type. We can detect this as part of the constructor for each of the class bindings and give improved error messages.The text was updated successfully, but these errors were encountered: