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

Elasticsearch query #20

Open
M-Fararjeh opened this issue Oct 17, 2018 · 1 comment
Open

Elasticsearch query #20

M-Fararjeh opened this issue Oct 17, 2018 · 1 comment

Comments

@M-Fararjeh
Copy link

Hello,

First of all, Big thanks for this magic framework, I used it for MongoDB, It's work probably.

I need your help to use it in the Elastic search.
Condition<GeneralQueryBuilder> condition = pipeline.apply("firstName==Paul;age==30", ContainerSearch.class); QueryBuilder query = condition.query(new ElasticsearchVisitor());

this code not compiled because; "Incompatible equality constraint: Void and Context"

Please, can you guide me to use elastic search?

Note:
QueryBuilder from org.elasticsearch.index.query
ElasticsearchVisitor from com.github.rutledgepaulv.qbuilders.visitors

Thanks

@Ebraheem-Alrabeea
Copy link

Thats it, use the instead:
QueryBuilder esQuery = condition.query(new ElasticsearchVisitor(), new ElasticsearchVisitor.Context());

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