Spring boot opensearch dependency is running into error

Hello team,

When I try to use spring data opensearch dependency I get BeanDefinitionStoreException error

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/Users/develop/opensearch/spring-client/opensearch-test/target/classes/com/opensearchtest/indexing/doc/UsageDocument.class]; nested exception is java.lang.NoClassDefFoundError: org/elasticsearch/index/VersionType

I’m using dependency

org.opensearch.client
spring-data-opensearch
1.3.0

Source → GitHub - opensearch-project/spring-data-opensearch

Since elastic and opensearch dependencies cannot be added in same project as it will throw compatibility issue due to library lucene, is there any alternative way to add these libraries that are erroring?

Thanks

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.