All Questions

Filter by
Sorted by
Tagged with
4
votes
1answer
656 views

How to modeling when use Spring data mongo and Spring data elasticearch?

I want to use mongo and ElasticSearch in my projects, and I also like adopt Spring Data Mongo and Spring Data ElasticSearch, but both has their Repository and model specs, how to use them together? ...
2
votes
1answer
2k views

Combining Spring-Data for MongoDB and ElasticSearch

I'm trying @org.springframework.data.mongodb.core.mapping.Document(collection = "goal") @org.springframework.data.elasticsearch.annotations.Document(indexName = "goal") public class Goal implements ...
1
vote
2answers
392 views

Spring Data 3.0.5 MongoDB and ElasticSearch Domain Class mixed Annotation

I'm migrating our application from Spring Boot 1.5.9 to version 2.0.0. In version 1.5.9 we have successfully used mixed Annotations on several Domain Classes e.g: ... @org.springframework.data....
1
vote
1answer
177 views

spring-data both: custom repository and out of the box optionals

I'm using custom Spring Data repository implementation/extension (one of the example here) but I would like to still make use of Optionals for basic operations - something as below (example for Mongo ...
1
vote
1answer
99 views

Elastic search doesn't work in spring boot application

I'm using spring boot and i want to integrate elastic search in my solution. I added elastic search dependency, configuration, repository and the annotation @Document to an entity and it worked ...
1
vote
1answer
891 views

Document mapping when using MongoDB and Elasticsearch together with SpringData

I have an application where MongoDB is used as primary data store and Elasticsearch for all the searches. Now I'm not sure how to do mapping properly because when annotating the model class with both ...
1
vote
1answer
29 views

Spring data JPA Elastic search and Mongo

I have a java class where the @Document object is from elasticsearch package import org.springframework.data.elasticsearch.annotations.Document; @Data @AllArgsConstructor @Document(...
0
votes
2answers
2k views

Conflict between Spring data MongoDb and Elasticsearch

I started a project in which I use both Mongo, Elasticsearch and spring boot. With either technologies by itself, the project works just fine. However with both together, they conflict. I saw this ...
0
votes
1answer
457 views

EnableReactiveMongoRepositories and ElasticSearch

I am starting to develop an application that will make use of MongoDB and Elastic Search with Spring Boot 2. Trying to use Reactive MongoDB repositories, all works fine until I add the spring-boot-...
0
votes
1answer
189 views

spring data mongo and spring data elasticsearch usage in pom.xm

I want to use both the dependencies in pom.xml as below; <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <...