Open youcandanch opened 11 months ago
Intesrested in this
Please feel free to contribute. Thank you!
interested in this
@youcandanch, @lambda-science, @ssharm8-etr Your contributions are highly valued and greatly appreciated. Whenever you have a moment, we welcome your input and encourage you to submit a pull request. Thank you!
Is your feature request related to a problem?
OpenSearch 2.10 introduced the ability to do hybrid querying, where you can use multiple queries and normalize the resulting scores to implement a hybrid search strategy. Low-level client totally supports this, and the high-level client should be able to support it with something like this:
Not the prettiest code, but it should work! Problem is upon constructing that query, the following error is raised:
This prevents hybrid searching via the DSL, and forces dropping down to the low-level client to execute.
What solution would you like?
Within helpers/query.py, adding:
...works with my example above, but I'm not 100% sure it's the right way to broach adding this to the DSL. I think something like a
Search.hybrid_query
function might make sense, but haven't dug down that rabbit hole yet.