Open mayya-sharipova opened 4 years ago
Pinging @elastic/es-search (:Search/Ranking)
Clarifying one point: I think all the values in the query need to be strictly positive (which matches what rank_features
accepts).
Pinging @elastic/es-search-relevance (Team:Search Relevance)
Currently rank_feature query on
rank_features
field type supports only 3 functions: log, sigmoid and saturation.Consider adding additional functions of
cosineSimilarity
anddotProduct
only forrank_features
field. The API could like this:For the internal implementation we may rewrite it to a bool query, so the number of sparse fields on which to compute a function should be low (< 1024).