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
5
votes
2 answers

Aggregation Support for Spring Data Elastic Search

Elastic search has deprecated Facets and recommend to use Aggregations (http://www.elastic.co/guide/en/elasticsearch/reference/1.x/search-aggregations.html) . Is Spring Data Elastic Search supports this currently ? If Yes, is there any Samples…
5
votes
2 answers

Does Spring Data Elasticsearch supports @Id annotation from JPA?

I am getting started to use Spring Data Elasticsearch. I read: One of the attributes of the class needs to be an id, either by annotating it with @Id or using one of the automatically found names id or documentId. but when I marked my Project…
Roman
  • 1,121
  • 4
  • 23
  • 38
5
votes
2 answers

Spring Data Elasticsearch requires property named id

I started to work with Spring Data Elasticsearch and find issue. During run test which is calling findAll() through repository I am getting: No id property found for class com.example.domain.entity.Project! When I add field @Transient private Long…
Roman
  • 1,121
  • 4
  • 23
  • 38
5
votes
1 answer

Using the same POJO for a JPA entity and an Elasticsearch document

I have annotated a JPA entity both with @Entity and @Document (from Spring Data Elasticsearch) so I am basically indexing into Elasticsearch the same POJO as JPA. Is this a good and recommended practice? If not, what is the alternative? Having two…
balteo
  • 23,602
  • 63
  • 219
  • 412
5
votes
2 answers

error creating bean - nested exception is java.lang.stackoverflow error spring data elasticsearch repository

I am trying to configure Spring Data Elasticsearch in my Spring MVC project.I am following Java configuration. Following is my config class for elasticsearch as suggested here. public class ESConfig { @Configuration …
hemu
  • 3,199
  • 3
  • 44
  • 66
5
votes
2 answers

Spring Data Elasticsearch Geo Shape Type for Multipoint use

We are currently using spring data elastic search. I would like to create a field that is of the type geo_shape so I can create a multipoint field with multiple coordinate geoJson points. I see that the project supports a GeoPointFields but don't…
mbgolds
  • 51
  • 2
5
votes
1 answer

Disable _source field using spring data elasticsearch

When indexing the entity(document) the default behavior is to index all the fields of the entity. By default source is enabled and store is disabled to all fields. But If I want to index some of the fields only instead of index all the fields, As I…
user3615392
  • 91
  • 2
  • 5
4
votes
1 answer

Spring Data Elasticsearch Bulk Index/Delete - Millions of Records

I'm using Spring Data Elasticsearch 4.2.5, we have a job that does ETL (extract, transform and load data) to a particular database table. I'm indexing this data using Elasticsearch while the job is running. The data will be in millions of records…
this.srivastava
  • 1,045
  • 12
  • 22
4
votes
2 answers

How to avoid "_class" field in documents using spring-data-elasticsearch

I am using spring-data-elasticsearch for my application. I found spring automatically creates dynamic field "_class" in all my documents. I configured my index as a strict dynmaic mapping. I expecting some properties to exclude this field from my…
Achaius
  • 5,904
  • 21
  • 65
  • 122
4
votes
1 answer

Text fields are not optimised for operations that require per-document : Elasticsearch

This is my Entity: public class RecentTransactionBo { @JsonProperty("timestamp") @Field(type = FieldType.Date, format = DateFormat.basic_date_time) @Id @Temporal(TemporalType.DATE) private Date creationDate; private…
4
votes
1 answer

Partial query with Where statement using Elasticssearch 7 java api

I am using the following to search. It is working fine. But it is returning the results when complete word match is found. But I want results with a partial query (minimum 3 characters match incomplete word). Another check should be , I have a…
4
votes
2 answers

Define a custom date format and converter with Spring Data Elasticsearch

I'm currently migrating from Spring Data Elasticsearch 3.2.x to 4.0.0. I'm removing a JacksonEntityMapper, that defined a custom ZonedDateTimeDeserializer, to use the ElasticsearchEntityMapper I have a ZonedDateTime field defined as follows: …
Matt Garner
  • 125
  • 1
  • 4
4
votes
1 answer

Getting InnerHits Result from SearchHits Class at Spring Data Elastic Search 4.0.0

I am currently doing migration from spring data elastic search 3.2.X to 4.0.0. I had been relying on obtaining inner hits result through raw SearchResponse class by utilizing the now deprecated low level function…
Felix Stanley
  • 73
  • 1
  • 10
4
votes
2 answers

Spring Data Elasticsearch failed to find geo_point field

I have an spring boot application for use elasticsearch geopoint. When i save an elastic index and create a geoDistanceQuery i getted QueryShardException[failed to find geo_point field [customer]] exception. My document; import lombok.Getter; import…
mertaksu
  • 535
  • 1
  • 9
  • 26
4
votes
2 answers

How spring data elasticsearch use offset and limit to query

How spring data elastisearch use offset and limit to query. I want to use offset and limit param to query page.But I can not find methods support. For Example: queryBuild.withPageable(PageRequest.of(pageIndex, pageSize)); Page
Michael
  • 41
  • 1
  • 3