Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
43 views

Using SpringBoot data elasticsearch Need to print the Elasticsearch JSON representation of the query Creating a org.springframework.data.elasticsearch.core.query.CriteriaQuery that is passed to org....
gary's user avatar
  • 508
1 vote
1 answer
35 views

I have a SpringBoot application in which I query an Elasticsearch cluster using an Elasticsearch repository. This is working fine at first. I have the following method in my repository, among others: ...
Thomas Mueller's user avatar
0 votes
0 answers
48 views

I faced a problem connected with Elasticsearch while implementing full text search. When I try to find documents in index I face this problem 2025-08-27T09:15:59.544+03:00 ERROR 19622 --- [Muse] [nio-...
Usernamedrew's user avatar
0 votes
0 answers
39 views

I have a Spring Boot 3.3.x application that uses Spring Data Elasticsearch to query a single Elasticsearch index. The query is built dynamically using the Criteria API. Now, I need to add a new ...
never's user avatar
  • 681
0 votes
1 answer
61 views

This is a followup question to (Is there a way to have field level audit in elastic search?) Step 1: #push a sample doc PUT my_index/_doc/1 { "created_at": "2025-02-24T13:00:00Z",...
Spartacus's user avatar
  • 454
0 votes
1 answer
82 views

How should I implement script sort in spring-data-elasticsearch 5.3.x NativeQueryBuilder nativeQueryBuilder= new NativeQueryBuilder(); nativeQueryBuilder.withQuery(query); nativeQueryBuilder.withSort(...
Guoqing Lee's user avatar
0 votes
1 answer
87 views

I have an index with say 10 fields. These fields may get modified from time to time. Is there a way to add any field level timestamp, which can store the timestamp when it was last updated and also ...
Spartacus's user avatar
  • 454
0 votes
1 answer
71 views

Custom @ReadingConverter isn't being triggered but when I was initially implementing this code it worked normally. Configuration class: @Configuration public class ElasticsearchConfig { @Bean ...
solujic's user avatar
  • 1,055
0 votes
1 answer
42 views

I'm using Elasticsearch filters and I would like to apply a must condition for selected regions (e.g., Occitanie and Île-de-France). Additionally, I want to ensure that profiles with the region "...
Raouf Zouaoui's user avatar
0 votes
0 answers
23 views

The following code will throw an exception: [es/search] failed: [parsing_exception] unknown query [query]. @Query(value = """ { "query": { "script_score": {...
lambda's user avatar
  • 1
-1 votes
1 answer
111 views

Now, RestHighLevelClient is deprecated. So i want rewrite code with ElasticSearch Java Api Client in my spring project. Most of the functions are being modified properly, but I have not found an ...
Redwings's user avatar
  • 556
0 votes
0 answers
25 views

When I use the following query using CURL I successfully get highlights: { "query": { "query_string": { "query": "Angular" } }, "...
0xJanAbe's user avatar
0 votes
0 answers
71 views

I want to use the following elastic search query in Java to search through all my documents in my index. { "query": { "query_string": { "query": "my ...
0xJanAbe's user avatar
0 votes
0 answers
44 views

logger.info("Started Pushing to Elastic Search"); postTestRunDataRepository.saveAll(allTestCasesWithDetails); logger.info("Finished Pushing to Elastic Search&...
Rashmi's user avatar
  • 1
1 vote
4 answers
750 views

I am upgrading the elasticsearch version from 8.14.3 to 8.15.3 and there are some issues with this query- return new RangeQuery.Builder() .field(fieldName) .gte(JsonData.of(dateToday)) .build() ....
Karin's user avatar
  • 17
0 votes
2 answers
119 views

I had an ELK server that I needed to shut down and replace with a new one. I had a Java Spring Boot project that was connected to the original ELK server. After moving to the new server, all the ...
Mustafa Yilmaz's user avatar
0 votes
1 answer
146 views

I have a custom Kafka library that for business reasons I'm forced to use. My use case is to read each record from Kafka and save to a repository. The entry to my repository is a callback I write that ...
Ramzi's user avatar
  • 1
0 votes
1 answer
65 views

We have implemented below code using springboot 3.1.0 and elastic search 8.10.4 CompositeAggregationSource compositeAggregationSource = CompositeAggregationSource .of(ca -> ca.terms(...
Amulya M's user avatar
  • 109
0 votes
1 answer
62 views

I use spring 2.2.4.RELEASE and spring-data-elasticsearch 3.2.4.RELEASE My elastic version is 7.10. I already have lot of index and data in it. I just notice after once year that the search is not ...
Teddy Kossoko's user avatar
0 votes
1 answer
168 views

Expectation: I need all users which are not successful in their last attempt. Actual/My Approach: I applied aggregation by userId and top_hits with size of 1 document which is sorted in descending ...
Techi's user avatar
  • 1
0 votes
0 answers
344 views

Setting @Document(indexName = "person", createIndex = true) without starting the Elasticsearch service on the machine, the Spring Boot project fails to start and reports the following error: ...
SageJustus's user avatar
  • 1,212
0 votes
1 answer
236 views

Help Needed: Perform a Nested Aggregation with Spring Data Elasticsearch 5.2.6 and Elasticsearch-rest-client 8.10 I'm working on a project using Elasticsearch with Spring Data Elasticsearch 5.2.6, and ...
John Student's user avatar
0 votes
1 answer
190 views

I am using this documentation: https://docs.spring.io/spring-data/elasticsearch/reference/elasticsearch/repositories/elasticsearch-repository-queries.html I have a query like this: interface ...
Martijn Jan Jaap de Bruin's user avatar
1 vote
0 answers
77 views

I'm generating sparse vector embeddings using elser model, i want to implement search using spring data based application, what datatype should i use for it. Will the following code work? @Field(...
Amandeep Singh's user avatar
-1 votes
1 answer
373 views

Hi I have field in my opensearch index of @timestamp which looks like this JSON in the document: “@timestamp”: “2024-06-03T20:31:06.40402165Z”,. I tried to retrive the value with the following field ...
LucyEly's user avatar
  • 73
0 votes
1 answer
143 views

Hi I'm trying to implement knn in elasticsearch, using maven java, but k is not being accepted in the querybuilder using elasticsearch client. Query knnQuery = QueryBuilders.knn(m -> m .queryVector(...
Amandeep Singh's user avatar
1 vote
2 answers
299 views

I am using the Elasticsearch's 8.x Java API client for indexing documents to Elasticsearch. While indexing, I'm specifying an ingest pipeline to be executed during data ingestion. public Mono<...
Swastik Gupta's user avatar
0 votes
1 answer
74 views

I use ReactiveElasticsearchClient to query composite aggregation but not return all result. I mean I add all docCount value in return message manually, the result is not same as the document total ...
Jason's user avatar
  • 55
1 vote
1 answer
71 views

I've defined in elasticsearch a field of type date in the format "MM-dd" which works fine except for the date 02-29. I understand that elastic does use a year when saving (even though it ...
user24225992's user avatar
0 votes
1 answer
274 views

I have an index template like below { "index_patterns": [ "request_response-*" ], "template": { "settings": { "number_of_shards": ...
tuk's user avatar
  • 6,954
0 votes
0 answers
94 views

I’m trying to upgrade my 21-Points Health JHipster project from v7.9.4 to v8.4.0. The 7.9.4 version uses Elasticsearch Java 7 and the newer version uses Elasticsearch Java 8. I’m struggling to ...
Matt Raible's user avatar
  • 8,709
0 votes
1 answer
213 views

In Spring Boot Elasticsearch Repository, I am using the PaginationAndSorting Spring capability (Pagination), which works great for fields that are 'date', but causes an error when I try to sort by a '...
user24402337's user avatar
2 votes
2 answers
505 views

I have a test project with the following configuration: spring boot 2.7.18 spring-boot-starter-data-elasticsearch opensearch 2.6.0 The connection to OpenSearch is configured like this: @...
Каляшов Григорий's user avatar
0 votes
1 answer
1k views

I am in process to upgrade sprint boot from 2.7.16 to to 3.2.4 As part of it I upgraded spring-data-elasticsearch, elasticsearch as below spring-data-elasticsearch from 4.3.3 to 5.1.4, elasticsearch ...
Ankit's user avatar
  • 338
0 votes
0 answers
115 views

I am using elastic version 8+ with spring boot elasticsearch 5.2.0 dependency. I want to query my index with Odata $filter. I have configured my parser for Odata and it's generating below query json ...
user23994209's user avatar
-1 votes
1 answer
48 views

The analysis algorithm is performing well on autocomplete with fuzzy matching but the fuzzy matching is not soo good so i wanted to add phonetic analyzer to same firstname index. i ran through many ...
Manish Baral's user avatar
0 votes
2 answers
64 views

My task is simple, I need to query elasticsearch rolling index with reactive way. As the @Document didn't support index name with Spring EL, like @Document(index = "indexName-#(new Date().format(...
Jason's user avatar
  • 55
0 votes
1 answer
92 views

I am currently attempting to query certain indexes using spring-data-elasticsearch's elasticSearchOperations, employing the following query: val index = IndexCoordinates.of("test-*-en&...
mozzi's user avatar
  • 75
0 votes
1 answer
55 views

I am using spring-data-elasticsearch and do some aggregations, below is how I am building a query: NativeSearchQueryBuilder nativeSearchQueryBuilder = new NativeSearchQueryBuilder() ....
SereneAtk's user avatar
  • 125
0 votes
2 answers
213 views

Unable to find the appropriate approach to update by query (reactive) in sring-data-elasticsearch:3.1.1. Earlier versions had something UpdateBy which took a query, but it seems to be deprecated in ...
Nabeel Ahmed's user avatar
0 votes
1 answer
57 views

Looks like there is a delay between saving an entity and possibility to use findBy repository methods. This is my code. Entity which is saved has @Id on sessionId field. The webSocketRepository.save() ...
Serge Harnyk's user avatar
  • 1,349
0 votes
1 answer
154 views

Is it possible to sort elasticsearch documents conditionally? The condition is quite clear, it is visible in my script. When somefield value is present I want to sort by some collection of fields, ...
SereneAtk's user avatar
  • 125
0 votes
0 answers
101 views

Hello dear community, I have migrated from Spring-data-elasticsearch:3.x to 4.4.18 and since then I get this error: Caused by: java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed ...
Andreas's user avatar
  • 67
0 votes
1 answer
600 views

I am currently working on making our hlrc, which we have configured with spring-data-elasticsearch: 4.4.18, compatible with our new ES8 cluster. I have found a migration guide for this here, but it is ...
Andreas's user avatar
  • 67
0 votes
0 answers
119 views

I currently have the problem of having updated from an older spring-data-elasticsearch version to version 4.4.18. Unfortunately, I am still new to elastic search and am now wondering how I can solve ...
Andreas's user avatar
  • 67
1 vote
1 answer
396 views

I am working on replacing quite a lot of RestHighLevelClient code with Spring Data Elasticsearch. Wherever possible, I'm relying on the low-code approach provide by the Repository query methods. This ...
Seanimus's user avatar
  • 567
0 votes
0 answers
201 views

In our application, we are updating more than one document at a time for a index_x. When queried for updated documents, it does not return updated data for few document, immediately. e.g. If I am ...
Akki Kulkarni's user avatar
-1 votes
1 answer
337 views

What I am trying to achieve: Turn on and off the Spring Data Elasticsearch for a SpringBoot application. What did I try: I am using this code: @Configuration public class MyElasticConfiguration ...
PatPanda's user avatar
  • 5,418
1 vote
1 answer
234 views

I'm in the process of upgrading a fairly old app from spring boot 2.0.2 to the latest one. An interim goal was to update to the latest version 2 (2.7.18) So this is probably a dependency version ...
fafarafa's user avatar
0 votes
0 answers
75 views

In my test case below, a Car is deleted. Although the car is deleted, the test fails. According to the test, the car still exists. When I debug through the code, the test succeeds. This got me think ...
user2054927's user avatar
  • 1,041

1
2 3 4 5
31