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
14
votes
2 answers

Creating Indices name Dynamically in Elasticsearch using Spring-Data Elasticsearch

I have a use case where in need to create the indices per month in Elasticsearch. The idea is to create indices on the monthly bases so that they are easy to maintain and can be deleted when expired.For this to achieve i have used the spring-batch…
sagar27
  • 3,121
  • 3
  • 27
  • 37
12
votes
3 answers

How to remove Spring Data CustomConversions warnings from application startup?

I have an application with the following Spring dependencies: starterBase : 'org.springframework.boot:spring-boot-starter:2.2.1.RELEASE', starterActuator: 'org.springframework.boot:spring-boot-starter-actuator:2.2.1.RELEASE', starterJpa :…
Iker Aguayo
  • 3,980
  • 4
  • 37
  • 49
12
votes
3 answers

Cannot use custom autoconfiguration with spring-data-elasticsearch

I am not able to get spring-data-elasticsearch working for Elasticsearch 2.0+ versions. On using following POM
Utkarsh Mishra
  • 480
  • 1
  • 7
  • 23
12
votes
2 answers

Is there a way to use Specifications in ElasticsearchRepository?

I've implemented the Specification pattern for filtering some of my JpaRepositories. After I have implemented a Specification, I can use it with a JpaRepository like this: Page page = entityJpaRepository.findAll(entitySpecification,…
geraldhumphries
  • 1,493
  • 12
  • 27
12
votes
1 answer

Spring Elastic Search Custom Field names

I am new to Elastic Search and I am trying to implement it using Spring-data-elasticsearch. I have fields with names such as "Transportation", "Telephone_Number" in our elastic search documents. When I try to map my @Domain object fields with those,…
Vsoma
  • 595
  • 1
  • 5
  • 17
11
votes
3 answers

spring-data-elasticsearch - registering custom analyser

I'm trying to use ElasticSearch in my application for full text search and at this time I'm trying use autocomplete analyser: { "settings": { "number_of_shards": 1, "analysis": { "filter": { …
brevleq
  • 2,081
  • 10
  • 53
  • 97
11
votes
1 answer

ElasticSearch Java Client querying nested objects

How do I convert this kind of query. { "query": { "nested": { "path": "consultations", "query": { "bool": { "must": [ { "match": { "consultations.prescriptions":…
user962206
  • 15,637
  • 61
  • 177
  • 270
10
votes
2 answers

Partial update with Spring Data Elasticsearch repository

I have a document with many fields (some nested) indexed on elasticsearch. For example: { "id" : 1, "username" : "...", "name" : "...", "surname" : "...", "address" : "...", "age": 42, ... "bookmarks" : [{...}, {...}], "tags" :…
Andrea
  • 123
  • 1
  • 1
  • 9
10
votes
4 answers

Spring Data Elasticsearch @Document indexName defined at runtime

Is it possible to specify dynamically (at runtime) the indexName for each @Document, for example, via a configuration file? Or is it possible to make @Document Spring environment (dev, prod) dependant? Thank you!
10
votes
1 answer

Spring Data Elasticsearch's ElasticsearchTemplate vs ElasticsearchRepository

I am in reference to Spring Data Elasticsearch's org.springframework.data.elasticsearch.repository.ElasticsearchRepository org.springframework.data.elasticsearch.core.ElasticsearchTemplate It seems they are two different APIs that achieve the…
balteo
  • 23,602
  • 63
  • 219
  • 412
10
votes
2 answers

How to make elasticsearch embedded accessible via localhost:9200

I am playing with spring-boot-sample-data-elastcisearch project. I've changed the pom and added: SampleElasticsearchApplicationWebXml extends SpringBootServletInitializer to run with Tomcat embedded. My application.properties…
clandestino_bgd
  • 143
  • 1
  • 2
  • 11
9
votes
2 answers

Where can I find the reference for the spring-data-elasticsearch configuration properties?

Across the web, I can see that spring-data-elasticsearch has some configuration properties that you can define in your application.properties, such…
carlspring
  • 31,231
  • 29
  • 115
  • 197
9
votes
1 answer

SpEL used in @Document indexName with spring data elasticsearch and spring boot is not being parsed

looking for some help using the SpEL inside @Document annotation in reference to: spring-data-elasticsearch:3.2.3.RELEASE and spring boot 2.2.1 RELEASE i am having trouble googling for help with this problem as the keywords pick up unrelated…
9
votes
1 answer

Spring-data-elasticsearch search for specific fields in multiple indices

I try to search specific fields in multiple indices. I have two indices country and region. Both of the indices have a Field called name. I am able to specify my field name and my indices in my query using elasticsaerchTemplate: @Override public…
Patrick
  • 12,336
  • 15
  • 73
  • 115
9
votes
3 answers

spring data elasticsearch: settings and mapping config with annotations not working

I'm using embedded elasticsearch with spring boot and I was trying to use annotations for configuring settings and mappings. I followed this Tutorial which explains how to implement searching over multiple fields. Anyway, I have defined the…
Rubén
  • 427
  • 1
  • 9
  • 23
1
2
3
96 97