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
-1
votes
1 answer

Elasticsearch query on array of objects with date

Hi i am new to Elasticsearch and trying to implement a solution using spring-data-elasticsearch. My indexed data looks like this: [ { "worker": "A", "availability": [ { "startDate": "2020-01-12", "endDate":…
-1
votes
1 answer

Elasticsearch Rest client for Query DSL

I am trying to write a method using ElasticsearchRestTemplate to fetch data from elasticsearch using query DSL ]. I looked into the documentation, but the documentation is not clear to me how to get the data from elasticsearch using java. Can anyone…
-1
votes
3 answers

Connect to distant ELK server with jhipster

i started a project using JHipster and elasticsearch and i don't know how configure my project to connect with distant elk server. I have a distant elasticsearch on 10.119.19.28:9200, when I enter the address to browser I got this: { "name" :…
-1
votes
1 answer

How to use terms query in custom elastic search query java?

I want to search a field against an array of values in elastic search. I am writing custom terms query in java but it fails every time. Code - @Query("{ \"bool\" : { \"must\" : [\t{ \"term\" : {\"userId\" : ?0 } },\t{ \"terms\" : { \"language\" :…
Aadi
  • 154
  • 1
  • 2
  • 18
-1
votes
1 answer

Elasticsearch search by keywords and boost

I'm using Spring Boot 2.0.5, Spring Data Elasticsearch 3.1.0 and Elasticsearch 6.4.2 I have loaded ElasticSearch with a set of articles. For each article, I have a keywords field with a string list of keywords e.g. "keywords": ["Football",…
Swordfish
  • 1,127
  • 24
  • 46
-1
votes
1 answer

how to viewAll the docs of an index using rest in elasticsearch

while creating a rest which function can i use to view all the documents in an index, like for prepareGet takes 3 arguments (indexName, type, id) to view the document, i need to know a function which takes only one argument as indexName and displays…
-1
votes
1 answer

Spring elasticsearch : create index for each user

I am building an application using Spring boot and elasticsearch (& spring-data-elasticsearch). I have an entity User that contains a list of regions (i.e each user is responsible for a set of regions). I have another entity Report that is…
-1
votes
1 answer

Integrating ElasticSearch with Springboot

I am trying to integrate ElasticSearch with Springboot but I am getting the following error: "exception": "org.elasticsearch.client.transport.NoNodeAvailableException", "message": "None of the configured nodes are available:…
-1
votes
1 answer

Move spring repository to different folder

Is it possible to move spring data repo Implementation to different folder (not same or sub folder of original inteface)? If I have interface and implementation in same folder all works fine. If I move it from e.g com.app.domain.repo to…
-1
votes
1 answer

Exact matches with match query on analyzed field not showing on top

I have a data set like below "hits": [ { "_index": "demotest", "_type": "demotest", "_id": "2", "_score": 1, "_source": { "name": "Duvvuri ram gopal reddy" …
-1
votes
1 answer

Elastic Search: "fuzzy_like_this_field" not working properly

ES Query { "bool": { "must": [ { "fuzzy_like_this_field": { "Product.productInfo": { "like_text": "code=9787 Cornichons, qty=1.0, amt=0.89,code=37424 Pasta Spez. frisch, amt=1.29, totalCost=0.0, vat=0.0", …
-1
votes
1 answer

Connect to in-memory ElasticSearch from Spring Boot

Can anyone please advise, what is the address if I am trying connect to an ElasticSearch node that is in-memory(just using the default config) while using Spring boot ? I am looking at something like localhost:port. Thanks!
Robert Varga
  • 321
  • 2
  • 4
  • 10
-2
votes
1 answer

When using ElasticsearchRepository, how to get delete response status?

I am using Spring-Data-Elasticsearch in my project, and I want to delete document by ElasticsearchRepository interface. There is not a response from delete api, so I can't distinguish whether the document existed in ES. I don't want to seperate into…
-3
votes
3 answers

@Autowired object is always null

I've started playing with spring data elasticsearch and have been looking at the example here. I am having trouble understanding how @Autowired works. Consider the following: IMessageProcessor.java: package message.processor; public interface…
PCL
  • 421
  • 2
  • 7
  • 15
1 2 3
96
97