Skip to content

Java Client not usable for custom queries implemented as SearchPlugin #138

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

Closed
cgoller opened this issue Jan 26, 2022 · 1 comment
Closed

Comments

@cgoller
Copy link

cgoller commented Jan 26, 2022

With an Enum for co.elastic.clients.elasticsearch._types.query_dsl.Query.Kind it seems to be impossible to use a custom query with Java Client.

We have implemented such a custom query via org.elasticsearch.plugins.SearchPlugin.getQueries(). It implements org.elasticsearch.index.query.QueryBuilder and we are seeking for a way to use it with Java Client. Is this possible? If not, are you planning to make it possible?

@swallez
Copy link
Member

swallez commented Jan 26, 2022

Thanks for the report. This is a duplicate of #121

This is definitely something we'll add support for in a future release.

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

2 participants