# Elasticsearch

**URL:** https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=943

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 944

---

## [ElasticSearch Inner Hits on has\_parent nested Inner hits](https://discuss.elastic.co/t/elasticsearch-inner-hits-on-has-parent-nested-inner-hits/229777)

<div class="topic-metadata">

**Author:** [@jlivet](https://discuss.elastic.co/u/jlivet)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 5:26pm UTC](https://discuss.elastic.co/t/elasticsearch-inner-hits-on-has-parent-nested-inner-hits/229777 "2020-04-25T17:26:12Z")

</div>

I've searched for this and haven't found anything that says whether this is or is not supported. According to Elastic documentation: "Inner hits can be used by defining an inner\_hits definition on a nested, has\_child…

---

## [Unknown-setting-cluster-initial-master-nodes error in ES 7.6.2](https://discuss.elastic.co/t/unknown-setting-cluster-initial-master-nodes-error-in-es-7-6-2/229718)

<div class="topic-metadata">

**Author:** [@fstewart](https://discuss.elastic.co/u/fstewart)\
**Replies:** 2\
**Last updated:** [April 25, 2020, 5:11pm UTC](https://discuss.elastic.co/t/unknown-setting-cluster-initial-master-nodes-error-in-es-7-6-2/229718 "2020-04-25T17:11:27Z")

</div>

According to the discussion and breaking doc in this post, ES 7.x should recognize the setting cluster.initial\_master\_nodes. Here's the yml after installing ES 7.6.2 on Windows 7: bootstrap.memory\_lock: true cluster.in…

---

## [Error java.lang.NoSuchMethodError: org.elasticsearch.search.SearchHits.getTotalHits()](https://discuss.elastic.co/t/error-java-lang-nosuchmethoderror-org-elasticsearch-search-searchhits-gettotalhits/226592)

<div class="topic-metadata">

**Author:** [@ajnfde3](https://discuss.elastic.co/u/ajnfde3)\
**Replies:** 20\
**Last updated:** [April 25, 2020, 4:33pm UTC](https://discuss.elastic.co/t/error-java-lang-nosuchmethoderror-org-elasticsearch-search-searchhits-gettotalhits/226592 "2020-04-25T16:33:58Z")

</div>

Hello guys, I know this topic has already been opened but I couldn't see any solution. I am using spring boot 2.2.6 with ES 7.6.2, spring data commons 2.2.6. I defined my repository like this: public interface Collabor…

---

## [Standalone Licence for Openshift](https://discuss.elastic.co/t/standalone-licence-for-openshift/229709)

<div class="topic-metadata">

**Author:** [@fefontana](https://discuss.elastic.co/u/fefontana)\
**Replies:** 2\
**Last updated:** [April 25, 2020, 4:28pm UTC](https://discuss.elastic.co/t/standalone-licence-for-openshift/229709 "2020-04-25T16:28:24Z")

</div>

Hi there, I would like to know if is necessary a paid license for the ELK standalone stack (or any of your components) in order to install it (on local infrastructure, not cloud) on premise pod of (Redhat) Openshift ?. T…

---

## [I'm not able to fix this error?](https://discuss.elastic.co/t/im-not-able-to-fix-this-error/229772)

<div class="topic-metadata">

**Author:** [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 4:05pm UTC](https://discuss.elastic.co/t/im-not-able-to-fix-this-error/229772 "2020-04-25T16:05:27Z")

</div>

I'm unable to find which property causing the issue.Unable to deserialize the object

---

## [Delete by Query security exception](https://discuss.elastic.co/t/delete-by-query-security-exception/229768)

<div class="topic-metadata">

**Author:** [@goetia](https://discuss.elastic.co/u/goetia)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 2:47pm UTC](https://discuss.elastic.co/t/delete-by-query-security-exception/229768 "2020-04-25T14:47:53Z")

</div>

Hi, I'm having problems while trying to delete documents using delete\_by\_query. my cURL is as follows: curl -X POST -u elastic:xxxxxxxxxxxx 'http://host:9200/index-\*/delete\_by\_query' -H 'Content-Type: application/json'…

---

## [Unexpected token u in JSON at position 0](https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/229767)

<div class="topic-metadata">

**Author:** [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 2:33pm UTC](https://discuss.elastic.co/t/unexpected-token-u-in-json-at-position-0/229767 "2020-04-25T14:33:18Z")

</div>

I have an odd problem, when I try to load 90 days worth of data in Kibana, it fails with the following error SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (\<anonymous\>) at https://10.255.21…

---

## [Define and tune elastic cluster](https://discuss.elastic.co/t/define-and-tune-elastic-cluster/229752)

<div class="topic-metadata">

**Author:** [@Rajendra\_Prasad](https://discuss.elastic.co/u/Rajendra_Prasad)\
**Replies:** 1\
**Last updated:** [April 25, 2020, 10:58am UTC](https://discuss.elastic.co/t/define-and-tune-elastic-cluster/229752 "2020-04-25T10:58:05Z")

</div>

Please provide steps involved for the below process Create an Index Lifecycle Management Policy for retention of 60days Create an ideal index template taking into consideration the existing cluster size and log ingest…

---

## [New documents are not indexed/searchable in the cluster when 2 nodes are off out of 3](https://discuss.elastic.co/t/new-documents-are-not-indexed-searchable-in-the-cluster-when-2-nodes-are-off-out-of-3/229750)

<div class="topic-metadata">

**Author:** [@Vano\_Maisuradze](https://discuss.elastic.co/u/Vano_Maisuradze)\
**Replies:** 3\
**Last updated:** [April 25, 2020, 10:44am UTC](https://discuss.elastic.co/t/new-documents-are-not-indexed-searchable-in-the-cluster-when-2-nodes-are-off-out-of-3/229750 "2020-04-25T10:44:15Z")

</div>

I have 3 nodes in the cluster. All of them are master and data nodes. When all nodes are online, indexing works fine. If I turn off only one node, it is still operating normally, but when 2 nodes goes offline, indexing …

---

## [Scalability problems](https://discuss.elastic.co/t/scalability-problems/229592)

<div class="topic-metadata">

**Author:** [@shawmat](https://discuss.elastic.co/u/shawmat)\
**Replies:** 6\
**Last updated:** [April 25, 2020, 8:39am UTC](https://discuss.elastic.co/t/scalability-problems/229592 "2020-04-25T08:39:53Z")

</div>

It all started so well. My project involves loading 400 million documents, which are 80-character strings (lines of words mostly in English). I'm now battling through the third attempt to load the data, but every time …

---

## [Fuzzy search question](https://discuss.elastic.co/t/fuzzy-search-question/228675)

<div class="topic-metadata">

**Author:** [@giorgio](https://discuss.elastic.co/u/giorgio)\
**Replies:** 7\
**Last updated:** [April 25, 2020, 8:31am UTC](https://discuss.elastic.co/t/fuzzy-search-question/228675 "2020-04-25T08:31:47Z")

</div>

Hello I am doing reverse image search using elasticsearch. I have hashes stored in index and now I am trying to find similar hashes(to compensate compression and what not) using Query String fuzziness. my code for searc…

---

## [GeoPath support in queries, sorting, aggregation](https://discuss.elastic.co/t/geopath-support-in-queries-sorting-aggregation/229746)

<div class="topic-metadata">

**Author:** [@adichad](https://discuss.elastic.co/u/adichad)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 7:48am UTC](https://discuss.elastic.co/t/geopath-support-in-queries-sorting-aggregation/229746 "2020-04-25T07:48:06Z")

</div>

Elasticsearch does not seem to have support for the GeoPath shape that lucene does. we have usecases where a GeoPath may be specified in a request in the filter as well as sort/aggregation (by distance along the path) co…

---

## [Per Search Query Resource Usage](https://discuss.elastic.co/t/per-search-query-resource-usage/229639)

<div class="topic-metadata">

**Author:** [@ananth](https://discuss.elastic.co/u/ananth)\
**Replies:** 1\
**Last updated:** [April 25, 2020, 5:32am UTC](https://discuss.elastic.co/t/per-search-query-resource-usage/229639 "2020-04-25T05:32:05Z")

</div>

Hi, Is there any way to check the following on per search query basis. 1. The number of bytes read from disk and the time taken for it. 2. The amount of physical RAM used. 3. Data node(s) Search thread pool queue waiti…

---

## [Ingest node question](https://discuss.elastic.co/t/ingest-node-question/229670)

<div class="topic-metadata">

**Author:** [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Replies:** 1\
**Last updated:** [April 25, 2020, 5:31am UTC](https://discuss.elastic.co/t/ingest-node-question/229670 "2020-04-25T05:31:25Z")

</div>

All of our nodes are ingest nodes because that's the default :slight\_smile: However, only our hot nodes are targeted by most clients for indexing and only a subset of those would use ingest pipelines. The stats appear …

---

## [Is there anything similar to a Reference Set in Elasticsearch](https://discuss.elastic.co/t/is-there-anything-similar-to-a-reference-set-in-elasticsearch/229742)

<div class="topic-metadata">

**Author:** [@hilo21](https://discuss.elastic.co/u/hilo21)\
**Replies:** 0\
**Last updated:** [April 25, 2020, 4:37am UTC](https://discuss.elastic.co/t/is-there-anything-similar-to-a-reference-set-in-elasticsearch/229742 "2020-04-25T04:37:18Z")

</div>

Hello great community, So we're migrating and testing Elastic Stack and I was wondering if there is anything similar to a Reference Set (in QRadar) where I can push and update the internal IP address (or host name) in i…

---

## [Stack Monitoring with Metricbeat](https://discuss.elastic.co/t/stack-monitoring-with-metricbeat/229733)

<div class="topic-metadata">

**Author:** [@ffknob](https://discuss.elastic.co/u/ffknob)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 11:52pm UTC](https://discuss.elastic.co/t/stack-monitoring-with-metricbeat/229733 "2020-04-24T23:52:18Z")

</div>

Hi I was wondering what make the Stack Monitoring app in Kibana understand that the metrics are coming from Metricbeat, instead of self monitoring. (the documentation says this is the prefered way, and also the interfac…

---

## [Clone an Index Elasticsearch 6.7](https://discuss.elastic.co/t/clone-an-index-elasticsearch-6-7/229729)

<div class="topic-metadata">

**Author:** [@karanmig12](https://discuss.elastic.co/u/karanmig12)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 10:15pm UTC](https://discuss.elastic.co/t/clone-an-index-elasticsearch-6-7/229729 "2020-04-24T22:15:29Z")

</div>

What's the best way to clone index in Elasticsearch 6.7

---

## [Third-party rest-delivery service does provide params which get an error at document creation](https://discuss.elastic.co/t/third-party-rest-delivery-service-does-provide-params-which-get-an-error-at-document-creation/229664)

<div class="topic-metadata">

**Author:** [@rndee](https://discuss.elastic.co/u/rndee)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 8:30pm UTC](https://discuss.elastic.co/t/third-party-rest-delivery-service-does-provide-params-which-get-an-error-at-document-creation/229664 "2020-04-24T20:30:43Z")

</div>

I have a third-party service on which I can configure a url (I have put the elastic https://...../index/\_doc) this has lead: the error received: { "error": { "root\_cause": \[ { "type": "illegal\_argument\_exception", …

---

## [Code optimization](https://discuss.elastic.co/t/code-optimization/229713)

<div class="topic-metadata">

**Author:** [@nikolaj\_88](https://discuss.elastic.co/u/nikolaj_88)\
**Replies:** 0\
**Last updated:** [April 24, 2020, 7:45pm UTC](https://discuss.elastic.co/t/code-optimization/229713 "2020-04-24T19:45:22Z")

</div>

Hello, I'm implementing the new search engine on my website and I have doubts about my code. The following code (working version) it's quite bulky and can be bigger depending on search term and I think that it could be…

---

## [Issue with writing Spark dataset to Elastic](https://discuss.elastic.co/t/issue-with-writing-spark-dataset-to-elastic/229694)

<div class="topic-metadata">

**Author:** [@angryninja](https://discuss.elastic.co/u/angryninja)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 7:12pm UTC](https://discuss.elastic.co/t/issue-with-writing-spark-dataset-to-elastic/229694 "2020-04-24T19:12:56Z")

</div>

Hi, I'm trying to write a Spark dataset to es but I get following error while executing following piece of code - items.write().format("es").options(getOptions()).save(); I'm also setting following options while tryin…

---

## [Link external data to Elastic](https://discuss.elastic.co/t/link-external-data-to-elastic/226964)

<div class="topic-metadata">

**Author:** [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 6:39pm UTC](https://discuss.elastic.co/t/link-external-data-to-elastic/226964 "2020-04-24T18:39:49Z")

</div>

Kibana version : 7.6 Elasticsearch version : 7.6 APM Server version : 7.3.2 APM Agent language and version : java 1.9.0 Fresh install or upgraded from other version? fresh install Is there anything special in your s…

---

## [Delete data oldest than 80 days](https://discuss.elastic.co/t/delete-data-oldest-than-80-days/229690)

<div class="topic-metadata">

**Author:** [@Wesley\_Vieira](https://discuss.elastic.co/u/Wesley_Vieira)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 5:20pm UTC](https://discuss.elastic.co/t/delete-data-oldest-than-80-days/229690 "2020-04-24T17:20:08Z")

</div>

Hi, how can i release storage from my Elasticsearch server, i receive logs from 6 other servers from filebeat and logstash, and have an index that contains 190GB and the server is with only 5% of free storage, Although, …

---

## [Elasticsearch Keeps Crashing shards and data to big](https://discuss.elastic.co/t/elasticsearch-keeps-crashing-shards-and-data-to-big/229463)

<div class="topic-metadata">

**Author:** [@Archie\_Crawford](https://discuss.elastic.co/u/Archie_Crawford)\
**Replies:** 17\
**Last updated:** [April 24, 2020, 4:52pm UTC](https://discuss.elastic.co/t/elasticsearch-keeps-crashing-shards-and-data-to-big/229463 "2020-04-24T16:52:02Z")

</div>

When I restart elasticsearch the cluster will go into green for a little while then it will go back to read and kibana will no longer come up. Instead I see this error " {"message":"all shards failed: \[search\_phase\_execu…

---

## [Shrink using ILM](https://discuss.elastic.co/t/shrink-using-ilm/229677)

<div class="topic-metadata">

**Author:** [@Phandora](https://discuss.elastic.co/u/Phandora)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 4:45pm UTC](https://discuss.elastic.co/t/shrink-using-ilm/229677 "2020-04-24T16:45:04Z")

</div>

Hi, We are designing our cluster taking into consideration some Elasticsearch best practices, focusing on keeping the shard size as close to our desired one (currently 25gb) as possible. We decided to create ILM polici…

---

## [How is a template used while creating an index with Java API](https://discuss.elastic.co/t/how-is-a-template-used-while-creating-an-index-with-java-api/229339)

<div class="topic-metadata">

**Author:** [@angryninja](https://discuss.elastic.co/u/angryninja)\
**Replies:** 6\
**Last updated:** [April 24, 2020, 4:25pm UTC](https://discuss.elastic.co/t/how-is-a-template-used-while-creating-an-index-with-java-api/229339 "2020-04-24T16:25:34Z")

</div>

Hi, I'm trying to create an index which is going to have a common structure every time it'll be recreated. I've created a template on ES and want to use it while creating and populating the index via Java program. How…

---

## [Search by GeoDistance(DESC) and another field "created\_date"(DESC)](https://discuss.elastic.co/t/search-by-geodistance-desc-and-another-field-created-date-desc/229686)

<div class="topic-metadata">

**Author:** [@Edgar\_Adrian\_Munoz\_M](https://discuss.elastic.co/u/Edgar_Adrian_Munoz_M)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 4:10pm UTC](https://discuss.elastic.co/t/search-by-geodistance-desc-and-another-field-created-date-desc/229686 "2020-04-24T16:10:56Z")

</div>

Hi, I'm doing a search that will return to me through the location of the closest point to the furthest point. And to that include the date of creation from the most current to the oldest I am using the REST API search…

---

## [Exclusion List for Watcher](https://discuss.elastic.co/t/exclusion-list-for-watcher/224953)

<div class="topic-metadata">

**Author:** [@ankitsynX](https://discuss.elastic.co/u/ankitsynX)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 4:10pm UTC](https://discuss.elastic.co/t/exclusion-list-for-watcher/224953 "2020-04-24T16:10:46Z")

</div>

Hi, I am trying to make an index which could be used as a static list of fields with data that will be used as exclusions in watcher alerts. At the moment, I am doing that using exclude in the watcher. But for a large…

---

## [Fuzziness not work with bool\_prefix multi\_match (search-as-you-type)](https://discuss.elastic.co/t/fuzziness-not-work-with-bool-prefix-multi-match-search-as-you-type/229602)

<div class="topic-metadata">

**Author:** [@andrewbien](https://discuss.elastic.co/u/andrewbien)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 3:59pm UTC](https://discuss.elastic.co/t/fuzziness-not-work-with-bool-prefix-multi-match-search-as-you-type/229602 "2020-04-24T15:59:20Z")

</div>

Hi everyone. I struggling with a problem is that fuzziness not work with multi\_match bool\_prefix query , but I found on document that fuzziness option was supported: https://www.elastic.co/guide/en/elasticsearch/refere…

---

## [Elasticsearch 6.8.6 \_bulk API does not recognize parameter include\_type\_name](https://discuss.elastic.co/t/elasticsearch-6-8-6-bulk-api-does-not-recognize-parameter-include-type-name/228872)

<div class="topic-metadata">

**Author:** [@nverrill](https://discuss.elastic.co/u/nverrill)\
**Replies:** 6\
**Last updated:** [April 24, 2020, 3:26pm UTC](https://discuss.elastic.co/t/elasticsearch-6-8-6-bulk-api-does-not-recognize-parameter-include-type-name/228872 "2020-04-24T15:26:25Z")

</div>

We have an application that can send \_bulk requests to elasticsearch(I cannot modify what it sends), but is failing because the type is missing and it appears that \[include\_type\_name\] is not supported by the \_bulk API. W…

---

## [How to automatic replacement change field value](https://discuss.elastic.co/t/how-to-automatic-replacement-change-field-value/229593)

<div class="topic-metadata">

**Author:** [@zero.lim](https://discuss.elastic.co/u/zero.lim)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 2:56pm UTC](https://discuss.elastic.co/t/how-to-automatic-replacement-change-field-value/229593 "2020-04-24T14:56:21Z")

</div>

Hi all , for example, { "id" : 1, "name": zero, "age": 16, "born": LA "sport":bminton } How to make data (born : LA & sport : bminton) automatically become the text I specified like (born : America & sport :…

[Previous page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=942)

[Next page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=944)
