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

Typed Client MSearch doesn't support include_named_queries_score #896

Open
etiennecl opened this issue Jul 30, 2024 · 0 comments
Open

Typed Client MSearch doesn't support include_named_queries_score #896

etiennecl opened this issue Jul 30, 2024 · 0 comments

Comments

@etiennecl
Copy link

etiennecl commented Jul 30, 2024

It is currently impossible to set the query parameter include_named_queries_score as part of the MSearch client. Although this is not documented, it is possible to add this query parameter, which will be applied to all searches. I believe the clients should allow setting this values as part of the typed client just like the other path values in this file

https://github.com/elastic/go-elasticsearch/blob/main/typedapi/core/msearch/msearch.go

// API name: include_named_queries_score
func (r *Msearch) IncludeNamedQueriesScore(includenamedqueriesscore bool) *Msearch {
	r.values.Set("typed_keys", strconv.FormatBool(includenamedqueriesscore))

	return r
}

It seems like a general issue in all clients du to the fact that the base definitions/documentation do not include this query parameter:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant