Questions tagged [spring-data-elasticsearch]

Spring Data makes it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services as well as provide improved support for relational database technologies.

Spring Data makes it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services as well as provide improved support for relational database technologies.

1454 questions
34
votes
7 answers

Spring - Multiple Spring Data modules found, entering strict repository configuration mode

I am using Spring boot 2 with Spring Data, Spring-Data-Elastisearch and Spring-data-Redis(for http sessions). When i start the app. I'm receiving 2017-10-29 17:38:33.376 INFO 18625 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate :…
27
votes
8 answers

How to enable query logging in Spring-data-elasticsearch

I use spring-data-elasticsearch framework to get query result from elasticsearch server, the java code like this: SearchQuery searchQuery = new…
fudy
  • 1,540
  • 5
  • 25
  • 41
24
votes
4 answers

A bean with that name has already been defined in class path resource [path] and overriding is disabled

I have the java configuration for the Spring Data Elaticsearch(using Transport Client) and ESTemplate. Here some except: @Configuration @EnableElasticsearchRepositories(basePackages =…
24
votes
6 answers

configure spring.codec.max-in-memory-size When using ReactiveElasticsearchClient

I am using the ReactiveElasticsearchClient from spring-data-elasticsearch 3.2.3 with spring-boot 2.2.0. When upgrading to spring-boot 2.2.2 i have got org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer…
farid
  • 313
  • 1
  • 2
  • 7
23
votes
4 answers

The Best way to use ElasticSearch in Spring java framework

I'm developing a system which is planning to use elasticsearch as an data repository. I'm trying to choose the best way to develop my application that can index and query data from elasticsearch. The system I have is built on top of Spring…
19
votes
3 answers

Elasticsearch Rest Client with Spring Data Elasticsearch

I am in a situation where I am using Spring boot and AWS elasticsearch service. AWS Elasticsearch service which only provides REST interface. Elasticsearch Rest Client is here. Simply, Is it possible to use REST client with Spring Data…
19
votes
1 answer

Spring Data Elasticsearch id vs. _id

I am using Spring Data Elasticsearch 2.0.1 with Elastic version 2.2.0. My DAO is similar to: import org.springframework.data.annotation.Id; import org.springframework.data.elasticsearch.annotations.Document; @Document(indexName =…
wxkevin
  • 1,634
  • 2
  • 25
  • 44
17
votes
2 answers

How do you use both Spring Data JPA and Spring Data Elasticsearch repositories on the same domain class in a Spring Boot application?

I'm trying to use both Spring Data JPA and Spring Data Elasticsearch on the same domain object but it doesn't work. When I tried to run a simple test, I got the following exception: org.springframework.data.mapping.PropertyReferenceException: No …
17
votes
2 answers

Spring Data Elasticsearch: Multiple Index with same Document

I'm using spring-data-elasticsearch and for the beginning everything works fine. @Document( type = "products", indexName = "empty" ) public class Product { ... } public interface ProductRepository extends ElasticsearchRepository
17
votes
2 answers

Elasticsearch indexing not working and error message: node null not part of the cluster Cluster [elasticsearch], ignoring

I just downloaded the elastic search distribution and ran it. curl 'localhost:9200' { "status" : 200, "name" : "cbs", "cluster_name" : "elasticsearch", "version" : { "number" : "1.4.1", "build_hash" :…
Sunny Agarwal
  • 1,451
  • 4
  • 18
  • 36
17
votes
4 answers

ElasticSearch returning only documents with distinct value

Let's say I have this given data { "name" : "ABC", "favorite_cars" : [ "ferrari","toyota" ] }, { "name" : "ABC", "favorite_cars" : [ "ferrari","toyota" ] }, { "name" :…
user962206
  • 15,637
  • 61
  • 177
  • 270
16
votes
3 answers

Spring Data Elasticsearch's @Field annotation not working

I have a Spring Boot application with Spring Data Elasticsearch plugin in the pom.xml. I created a document class which i'd like to index: @Document(indexName = "operations", type = "operation") public class OperationDocument { @Id private Long…
Javier Alvarez
  • 1,409
  • 2
  • 15
  • 33
15
votes
5 answers

Does Spring Data Elasticsearch support Amazon Elasticsearch?

From the research I have done it seems that the two do not work together because of HTTP only support for Amazon Elasticsearch. Hoping someone can clarify if in fact it is not something that is possible with Spring Data Elasticsearch.
code
  • 4,073
  • 3
  • 27
  • 47
15
votes
1 answer

Spring Data Elastic Search with Nested Fields and mapping

I am using spring-data-elasticsearch and elasticsearch together to query documents. I'd like to do nested queries on nested documents. I have this in java : @Document(indexName = "as", type = "a", indexStoreType = "memory", shards = 1, replicas = 0,…
Alexis
  • 404
  • 1
  • 3
  • 10
14
votes
1 answer

Spring data elasticsearch bulk index and delete

I'm new to the community so I apologise if I do something wrong. I'm using spring data elasticsearch (2.0.4/2.4) And I would like to make a bulk insert and delete. But ElasticsearchTemplate only contains a method bulkInsert @Override public void…
Vince
  • 141
  • 1
  • 5
1
2 3
96 97