Questions tagged [elasticsearch-7]

Use this tag for version specific questions about Elasticsearch 7.0 - the distributed, RESTful search and analytics engine. When using this tag also include the more generic [elasticsearch] tag where possible.

314 questions
1
vote
1 answer

ElasticSearch: Query nested array for empty and specific value in single query

Documents structure - { "hits": [ { "_type": "_doc", "_id": "ef0a2c44179a513476b080cc2a585d95", "_source": { "DIVISION_NUMBER": 44, "MATCHES": [ { "MATCH_STATUS": "APPROVED", …
1
vote
1 answer

Elasticsearch excessive memory consumption

I have a Debian 10 server with 200Gb+ of disk space and 32Gb of RAM. This server hosts two websites with a nginx + MySQL + PHP stack. Each website uses a different version of Elasticsearch (6.1.4 & 7.2.1) to index some data for autocompletion and…
1
vote
1 answer

Elasticsearch script query started to fail suddenly

We have had this query for a long time { "size": 50, "query": { "match_all": {} }, "version": false, "seq_no_primary_term": false, "sort": [ { "_script": { "script": { "source": "(doc[params.f].size() !=…
Richa
  • 7,419
  • 6
  • 25
  • 34
1
vote
1 answer

Elastic Search Version 7.17 Java Rest API returns incorrect totalElements and total pages using queryBuilder

We are currently upgrading our system from ElasticSearch 6.8.8 to ElasticSearch 7.17. When we run pageable queries using the Java Rest API, the results are incorrect. For example, in version 6.8.8, if we query for data with and request page 2 with a…
RiceRiceBaby
  • 1,546
  • 4
  • 16
  • 30
1
vote
0 answers

ES7 Migration :: From Transport Client to API client

I know that there exists documentation for migrating ES7 clients from [TransportClient to HighLevelRestClient] and [HighLevelRestClient to API client]. But I want to check if it is possible to directly migrate from [TransportClient to APIClient] Is…
1
vote
1 answer

What is replacement for FullTextQuery.setCriteriaQuery() in Hibernate Search 6?

I am migrating Hibernate Search 5 to Hibernate Search 6. Though, the documentation is really helpful, I am not able to find alternative for criteria query in Hibernate Search 6 and didn't quite get from documentation. This is the Hibernate Search 5…
1
vote
0 answers

Elasticsearch is using more memories

I'm using Magento 2 eCommerce and we are having 400 sites(multi-website). Each website created a separate index. So overall I have 400 indices in elasticsearch and each has a store.size of 10kb-500kb. curl --silent -X GET…
1
vote
2 answers

How to "Explicitly order highlighted fields" using ElasticSearch Java API client v7.16?

I want to explicitly order highlighted fields using the Elasticsearch Java API Client 7.16. In other words I want to build the following request GET /_search { "highlight": { "fields": [ { "a": {} }, { "b": {} }, { "c": {} } …
igor
  • 699
  • 1
  • 9
  • 26
1
vote
0 answers

ElasticSearch 7.10 using pit return duplicate ids in differnt pages

ElasticSearch 7.10 using pit return duplicate ids in differnt pages using pagination with page number and page size, this makes sence? I thougt that pit should prevent the effect of indexing new documents while doing searches
Doron Levi
  • 458
  • 4
  • 16
1
vote
2 answers

Searching through objects inside nested documents provides unexpected output

I am getting unexpected result from Elasticsearch while searching though object property which are inside nested property. I am using elasticsearch-dsl python library for creating document and querying. Is this bug or I am missing something in…
1
vote
1 answer

Elastic search multiple field match query with condition and boost

I have one field in my elastic search which is visibility_boosters which has two properties country_id and booster_rate. I want to apply multi match query with these two fields (country_id and booster_rate). country_id is dynamic and Visibility…
1
vote
1 answer

`timestamp` field is invalid for use with the "Date Histogram" aggregation

Having issue viewing indices in Kibana 7.x due to Error: Saved field "value.request.timestamp" of index pattern "flight-cache-*" is invalid for use with the "Date Histogram" aggregation. Please select a new field. The document json looks something…
1
vote
1 answer

How to populate data for existing documents after new fields are added in mapping

recently we came across a requirement where we need to add 3 new fields to our Existing Index. We pull this data from our source database using logstash. We have 1000's of documents stored in the current Index already. In the past, it was being told…
Kris
  • 27
  • 3
1
vote
1 answer

Elasticsearch java client stopped supporting custom query type values, such as enum

Looks like there is a regression\change in Elasticsearch java client, it stopped supporting custom query type values, such as enum: String query = QueryBuilders.boolQuery(). must(QueryBuilders.termsQuery("status", …
Doron Levi
  • 458
  • 4
  • 16
1
vote
1 answer

Elasticsearch index is taking up too much disk space

I have index in production with 1 replica (this takes total ~ 1TB). Into this index every time coming new data (a lot of updates and creates). When i have created the copy of this index - by running _reindex(with the same data and 1 replica as well)…
Igor Benikov
  • 884
  • 6
  • 21