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

How to increase the max_result_window in elasticsearch using a python script?

I know, we can use the curl to increase the max_result_window as something like: curl -XPUT "http://localhost:9200/index1/_settings" -d '{ "index" : { "max_result_window" : 500000} }' But How do I do the same using python? My code es =…
9
votes
1 answer

Best way to synchronize Elasticsearch with Mysql

I am using elasticsearch in my spring web mvc project (spring-data-elasticsearch) and to synchronize with database (MySQL). I am indexing the document from my app, if any new entity going to add in db tables at the same time, from service layer, I…
Amit Patel
  • 134
  • 2
  • 17
9
votes
1 answer

Transactional Support in Spring Data Elastic Search

I am working with Spring Data Elasticsearch , Spring Data has support for Transactional queries . This i am enabling by @Transactional annotation. But since elasticsearch does not have any ACID properties what does this Transactional do, the…
Abhishek Ranjan
  • 911
  • 1
  • 14
  • 29
8
votes
1 answer

Spring Data Elasticsearch (4.x) - Using @Id forces id field in _source

Summary Recently we upgraded to Spring Data Elasticsearch 4.x. Part of this major release meant that Jackson is no longer used to convert our domain objects to json (using MappingElasticsearchConverter instead) [1]. This means we are now forced to…
8
votes
5 answers

ES Rest High Level Client throws SocketTimeoutException after being idle for sometime

RestHighLevelClient is used to connect to ES 6.4(hosted on AWS) in a spring-boot app. When the app goes idle for some time, and request arrives, then the RestHighLevelClient throws SocketTimeoutException: [Request processing failed; nested exception…
Fedor
  • 559
  • 1
  • 7
  • 19
8
votes
2 answers

What Elasticsearch client does Spring-Data-Elasticsearch use under the hood?

I want to use Spring Data Elasticsearch in my project and I saw this: The well known TransportClient is deprecated as of Elasticsearch 7.0.0 and is expected to be removed in Elasticsearch 8.0. My approach is to only use Spring Data Elasticsearch to…
Ala Abid
  • 2,256
  • 23
  • 35
8
votes
3 answers

Elasticsearch Spring Data with RestHighLevelClient

I don't understand the relationship between the High Level REST CLient (which replaces the Transport Client) and Spring Data Elasticsearch. There are tutorials (https://www.baeldung.com/spring-data-elasticsearch-tutorial) showing how to make…
Phil
  • 7,065
  • 8
  • 49
  • 91
8
votes
1 answer

How to config not_analyzed with @Field annotation in spring-data-elasticsearch 3.0.0.RC2

In spring-data-elasticsearch 3.0.0.RC2, @Field annotation has a boolean index() and a String analyzer(). How to config "not_analyzed" with @Field annotation?
cbb
  • 141
  • 1
  • 2
  • 5
8
votes
1 answer

Index not Found Exception

So, back again I have a JHipster generated project which uses an elasticsearch java client embedded in spring boot. I have recently done some major changes to the datasets since we've been migrating a whole new bunch of data from different…
Steven
  • 1,236
  • 1
  • 13
  • 37
8
votes
1 answer

How add sorting to spring data elasticsearch

I m writing an api using elasticsearch spring data and I want to add ordering.I cant find a resolve in google. So I write here to ask you guys how I can do that. If you will need more code please tell me what u need and I try to add more code. My…
8
votes
1 answer

How to store Java 8 (JSR-310) dates in elasticsearch

I know elasticsearch can only save Date types internally. But can i make it aware to store/convert Java 8 ZonedDateTime, as i use this type in my entity? I'm using spring-boot:1.3.1 + spring-data-elasticsearch with jackson-datatype-jsr310 on the…
locobytes
  • 89
  • 5
8
votes
1 answer

Spring Data REST does not seem to be working with elasticsearch

I am trying to use Spring Data REST for elasticsearch. The built-in REST controller for POST doesn't seem to be working: I am getting an error when I attempt to post a document. The issue is easy to reproduce: I created a simple…
8
votes
4 answers

Multitenancy with spring-data-elasticsearch

Is there any way to make spring-data-elasticsearch to work for multitenant application? I've made it to work without multitenancy, but I don't know how can I have multiple indices or multiple nodes for each tenant? I want to know if there is any way…
7
votes
1 answer

How to prevent running AfterSaveCallback on save

How to prevent running AfterSaveCallback on save on certain conditions (say AfterSaveCallback). We would like to avoid triggering AfterSaveCallback even when its present and registered. How to achieve this? Refer…
Rpj
  • 5,348
  • 16
  • 62
  • 122
7
votes
1 answer

In spring data elasticsearch, can aggregation queries be put in a respository implementation?

I'm using spring-boot-elasticsearch for the first time. I've now figured out how to describe my serial difference pipeline query using elastics java api. This query, as you'll see below is rather large, and returns several buckets for each object as…
Damon
  • 305
  • 1
  • 5
  • 13
1 2
3
96 97