Skip to content

Allow StringQuery or CriteriaQuery to be added as query into a NativeQuery. #2391

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
sothawo opened this issue Dec 6, 2022 · 2 comments · Fixed by #2451
Closed

Allow StringQuery or CriteriaQuery to be added as query into a NativeQuery. #2391

sothawo opened this issue Dec 6, 2022 · 2 comments · Fixed by #2451
Labels
type: enhancement A general enhancement

Comments

@sothawo
Copy link
Collaborator

sothawo commented Dec 6, 2022

This would allow the easy way to build the query and then add additional things that are only available in the NativeQuery like aggregations.

@AlexandreClose
Copy link

AlexandreClose commented Feb 10, 2023

Hello,
I currently build complex queries that mix several filters and aggregations. Some of the filters can be built with the Criteria api; and some of them can be built only with NativeQuery (complex geoshape filter, and aggregations).
The only way i found to mix both of them il to copy the private class CriteriaQueryProcessor, to call the createQuery(Criteria criteria) method.

Is it possible to change the visibility of the CriteraQueryProcessor; and, maybe, add a createQuery( criteriaQuery) method?

Thank you for any help about this issue

@sothawo
Copy link
Collaborator Author

sothawo commented Feb 10, 2023

This is what this issue is about, being able to add a CriteriaQuery (or a StringQuery for example) as query to a NativeQuery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
2 participants