opensearch-go icon indicating copy to clipboard operation
opensearch-go copied to clipboard

Add MatchedQueries field to opensearchapi.SearchHit

Open nics opened this issue 8 months ago • 3 comments

Is your feature request related to a problem?

I use the _name field in boolean queries to identify which clause matched, but the corresponding matched_queries field is not included in opensearchapi.SearchHit.

What solution would you like?

Add a MatchedQueries []string field to SearchHit.

Do you have any additional context?

I'm using v4.0.0 of the Go client.

See https://opensearch.org/docs/latest/query-dsl/compound/bool/ for the _name feature.

nics avatar Jun 27 '24 07:06 nics