Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Document incompatibility of rescore clause with Hybrid query #8368

Open
1 of 4 tasks
martin-gaievski opened this issue Sep 24, 2024 · 0 comments
Open
1 of 4 tasks
Labels
1 - Backlog - DOC Doc writer assigned to issue responsible for creating PR. Unassigned

Comments

@martin-gaievski
Copy link
Member

What do you want to do?

  • Request a change to existing documentation
  • Add new documentation
  • Report a technical problem with the documentation
  • Other

Tell us about your request. Provide a summary of the request.
We need to update the existing documentation for Hybrid queries to explicitly mention that the rescore clause is not compatible with hybrid queries. When a rescore clause is used in conjunction with a hybrid query, it will be ignored and will have no effect on the list of documents or their scores returned by the hybrid query.

A brief explanation of this behavior can be included:

Rescoring happens at the shard level, whereas the hybrid query performs score normalization across all hits at the coordinator node level.
Rescoring reorders documents based on newly computed scores from the rescore query and other rules, which conflicts with the score normalization process used by hybrid queries.

*Version: List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
All starting from 2.10 (first version that has hybrid query)

What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
Main page for hybrid query: https://opensearch.org/docs/latest/search-plugins/hybrid-search/

Documentation page for rescore, ES 7.10.
Hybrid query documentation: Hybrid Query Documentation
Rescore documentation (Elasticsearch 7.10): Rescore Documentation
(Note: A similar page for OpenSearch is unavailable)
Customer-reported issue: GitHub Issue #914

@Naarcha-AWS Naarcha-AWS added 1 - Backlog - DOC Doc writer assigned to issue responsible for creating PR. Unassigned and removed untriaged labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Backlog - DOC Doc writer assigned to issue responsible for creating PR. Unassigned
Projects
None yet
Development

No branches or pull requests

2 participants