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

ElasticSearch - Spring Boot - Upsert is throwing DocumentMissingException

I am using Spring Boot and ElasticSearch. When I am trying to upsert using Spring, it is throwing DocumentMissingException when there is no document present in the ElasticSearch. The same code works fine when there is a document present in the…
7
votes
0 answers

Spring-data-elasticsearch @CompletionField does not create field with type "complete"

I am using Spring-data-elasticsearch and there ElasticsearchTemplate functions. I try to create an index by using the @CompletionField annotation on a Completion field named suggest. @Document(indexName = "city", type = "city") public class City…
Patrick
  • 12,336
  • 15
  • 73
  • 115
7
votes
1 answer

Hibernate Search vs spring-data-solr , spring-data-elasticsearch

I have a spring boot, Spring Data JPA (hibernate) web application and want to introduce text search feature. I understand the following Both hibernate search or spring-data-* can be integrated into my app Hibernate search can work with embedded…
7
votes
1 answer

Disable automatic index creation in spring boot / spring data elasticsearch

I'd like to separate the process of creating the index (including settings and mapping) from the rest of the application to have more control over the behaviour of my application. My spring boot project creates the index automatically on startup. Is…
Benjamin
  • 544
  • 5
  • 21
7
votes
4 answers

How to configure Spring Boot with elasticsearch 5.2.1?

I am trying to connect my Spring Boot application to local elasticsearch 5.2.1 instance. When i use "org.springframework.boot:spring-boot-starter-data-elasticsearch" dependency, i face with "Received message from unsupported version: [2.0.0] minimal…
cek
  • 167
  • 2
  • 16
7
votes
1 answer

Spring Data Elasticsearch Parent/Child Document Repositories / Test execution error

I created two Spring-Data elasticsearch repositories for two parent/child related documents. You can see the document classes for both of them here. The repositories are getting instantiated in XML with the help of repositories element like this…
ltsallas
  • 1,918
  • 1
  • 12
  • 25
7
votes
1 answer

@Setting annotation for Elasticsearch is ignored in Spring Boot

In my Spring Boot application I have a @Setting annotation pointing to a settings JSON file but it seems to be completely ignored. @Setting(settingPath = "/settings/elasticsearch-settings.json") @Document(indexName = "hermes", type = "client",…
7
votes
1 answer

it's possible make spring-data-elasticsearch @Document with compound key?

I started to work with Spring Data Elasticsearch on Spring Boot 1.3.1 and I want to use the same Entity that use in my database, and it has compound key. Entity class: @IdClass(PassengerPk.class) @Table(name =…
7
votes
4 answers

None of the configured nodes are available issue with spring boot

Hi friends i am developing spring boot project with elastic search i have setup elastic search on local machine and i have installed Head plugin in elastic search . My elastic search is setup correctly showing green sign. My application-dev.yml file…
Qasim
  • 9,058
  • 8
  • 36
  • 50
7
votes
2 answers

How to interact with elastic search Alias using Spring data

Hi I am using elastic search Spring data. Domain structure of my project keeps on changing.So I have to drop the index in order to change the mapping every time. To overcome this problem, I am using Aliases. I created an Alias…
Richa
  • 7,419
  • 6
  • 25
  • 34
7
votes
0 answers

Spring data elasticsearch's CriteriaQuery vs SearchQuery

I am in reference to Spring Data Elasticsearch's CriteriaQuery and SearchQuery (both from org.springframework.data.elasticsearch.core.query package). I am not sure when I should be using a SearchQuery (or its implementation) or a CriteriaQuery. It…
balteo
  • 23,602
  • 63
  • 219
  • 412
7
votes
2 answers

How to define ElasticSearch index field names for a POJO using Spring Data ElasticSearch

I'm using Spring Data ElasticSearch to perform CRUD operations. By default, when a POJO annotated with @Document gets written to an ElasticSearch index, the index field names are the same as the POJO's Java property names. How can I configure the…
7
votes
1 answer

filtered query using NativeSearchQueryBuilder in spring-data elasticsearch

I am new to elasticsearch. I have a filtered query which gives me correct results using console: GET _search { "query": { "filtered": { "query": { "bool" : { "should" : [ { "match" :…
Sunny Agarwal
  • 1,451
  • 4
  • 18
  • 36
7
votes
1 answer

Spring Data ElasticSearch TransportClient Java Config

Does anybody know what's Java Config equivalent of :
Nitin Arora
  • 2,650
  • 1
  • 26
  • 27
6
votes
1 answer

delete all elements which is less than a value in Elasticsearch

I have the following saved json data in Elasticsearch: { "id":"1234", "expirationDate":"17343234234", "paths":"http:localhost:9090", "work":"software dev", "family":{ "baba":"jams", "mother":"ela" } }, { …