Skip to content

Not able to build custom Query (QueryVariant) #121

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
jerryguowei opened this issue Jan 24, 2022 · 2 comments
Closed

Not able to build custom Query (QueryVariant) #121

jerryguowei opened this issue Jan 24, 2022 · 2 comments
Labels
Category: Enhancement New feature or request

Comments

@jerryguowei
Copy link

I tried to build a custom Query, but the Query.Kind prevent me from doing this.
The reason I want to build a custom query is we have custom Plugins to support the query.
But it looks the new Java client have less support for this.
I just wondering why we use enum here to build Query.Kind, which is really less extensible.

public class CustomWildcardQuery extends QueryBase implements QueryVariant
{
@Override
    public Query.Kind _queryKind()
    {
        return Query.Kind...
    }
}
@swallez swallez added the Category: Enhancement New feature or request label Jan 25, 2022
@swallez
Copy link
Member

swallez commented Jan 25, 2022

Thanks for the feedback @jerryguowei. Indeed there is currently no support for custom queries. It will be added in a future revision.

@swallez
Copy link
Member

swallez commented Apr 26, 2022

We've started work on this in #252

Closing this issue, please subscribe to the above one. Your feedback is of course welcome.

@swallez swallez closed this as completed Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants