You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the org.springframework.data.elasticsearch.core.query.SearchTemplateQuery but I get this error when I try to use it:
java.lang.IllegalArgumentException: unhandled Query implementation org.springframework.data.elasticsearch.core.query.SearchTemplateQuery
at org.opensearch.data.client.orhlc.RequestFactory.getQuery(RequestFactory.java:1174) ~[spring-data-opensearch-1.2.0.jar:na]
at org.opensearch.data.client.orhlc.RequestFactory.searchRequest(RequestFactory.java:752) ~[spring-data-opensearch-1.2.0.jar:na]
at org.opensearch.data.client.orhlc.OpenSearchRestTemplate.search(OpenSearchRestTemplate.java:375) ~[spring-data-opensearch-1.2.0.jar:na]
at org.springframework.data.elasticsearch.core.AbstractElasticsearchTemplate.search(AbstractElasticsearchTemplate.java:492) ~[spring-data-elasticsearch-5.1.2.jar:5.1.2]
What solution would you like?
Support org.springframework.data.elasticsearch.core.query.SearchTemplateQuery in
Search Templates are way to move the query logic to OpenSearch and make the code cleaner in the microservice side. Moreover this queries are more efficient since they are precompiled.
Is your feature request related to a problem?
I would like to use the
org.springframework.data.elasticsearch.core.query.SearchTemplateQuery
but I get this error when I try to use it:What solution would you like?
Support
org.springframework.data.elasticsearch.core.query.SearchTemplateQuery
inspring-data-opensearch/spring-data-opensearch/src/main/java/org/opensearch/data/client/orhlc/RequestFactory.java
Line 1174 in b671763
Do you have any additional context?
Search Templates are way to move the query logic to OpenSearch and make the code cleaner in the microservice side. Moreover this queries are more efficient since they are precompiled.
Example of use of query templates can be seen here: https://github.com/spring-projects/spring-data-elasticsearch/blob/main/src/main/antora/modules/ROOT/pages/elasticsearch/misc.adoc
The text was updated successfully, but these errors were encountered: