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-elasticsearch
1,526
questions
0
votes
0
answers
15
views
How to convert CriteriaQuery to QueryBuilder? [spring-data-opensearch]
I need to use NativeSearchQueryBuilder to create a SearchQuery that does an aggregation, but NativeSearchQueryBuilder only support QueryBuilder as a query and I have developed all my filters as ...
0
votes
0
answers
32
views
Spring Boot Data Elasticsearch querying documents' collection with multiple fields
In Elasticsearch, I have an index with the following mapping (simplified):
{
"properties": {
"@timestamp": {
"type": "date",
"format"...
0
votes
1
answer
28
views
post_filter after applying top_hits aggregation not working in elastic search
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 ...
0
votes
0
answers
63
views
Spring Data Elasticsearch throws error when Elasticsearch service is not started
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:
...
-1
votes
0
answers
21
views
Is it possible in Spring Data Elasticsearch to return subobject only?
Can somebody verify whether it is possible to do the following using Spring Data Elasticsearch and ElasticsearchRepository?
Here is an example of the object being stored:
public class TopLevel {
@Id
...
-1
votes
0
answers
14
views
ElasticSearchTemplate LocalDateTime
recently i learning es and I use the spring-boot-starter-data-elasticsearch to access my data.
but in my unit test,i found some problem. it confuse me all day, I would be very grateful if you could ...
0
votes
0
answers
21
views
how to use custom query in springboot (elasticsearch) [search method not found error]
there I am Aditya. Currently making backend for ecommerce website as personal project. While making it I came to know about elasticsearch which seems to use some AI logic and helps to do fuzzy search. ...
0
votes
1
answer
46
views
Elasticsearch Nested Aggregations with Spring data elasticsearch 5.2
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 ...
0
votes
1
answer
99
views
Spring data Elasticsearch @query with projection/sourcefilter
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 ...
0
votes
0
answers
16
views
How to multimatch search in elastic with case insensitive?
I have an existing elastic search with lot of data inside it.
I use spring boot
this is my code
logger.info("Find games by criteria : {}", criteria);
List<GameDto> gameDtoList =...
1
vote
0
answers
29
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
75
views
Search Like Google Using Elasticsearch
I want to perform a search like google when the user starts typing.
My documents looks like this:
{
"fir_number": "12345",
"fir_id": "123",
...
-1
votes
1
answer
93
views
Spring Data OpenSearch Unable to Convert Value of @Timestamp to Java Instant
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 ...
0
votes
1
answer
33
views
How do we put the value of k in the knnquery in using elastic search client?
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(...
0
votes
0
answers
28
views
How to parse Aggregation returned by reactive elastic search client
I have get the aggregation from reactive elastic search client, but I don't know how to parse it to transfer it into my domain object. Any suggestion is welcome.
YearMonth yearMonth = YearMonth.of(...