# Elasticsearch

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

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

**Page:** 1337

---

## [Will replica shards help percolator throughput](https://discuss.elastic.co/t/will-replica-shards-help-percolator-throughput/176285)

<div class="topic-metadata">

**Author:** [@autorock](https://discuss.elastic.co/u/autorock)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 6:53pm UTC](https://discuss.elastic.co/t/will-replica-shards-help-percolator-throughput/176285 "2019-04-10T18:53:57Z")

</div>

Hi there, I have a use case for percolator where we are only storing about 50-100 queries. However, we may have a lot of concurrent users each sending anywhere from 200-3000 documents to be percolated at a given time. …

---

## [Error SearchScript.CONTEXT == false](https://discuss.elastic.co/t/error-searchscript-context-false/175255)

<div class="topic-metadata">

**Author:** [@EliuFlorez](https://discuss.elastic.co/u/EliuFlorez)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 5:45pm UTC](https://discuss.elastic.co/t/error-searchscript-context-false/175255 "2019-04-10T17:45:23Z")

</div>

Hello! I am creating a custom plugin and when making this query I have this error. JSON GET example\_event/\_search { "query": { "bool" : { "filter" : { "script" : { "script" : { …

---

## [Using wait\_for\_completion with Snapshot deletes](https://discuss.elastic.co/t/using-wait-for-completion-with-snapshot-deletes/176271)

<div class="topic-metadata">

**Author:** [@Chris\_Tompkinson](https://discuss.elastic.co/u/Chris_Tompkinson)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 5:11pm UTC](https://discuss.elastic.co/t/using-wait-for-completion-with-snapshot-deletes/176271 "2019-04-10T17:11:55Z")

</div>

Hi, I'm using Elasticsearch 6.3 When I use the Snapshots REST API to delete snapshots I have two problems. Firstly when I run a delete the a snapshot it will sit and wait for the snapshot to be deleted, which can take…

---

## [Elasticsearch upgrade from 6.4.1 to 6.7.0, upgraded node is unable to join the cluster](https://discuss.elastic.co/t/elasticsearch-upgrade-from-6-4-1-to-6-7-0-upgraded-node-is-unable-to-join-the-cluster/175442)

<div class="topic-metadata">

**Author:** [@shiv94](https://discuss.elastic.co/u/shiv94)\
**Replies:** 10\
**Last updated:** [April 10, 2019, 4:53pm UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-6-4-1-to-6-7-0-upgraded-node-is-unable-to-join-the-cluster/175442 "2019-04-10T16:53:07Z")

</div>

Hello, elasticserach, logstash, kibana - 6.4.1 version Rolling upgrade I have 3 nodes in the ELK cluster. I upgraded elasticsearch in node 3 from 6.4.1 to 6.7.0, then I get the following errors. In the logs, \[2019-0…

---

## [Removing unneeded documents](https://discuss.elastic.co/t/removing-unneeded-documents/172825)

<div class="topic-metadata">

**Author:** [@jkaoiadjmdna](https://discuss.elastic.co/u/jkaoiadjmdna)\
**Replies:** 4\
**Last updated:** [April 10, 2019, 4:15pm UTC](https://discuss.elastic.co/t/removing-unneeded-documents/172825 "2019-04-10T16:15:18Z")

</div>

We manage a small cluster that has been collecting logs from Kubernetes for a few months which includes typical application JSON logs, but also kubernetes health metrics. These make up the vast majority of our records b…

---

## [Elastic shards per node](https://discuss.elastic.co/t/elastic-shards-per-node/176228)

<div class="topic-metadata">

**Author:** [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 3:02pm UTC](https://discuss.elastic.co/t/elastic-shards-per-node/176228 "2019-04-10T15:02:02Z")

</div>

Is ther a api to get the number of shards per Node ?

---

## [Re-Index does not delete missing nested objects](https://discuss.elastic.co/t/re-index-does-not-delete-missing-nested-objects/176248)

<div class="topic-metadata">

**Author:** [@creaticious](https://discuss.elastic.co/u/creaticious)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 2:58pm UTC](https://discuss.elastic.co/t/re-index-does-not-delete-missing-nested-objects/176248 "2019-04-10T14:58:05Z")

</div>

Hey guys, we have an product index with a nested field "dates". Let's say we put a product in it by: PUT products/basics/1 { "sku" : "12345", "title" : "test product", "image" : "test\_high.jpg", "produc…

---

## [Different number of documents between stats and count](https://discuss.elastic.co/t/different-number-of-documents-between-stats-and-count/174283)

<div class="topic-metadata">

**Author:** [@apiras](https://discuss.elastic.co/u/apiras)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 2:51pm UTC](https://discuss.elastic.co/t/different-number-of-documents-between-stats-and-count/174283 "2019-04-10T14:51:13Z")

</div>

Hi all, I get a different number of documents stored in an index invoking the endpoints /\_stats and /\_count. The same difference with v.6.5.0 and 6.7.0. Let me an example. With: GET /index1/\_count I get: { "count":…

---

## [Shards just stay in UNASIGNED state after upgrade to 6.6](https://discuss.elastic.co/t/shards-just-stay-in-unasigned-state-after-upgrade-to-6-6/175828)

<div class="topic-metadata">

**Author:** [@lecko](https://discuss.elastic.co/u/lecko)\
**Replies:** 10\
**Last updated:** [April 10, 2019, 2:47pm UTC](https://discuss.elastic.co/t/shards-just-stay-in-unasigned-state-after-upgrade-to-6-6/175828 "2019-04-10T14:47:04Z")

</div>

I am preparing to upgrade from elastic 5.6 to 6.6 and before production I did the test upgrade on small 3 cluster environemnt with 48 shards with no replicas. The upgrade seems to went well, no errors. But the status o…

---

## [Indexing Causing Occasional Search Slowness](https://discuss.elastic.co/t/indexing-causing-occasional-search-slowness/175925)

<div class="topic-metadata">

**Author:** [@maembe](https://discuss.elastic.co/u/maembe)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 2:39pm UTC](https://discuss.elastic.co/t/indexing-causing-occasional-search-slowness/175925 "2019-04-10T14:39:57Z")

</div>

I have an search-heavy ES cluster with 5 data nodes and 3 masters. There is a single index with 5 shards and 1 replica each. There are about 3500 search operations per minute. 99% of the time it handles them really we…

---

## [HDR Histogram Percentiles](https://discuss.elastic.co/t/hdr-histogram-percentiles/175872)

<div class="topic-metadata">

**Author:** [@psargent](https://discuss.elastic.co/u/psargent)\
**Replies:** 4\
**Last updated:** [April 10, 2019, 2:07pm UTC](https://discuss.elastic.co/t/hdr-histogram-percentiles/175872 "2019-04-10T14:07:09Z")

</div>

Hi, I need to always use the HDR percentiles. Is there a way to configure Elasticsearch to use that as the default percentile method?

---

## [Out of Box index and shard settings](https://discuss.elastic.co/t/out-of-box-index-and-shard-settings/176226)

<div class="topic-metadata">

**Author:** [@manylogs](https://discuss.elastic.co/u/manylogs)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 1:28pm UTC](https://discuss.elastic.co/t/out-of-box-index-and-shard-settings/176226 "2019-04-10T13:28:30Z")

</div>

Hi all, I have a basic set up. The stack is installed on a Windows 2012 box. I have only configured it to take windows logs through winlogbeat. I have not configured any other settings. I am ingesting from 3 assets: 2 …

---

## [Monitor GC duration/count](https://discuss.elastic.co/t/monitor-gc-duration-count/176183)

<div class="topic-metadata">

**Author:** [@Beuhlet\_Reseau](https://discuss.elastic.co/u/Beuhlet_Reseau)\
**Replies:** 6\
**Last updated:** [April 10, 2019, 12:48pm UTC](https://discuss.elastic.co/t/monitor-gc-duration-count/176183 "2019-04-10T12:48:06Z")

</div>

Hello, I want know how many GC are executed in last 5 min how long duration's GC is ? I want use : GET /\_nodes/elasticsearch\_instance1/stats/jvm : Output return : "jvm": { "timestamp": 1554888379405, …

---

## [Primary Shards Unassigned but still Cluster State health Yellow](https://discuss.elastic.co/t/primary-shards-unassigned-but-still-cluster-state-health-yellow/176189)

<div class="topic-metadata">

**Author:** [@Gaurav6141](https://discuss.elastic.co/u/Gaurav6141)\
**Replies:** 16\
**Last updated:** [April 10, 2019, 12:43pm UTC](https://discuss.elastic.co/t/primary-shards-unassigned-but-still-cluster-state-health-yellow/176189 "2019-04-10T12:43:17Z")

</div>

I was testing by Creating two dedicated master node and one data node. So I put down my data node from the Cluster and then tried to create new Index by curl -X PUT "localhost:9200/customer?pretty" where customer is the…

---

## [Create index with org.elasticsearch.client](https://discuss.elastic.co/t/create-index-with-org-elasticsearch-client/175842)

<div class="topic-metadata">

**Author:** [@haf](https://discuss.elastic.co/u/haf)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 12:47pm UTC](https://discuss.elastic.co/t/create-index-with-org-elasticsearch-client/175842 "2019-04-08T12:47:12Z")

</div>

How do I use the org.elasticsearch.client.\* to create an ES index? Do I need to, or can I name theme with \* in their names and have them automatically created by ES? I'm using Flink + Elasticsearch to stream data into t…

---

## [HItbyWord result](https://discuss.elastic.co/t/hitbyword-result/176072)

<div class="topic-metadata">

**Author:** [@HHZinu](https://discuss.elastic.co/u/HHZinu)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 12:20pm UTC](https://discuss.elastic.co/t/hitbyword-result/176072 "2019-04-10T12:20:15Z")

</div>

Hi I have a technical question on basic enterprise search capabilities. Does the search result on keyword search will return full word hit on proximity search or the literal search term? e.g. if we index this text: "…

---

## [Reindexing multiple indexes into a single one](https://discuss.elastic.co/t/reindexing-multiple-indexes-into-a-single-one/176092)

<div class="topic-metadata">

**Author:** [@TheEvilDonut](https://discuss.elastic.co/u/TheEvilDonut)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 12:11pm UTC](https://discuss.elastic.co/t/reindexing-multiple-indexes-into-a-single-one/176092 "2019-04-10T12:11:27Z")

</div>

I am currently trying to reduce the number of shards on the cluster by reindexing our indices. We are of course also reviewing the indices so we can adjust the templates so that the daily indices will be created with the…

---

## [IndexResponse.isCreated() deprecated in v5.x](https://discuss.elastic.co/t/indexresponse-iscreated-deprecated-in-v5-x/176198)

<div class="topic-metadata">

**Author:** [@utkarsh](https://discuss.elastic.co/u/utkarsh)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 11:45am UTC](https://discuss.elastic.co/t/indexresponse-iscreated-deprecated-in-v5-x/176198 "2019-04-10T11:45:48Z")

</div>

I am currently upgrading the ES to v5.6.2 from 2.3.3. I am facing the issue: cannot resolve symbol isCreated() when the code tries to check whether the document was created/updated. Please find below the code- IndexResp…

---

## [Query on Elastic score](https://discuss.elastic.co/t/query-on-elastic-score/176204)

<div class="topic-metadata">

**Author:** [@srikanthkadem](https://discuss.elastic.co/u/srikanthkadem)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 11:35am UTC](https://discuss.elastic.co/t/query-on-elastic-score/176204 "2019-04-10T11:35:33Z")

</div>

Hi , when I started working on ES I observed that keyword present in number of fields in a row also used to consider while caluculating score . eg if china word present in description and country and title it used to co…

---

## [Updating a field in a doc with the fields been obtained from another dataset (basically joins like feature)](https://discuss.elastic.co/t/updating-a-field-in-a-doc-with-the-fields-been-obtained-from-another-dataset-basically-joins-like-feature/175080)

<div class="topic-metadata">

**Author:** [@sverma](https://discuss.elastic.co/u/sverma)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 11:00am UTC](https://discuss.elastic.co/t/updating-a-field-in-a-doc-with-the-fields-been-obtained-from-another-dataset-basically-joins-like-feature/175080 "2019-04-10T11:00:38Z")

</div>

I have an index with data as : { "\_index" : "qstat-2019.03.29", "\_type" : "doc", "\_source" : { "Job\_Number" : "150153525", "Job\_State" : "pending", "hard\_req\_queue" : "all.q", "Submission\_time" : } As you could…

---

## [Can't understand the problem from the log](https://discuss.elastic.co/t/cant-understand-the-problem-from-the-log/176033)

<div class="topic-metadata">

**Author:** [@Mikhail\_Khludnev](https://discuss.elastic.co/u/Mikhail_Khludnev)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 10:06am UTC](https://discuss.elastic.co/t/cant-understand-the-problem-from-the-log/176033 "2019-04-10T10:06:41Z")

</div>

I'm trying to run $ esrally --track-path=track.json --preserve-install true --car="4gheap" --client-options="timeout:6000" --distribution-version=7.0.0-rc2 Here's what I have in log https://paste.apache.org/0wRo S…

---

## [Help with lucene](https://discuss.elastic.co/t/help-with-lucene/175974)

<div class="topic-metadata">

**Author:** [@mortenb123](https://discuss.elastic.co/u/mortenb123)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 10:03am UTC](https://discuss.elastic.co/t/help-with-lucene/175974 "2019-04-10T10:03:35Z")

</div>

I have this message field: \<10000000-0000-1111-0000-000020171218\>(Controller, Raw) 02:42:0A:04:84:81 \<\< Error Apr-9,07:28:33.583 ../src/util\_net.c 340: connect():select() Socket error=113 ip=10.4.1.231 port=34323\\n \[err…

---

## [Index.refresh\_interval via elasticsearch.yml](https://discuss.elastic.co/t/index-refresh-interval-via-elasticsearch-yml/176194)

<div class="topic-metadata">

**Author:** [@ppodbielski](https://discuss.elastic.co/u/ppodbielski)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 10:00am UTC](https://discuss.elastic.co/t/index-refresh-interval-via-elasticsearch-yml/176194 "2019-04-10T10:00:57Z")

</div>

Hello, It is possible to set up index.refresh\_interval via an elasticsearch.yml file? I'm confused with documentation: https://www.elastic.co/guide/en/elasticsearch/guide/master/\_creating\_an\_index.html https://www.el…

---

## [ElasticSearch upsert document with complex script](https://discuss.elastic.co/t/elasticsearch-upsert-document-with-complex-script/176187)

<div class="topic-metadata">

**Author:** [@tour\_young](https://discuss.elastic.co/u/tour_young)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 9:37am UTC](https://discuss.elastic.co/t/elasticsearch-upsert-document-with-complex-script/176187 "2019-04-10T09:37:44Z")

</div>

I create an index to store the duration of how long people watching a certain video, the index structure like this: { "first\_watch\_time": "2019-04-01T02:17:14.004Z", "last\_watch\_time": "2019-04-01T02:18:24.004Z"…

---

## [ElasticSearch, Kibana & Logstash Auto-Upgrading](https://discuss.elastic.co/t/elasticsearch-kibana-logstash-auto-upgrading/175565)

<div class="topic-metadata">

**Author:** [@Hazoopr](https://discuss.elastic.co/u/Hazoopr)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 9:28am UTC](https://discuss.elastic.co/t/elasticsearch-kibana-logstash-auto-upgrading/175565 "2019-04-10T09:28:50Z")

</div>

Apr 01 10:15:09 \<hostname -f\> kibana\[24636\]: {"type":"log","@timestamp":"2019-04-01T10:15:09Z","tags":\["status","plugin:maps@6.7.0","info"\],"pid":24636,"state":"green","message":"Status changed from red to green - Ready"…

---

## [ES node disk sizing](https://discuss.elastic.co/t/es-node-disk-sizing/176151)

<div class="topic-metadata">

**Author:** [@Benjen](https://discuss.elastic.co/u/Benjen)\
**Replies:** 2\
**Last updated:** [April 10, 2019, 9:27am UTC](https://discuss.elastic.co/t/es-node-disk-sizing/176151 "2019-04-10T09:27:12Z")

</div>

I am studying on ES node storage and would like to have an idea on what is the best practice/recommendation hardware config for a ES node, and what is the capability of it. Yet, got confused on that. Based on my underst…

---

## [Sending Windows logs to Elastic Search or Logstash and viewing Windows event logs in Kibana](https://discuss.elastic.co/t/sending-windows-logs-to-elastic-search-or-logstash-and-viewing-windows-event-logs-in-kibana/176172)

<div class="topic-metadata">

**Author:** [@Pasindu\_Fernando](https://discuss.elastic.co/u/Pasindu_Fernando)\
**Replies:** 0\
**Last updated:** [April 10, 2019, 8:42am UTC](https://discuss.elastic.co/t/sending-windows-logs-to-elastic-search-or-logstash-and-viewing-windows-event-logs-in-kibana/176172 "2019-04-10T08:42:44Z")

</div>

Hi, we setup an ELK stack on Windows Server 2016 and it's running smoothly. We have installed Metric Beats on three Servers and they are forwarding the Metrics without nay issue. Now my boss need to view Windows event lo…

---

## [Create new index with especific documents](https://discuss.elastic.co/t/create-new-index-with-especific-documents/175374)

<div class="topic-metadata">

**Author:** [@dcarral](https://discuss.elastic.co/u/dcarral)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 8:40am UTC](https://discuss.elastic.co/t/create-new-index-with-especific-documents/175374 "2019-04-10T08:40:53Z")

</div>

Hi I am triying to copy specific documents from one index to a new index by the following syntax: curl -X POST "localhost:9200/\_reindex" -H 'Content-Type: application/json' -d' { "source": { "index": "2018.12.19", …

---

## [Index sorting](https://discuss.elastic.co/t/index-sorting/173783)

<div class="topic-metadata">

**Author:** [@AAHM](https://discuss.elastic.co/u/AAHM)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 8:20am UTC](https://discuss.elastic.co/t/index-sorting/173783 "2019-04-10T08:20:28Z")

</div>

Hi, I have an index with following setting, where the the index.sort.field is specified at index time to use two keyword fields primary\_id & secondary\_id. { "settings": { "number\_of\_shards": 1, "number\_of\_replicas": 0,…

---

## [Elastic 6.6.0: Windows server 2016 service not starting](https://discuss.elastic.co/t/elastic-6-6-0-windows-server-2016-service-not-starting/172283)

<div class="topic-metadata">

**Author:** [@Sheppie](https://discuss.elastic.co/u/Sheppie)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 7:10am UTC](https://discuss.elastic.co/t/elastic-6-6-0-windows-server-2016-service-not-starting/172283 "2019-04-10T07:10:47Z")

</div>

The topic has been discussed earlier here and here about not being able to start the ElasticSearch service under a Domain Service account. I know the account does not have sufficient privileges "somewhere", but I'm havi…

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

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