Skip to main content
0 votes
1 answer
38 views

Spring data elasticsearch how to print the elasticsearch JSON representation of the query

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
33 views

ElasticsearchRepository result is greater than 10000 Documents

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
45 views

Spring Data Elasticsearch all shards failed exception

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
38 views

Spring Data elasticsearch , using match_phrase with Criteria

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
60 views

Concurrent writes to Elasticsearch Index using plainless script

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

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
85 views

Is there a way to have field level audit in elastic search?

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
67 views

Spring data elastic search custom conversions doesn't work

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,045
0 votes
1 answer
42 views

How to combine must and should for the same field in filter Elasticsearch Spring Boot?

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

How to Implement Complex Queries (Vector Queries) in Spring Data Elasticsearch

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
106 views

How to submit task in ElasticSearch Java API Client?

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

Highlighting not working when using Java elasticsearch api

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
70 views

How to search elasticsearch using spring-boot-starter-data-elasticsearch?

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

threw an unhandled Exception: java.lang.NoSuchFieldError: INDEX_CONTENT_TYPE

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

Elastic Search query upgrade for RangeQuery builder

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

15 30 50 per page
1
2 3 4 5
102