Skip to content

[FEATURE] Highlight feature in hybrid query #1215

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

Open
vibrantvarun opened this issue Mar 6, 2025 · 0 comments
Open

[FEATURE] Highlight feature in hybrid query #1215

vibrantvarun opened this issue Mar 6, 2025 · 0 comments
Assignees

Comments

@vibrantvarun
Copy link
Member

vibrantvarun commented Mar 6, 2025

Currently, hybrid query does not support highlight feature. Documentation https://opensearch.org/docs/latest/search-plugins/searching-data/highlight/ . The query shape mentioned below just returns hybrid query response and does not contain highlight field data.

{
    "query": {
        "hybrid": {
            "queries": [
                {
                   query 1
                },
               {
                   query 2
               }
            ]
        }
    },
    "highlight": {
        "fields": {
            "field 1": {}
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants