Open mayya-sharipova opened 4 years ago
Pinging @elastic/es-search (:Search/Search)
Relates to https://github.com/elastic/elasticsearch/issues/49761 but addresses in for more general use cases where filters can't be expressed through script.
Pinging @elastic/es-search (Team:Search)
Pinging @elastic/es-search-relevance (Team:Search Relevance)
This is related to #42811 – deprecation of the function_score query.
funciton_score
query had a unique functionality –first
, that is not present in the current query DSL.A proposal is to implement this functionality through a dedicated query type.
This query evaluates the child queries in order, and for a document returns the score of the first matching query.
Other name proposals:
first_in_order
first_matching
first_scoring