All Questions
Tagged with elasticsearch spring
691 questions
0
votes
1
answer
75
views
Application can not find RestHighLevelClient Bean
I declared RestHighLevelClient configuration and enabled spring.main.allow-bean-definition-overriding to true as RestHighLevelClient is already defined in the module. But RestHighLevelClient bean ...
0
votes
1
answer
31
views
Spring Boot Elasticsearch: Unresolved Reference for gte, lte, and .fields in RangeQuery
I'm using Spring Boot 3.4.1, Elasticsearch 8.15.5, and Spring Data Elasticsearch with Kotlin. When trying to build a query using gte, lte, and .fields, I get unresolved reference errors in my code.
...
0
votes
0
answers
23
views
Validation and changing ElasticSearch index settings during Spring bean initialization
I use Spring Data ElasticSearch index configuration, using such syntax:
@Document(indexName = "example")
@Setting(settingPath = "path_to_example_setting_file.json")
@Mapping(...
0
votes
0
answers
26
views
Elasticsearch Spring Docker CONNECTION FAILS
My microservice app runs correctly locally. Im trying to dockerize it but my product-service fails to connect elasticsearch.
Docker-compose.yml
services:
config-service:
container_name: config-...
0
votes
0
answers
35
views
Enriching XML Data Before Saving to Database in Apache Camel
I'm working on a project using Apache Camel and Spring Boot, and I'm trying to save data to Elasticsearch. I have two XML files:
The first file contains a huge list of products.
The second file ...
1
vote
1
answer
53
views
Can't configure elastic search with spring boot in docker network
I have a docker network with several containers: spring_app,hosting_db(mysql),elastic_search. I successfully connect to elastic_search via curl. Also I successfully connect to elastic_search from ...
0
votes
0
answers
20
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": {...
0
votes
0
answers
71
views
Intermittent Spring Boot micrometer failed to send metrics to elastic: premature EOF after Elastic 8.16 upgrade
I am using spring boot 3.3.6, looks like it is using micrometer-elastic-registry:1.13.6. I didn't see this errors until I upgrade Elastic from 8.11.4 to 8.16. There were no changes to anything else so ...
0
votes
0
answers
71
views
elasticsearch Dependency failed to fetch from repo maven - maven project
Java version: 22
Springboot version: 3.3.5
Apache Maven: 3.8.1
I am currently trying to fetch elasticsearch java API from repo maven
<dependency>
<groupId>co.elastic....
0
votes
2
answers
87
views
Issues connecting Spring Boot application to new ELK server after migration
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 ...
0
votes
0
answers
59
views
Using WithQuery API In NativeQueryBuilder Of Elastic Search
With the previous version of spring data elastic search and RestHighLevelClient i was able to use the BoolQueryBuilder with NativeSearchQuery and NativeSearchQueryBuilder as shown below
...
1
vote
0
answers
66
views
Data type for Elser Sparse Vector Embeddings in Spring Data
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(...
0
votes
0
answers
35
views
How do I change Spring app using Postgres to use ElasticSearch as datastore?
I have a Spring application using Postgres as the datastore. I would like to use ElasticSearch instead. If someone has experience making a similar change, I would appreciate hearing the details. Can ...
0
votes
0
answers
64
views
How to store shedlock details to elastic search using spring
I want to use shedlock for my spring application and want to keep track of lock information for my schedulers in elastic search index, not finding any useful resources.
I tried with Cassandra db and ...
0
votes
1
answer
44
views
spring + elastic search + window not work
Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/common/xcontent/XContentFactory
at org.springframework.data.elasticsearch.core.index.MappingBuilder.buildPropertyMapping(MappingBuilder....