Open
Description
Part of #123389
We want to expose an RRF command that in the beginning has no customization options, it's just RRF
:
from search-movies metadata _score, _id, _index
| fork ( where semantic_title:"Shakespeare" | sort _score)
( where title:"Shakespeare" | sort _score)
| rrf
| keep title, _score
Tasks:
- ES|QL: Add initial grammar and planning for RRF (snapshot) #123396
- ES|QL: Add license check for RRF #125225
- better error messages for metadata attributes ES|QL: Add initial grammar and planning for RRF (snapshot) #123396 (comment)
- check if we can have unexecutable queries since the RRF planning contains a SORT https://github.com/elastic/elasticsearch/pull/123396/files#r1985082165 - we might need to add an extra LIMIT in the RRF planning (we can just LIMIT to the max number of elements that can come from FORK which we should know if we sum the LIMIT from each FORK branch)