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
java.lang.NoSuchMethodError: 'void org.springframework.data.elasticsearch.core.document.SearchDocumentResponse.<init>(long, java.lang.String, float, java.lang.String, java.lang.String, java.util.List, org.springframework.data.elasticsearch.core.AggregationsContainer, org.springframework.data.elasticsearch.core.suggest.response.Suggest, org.springframework.data.elasticsearch.core.SearchShardStatistics)'
at org.opensearch.data.client.orhlc.SearchDocumentResponseBuilder.from(SearchDocumentResponseBuilder.java:112)
at org.opensearch.data.client.orhlc.SearchDocumentResponseBuilder.from(SearchDocumentResponseBuilder.java:63)
at org.opensearch.data.client.orhlc.OpenSearchRestTemplate.search(OpenSearchRestTemplate.java:410)
at org.springframework.data.elasticsearch.repository.query.AbstractElasticsearchRepositoryQuery.execute(AbstractElasticsearchRepositoryQuery.java:123)
at org.springframework.data.repository.core.support.RepositoryMethodInvoker.doInvoke(RepositoryMethodInvoker.java:170)
at org.springframework.data.repository.core.support.RepositoryMethodInvoker.invoke(RepositoryMethodInvoker.java:158)
at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.doInvoke(QueryExecutorMethodInterceptor.java:170)
at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.invoke(QueryExecutorMethodInterceptor.java:149)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:223)
at jdk.proxy3/jdk.proxy3.$Proxy129.findByTenantName(Unknown Source)
-> SearchDocumentResponseBuilder constructs aSearchDocumentResponse with the wrong number of parameters.
It seems this has been resolved in recent commit 6b99d03
for the next 1.6.0 (but still not available).
How can one reproduce the bug?
Create a repository for an index
populate data in the index
implement a find method an run it
What is the expected behavior?
Should not fail and work like the previous version.
ms-semarchy
changed the title
[BUG] Compatiblity is broken with spring-data-elasticsearch
[BUG] Compatibility is broken with spring-data-elasticsearch
Dec 3, 2024
What is the bug?
When using
findByXXX
method of a repository:->
SearchDocumentResponseBuilder
constructs aSearchDocumentResponse
with the wrong number of parameters.It seems this has been resolved in recent commit 6b99d03
for the next 1.6.0 (but still not available).
How can one reproduce the bug?
What is the expected behavior?
Should not fail and work like the previous version.
What is your host/environment?
spring-data-opensearch-starter 1.5.4
spring-boot 3.4.0
MacOS arm64 / Java 21
The text was updated successfully, but these errors were encountered: