# Elasticsearch

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

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

**Page:** 1496

---

## [Sorting percentiles aggregation with NaN values](https://discuss.elastic.co/t/sorting-percentiles-aggregation-with-nan-values/154462)

<div class="topic-metadata">

**Author:** [@itaydvir](https://discuss.elastic.co/u/itaydvir)\
**Replies:** 0\
**Last updated:** [October 29, 2018, 3:35pm UTC](https://discuss.elastic.co/t/sorting-percentiles-aggregation-with-nan-values/154462 "2018-10-29T15:35:21Z")

</div>

I'm using ElasticSearch 2.3.3 and I have the following aggregation: "aggregations": { "mainBreakdown": { "terms": { "field": "location\_i", "size": 10, "order": \[ { "comments\>medianTime.50": "…

---

## [What's means? \[cloudoc1\] value for setting "discovery.zen.minimum\_master\_nodes" is too low](https://discuss.elastic.co/t/whats-means-cloudoc1-value-for-setting-discovery-zen-minimum-master-nodes-is-too-low/155323)

<div class="topic-metadata">

**Author:** [@ksb304](https://discuss.elastic.co/u/ksb304)\
**Replies:** 1\
**Last updated:** [November 5, 2018, 6:12am UTC](https://discuss.elastic.co/t/whats-means-cloudoc1-value-for-setting-discovery-zen-minimum-master-nodes-is-too-low/155323 "2018-11-05T06:12:00Z")

</div>

log \[2018-11-05T10:21:26,407\]\[WARN \]\[o.e.d.z.ElectMasterService\] \[cloudoc1\] value for setting "discovery.zen.minimum\_master\_nodes" is too low. This can result in data loss! Please set it to at least a quorum of master-e…

---

## [How does elasticsearch schedule shards for query](https://discuss.elastic.co/t/how-does-elasticsearch-schedule-shards-for-query/155280)

<div class="topic-metadata">

**Author:** [@Jianzhou\_Z](https://discuss.elastic.co/u/Jianzhou_Z)\
**Replies:** 7\
**Last updated:** [November 5, 2018, 4:56am UTC](https://discuss.elastic.co/t/how-does-elasticsearch-schedule-shards-for-query/155280 "2018-11-05T04:56:11Z")

</div>

I have a cluster with 11 nodes, and a table with 16 shard. Each shard has one replica. The allocation of the shards are like the follow. I added a number with ' for a replica. For example, 4 is the primary node, and 4' i…

---

## [An routing missing exception is obtained when reindex sets the routing value](https://discuss.elastic.co/t/an-routing-missing-exception-is-obtained-when-reindex-sets-the-routing-value/155140)

<div class="topic-metadata">

**Author:** [@lwpk110](https://discuss.elastic.co/u/lwpk110)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 4:14am UTC](https://discuss.elastic.co/t/an-routing-missing-exception-is-obtained-when-reindex-sets-the-routing-value/155140 "2018-11-05T04:14:16Z")

</div>

when i reindex a parent-child relation document from v2.4 to v5.6,i write a script to do it, like this: \_reindex POST { "source": { "index": "report", "type": "user\_mail\_action" }, "dest": { "index": "report\_u…

---

## [Creating index pattern... hang](https://discuss.elastic.co/t/creating-index-pattern-hang/155330)

<div class="topic-metadata">

**Author:** [@davoti](https://discuss.elastic.co/u/davoti)\
**Replies:** 0\
**Last updated:** [November 5, 2018, 3:01am UTC](https://discuss.elastic.co/t/creating-index-pattern-hang/155330 "2018-11-05T03:01:22Z")

</div>

Hi Dear, I freshly installed ES/kibana 6.4.2 on centos6, curl http://my\_ip:9200 ok, launch kibana from chrome also ok,,, when trying to create index pattern, it just hangs there,,, even when I tried to use kibana\_sample…

---

## [Multi Match Query with a point field boosting](https://discuss.elastic.co/t/multi-match-query-with-a-point-field-boosting/155310)

<div class="topic-metadata">

**Author:** [@Vincent\_de\_Cursay](https://discuss.elastic.co/u/Vincent_de_Cursay)\
**Replies:** 1\
**Last updated:** [November 5, 2018, 1:51am UTC](https://discuss.elastic.co/t/multi-match-query-with-a-point-field-boosting/155310 "2018-11-05T01:51:37Z")

</div>

Hello, I am trying to do a multi match query with a boost from a field: "point" My mapping look like that: PUT Video { "settings" : { "number\_of\_shards" : 8 }, "mappings" : { "\_doc" : { …

---

## [Best option to migrate data from old cluster to new](https://discuss.elastic.co/t/best-option-to-migrate-data-from-old-cluster-to-new/154535)

<div class="topic-metadata">

**Author:** [@Archie1](https://discuss.elastic.co/u/Archie1)\
**Replies:** 10\
**Last updated:** [November 4, 2018, 10:40pm UTC](https://discuss.elastic.co/t/best-option-to-migrate-data-from-old-cluster-to-new/154535 "2018-11-04T22:40:54Z")

</div>

Hi Everyone, I've also posted this exact same question on the Graylog forum - I'm just edging my bets a bit more by posting here as well as my issue is more ES than Graylog I guess :slight\_smile: I have a new cluster a…

---

## [Does filter order still matter in 5.6?](https://discuss.elastic.co/t/does-filter-order-still-matter-in-5-6/155288)

<div class="topic-metadata">

**Author:** [@Jianzhou\_Z](https://discuss.elastic.co/u/Jianzhou_Z)\
**Replies:** 1\
**Last updated:** [November 4, 2018, 6:39pm UTC](https://discuss.elastic.co/t/does-filter-order-still-matter-in-5-6/155288 "2018-11-04T18:39:27Z")

</div>

https://stackoverflow.com/questions/34727193/elasticsearch-order-of-filters-for-best-performance and https://www.elastic.co/blog/better-query-execution-coming-elasticsearch-2-0 say that the 'modern' (\>=2.x) elastic sear…

---

## [How to use painless scripting outside of Elasticsearch](https://discuss.elastic.co/t/how-to-use-painless-scripting-outside-of-elasticsearch/155303)

<div class="topic-metadata">

**Author:** [@karussell](https://discuss.elastic.co/u/karussell)\
**Replies:** 0\
**Last updated:** [November 4, 2018, 2:34pm UTC](https://discuss.elastic.co/t/how-to-use-painless-scripting-outside-of-elasticsearch/155303 "2018-11-04T14:34:59Z")

</div>

I'm looking to use painless as a stand-alone/external library like e.g. janino. Is this possible? Only found a discussion from last year: Painless unit testing

---

## [How to upgrade ES in Windows?](https://discuss.elastic.co/t/how-to-upgrade-es-in-windows/155271)

<div class="topic-metadata">

**Author:** [@Gosforth](https://discuss.elastic.co/u/Gosforth)\
**Replies:** 2\
**Last updated:** [November 4, 2018, 1:20pm UTC](https://discuss.elastic.co/t/how-to-upgrade-es-in-windows/155271 "2018-11-04T13:20:34Z")

</div>

There is a manual https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html with some Disable shard allocation, Stop non-essential indexing, Shut down a single node... blah, blah, blah. But whe…

---

## [Has\_query type field](https://discuss.elastic.co/t/has-query-type-field/155295)

<div class="topic-metadata">

**Author:** [@werowe](https://discuss.elastic.co/u/werowe)\
**Replies:** 0\
**Last updated:** [November 4, 2018, 11:45am UTC](https://discuss.elastic.co/t/has-query-type-field/155295 "2018-11-04T11:45:41Z")

</div>

I thought ES dropped index types. Below I run a has\_child query and it says it is required. So I add it to the query and then it says it is not allowed. ´´´ curl -XGET --header 'Content-Type: application/json' http:/…

---

## [Control returned fields of nested object](https://discuss.elastic.co/t/control-returned-fields-of-nested-object/155289)

<div class="topic-metadata">

**Author:** [@elastic\_guy](https://discuss.elastic.co/u/elastic_guy)\
**Replies:** 0\
**Last updated:** [November 4, 2018, 7:05am UTC](https://discuss.elastic.co/t/control-returned-fields-of-nested-object/155289 "2018-11-04T07:05:21Z")

</div>

Hi, let's say I have a document with a nested object inside, for example: "mappings": { "typeX": { "properties": { "array\_of\_things": { "type": "nested", "properties": { "long\_prop…

---

## [PUBLIC Stack Overflow Tags Users Jobs Teams Q&A for work Learn More Elasticsearch: what my index contains: docs or positions?](https://discuss.elastic.co/t/public-stack-overflow-tags-users-jobs-teams-q-a-for-work-learn-more-elasticsearch-what-my-index-contains-docs-or-positions/155287)

<div class="topic-metadata">

**Author:** [@sareem](https://discuss.elastic.co/u/sareem)\
**Replies:** 0\
**Last updated:** [November 4, 2018, 6:41am UTC](https://discuss.elastic.co/t/public-stack-overflow-tags-users-jobs-teams-q-a-for-work-learn-more-elasticsearch-what-my-index-contains-docs-or-positions/155287 "2018-11-04T06:41:19Z")

</div>

I've created ES index using the following command: curl -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"settings" :{"number\_of\_shards" : 10, "number\_of\_replicas" : 0, "analysis":{"analyzer…

---

## [Document Indexing & Full Text Search](https://discuss.elastic.co/t/document-indexing-full-text-search/155265)

<div class="topic-metadata">

**Author:** [@elasticos](https://discuss.elastic.co/u/elasticos)\
**Replies:** 1\
**Last updated:** [November 3, 2018, 6:04pm UTC](https://discuss.elastic.co/t/document-indexing-full-text-search/155265 "2018-11-03T18:04:51Z")

</div>

I'm looking for a free software with a Web UI based on elastic which can perform document indexing (.pdf, .doc, .xls etc.) and full text search. I mean something like Recoll with Web UI. Is there something like this? I…

---

## [Compound word token filter with german umlaute](https://discuss.elastic.co/t/compound-word-token-filter-with-german-umlaute/155257)

<div class="topic-metadata">

**Author:** [@rzlprnft](https://discuss.elastic.co/u/rzlprnft)\
**Replies:** 0\
**Last updated:** [November 3, 2018, 12:53pm UTC](https://discuss.elastic.co/t/compound-word-token-filter-with-german-umlaute/155257 "2018-11-03T12:53:40Z")

</div>

I have a problem using the Compound word token filter (https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-compound-word-tokenfilter.html) when it comes to german umlaute: Consider this configuratio…

---

## [While Starting Elasticsearch 6.3 ,got exception- java.lang.IllegalArgumentException: Invalid Configuration class specified Likely root cause: java.lang.NoSuchMethodError: org.apache.logging.log4j.core.config.AbstractConfiguration](https://discuss.elastic.co/t/while-starting-elasticsearch-6-3-got-exception-java-lang-illegalargumentexception-invalid-configuration-class-specified-likely-root-cause-java-lang-nosuchmethoderror-org-apache-logging-log4j-core-config-abstractconfiguration/155003)

<div class="topic-metadata">

**Author:** [@dashparthapratim](https://discuss.elastic.co/u/dashparthapratim)\
**Replies:** 3\
**Last updated:** [November 3, 2018, 12:24pm UTC](https://discuss.elastic.co/t/while-starting-elasticsearch-6-3-got-exception-java-lang-illegalargumentexception-invalid-configuration-class-specified-likely-root-cause-java-lang-nosuchmethoderror-org-apache-logging-log4j-core-config-abstractconfiguration/155003 "2018-11-03T12:24:41Z")

</div>

Hi Everyone, please help to resolve the below issue . while starting the Elasticsearch 6.3 in , i have encountered the below exception Exception in thread "main" java.lang.IllegalArgumentException: Invalid Configurati…

---

## [Several difficulties with elasticsearch DSL](https://discuss.elastic.co/t/several-difficulties-with-elasticsearch-dsl/154936)

<div class="topic-metadata">

**Author:** [@guylando](https://discuss.elastic.co/u/guylando)\
**Replies:** 3\
**Last updated:** [November 1, 2018, 1:51pm UTC](https://discuss.elastic.co/t/several-difficulties-with-elasticsearch-dsl/154936 "2018-11-01T13:51:12Z")

</div>

Hello, would appreciate help with several difficulties that I have encountered: After applying terms aggregator and then bucket\_selector, I would like the query to return the number of buckets left. I used stats\_bucket…

---

## [Problems with Elasticsearch after new download](https://discuss.elastic.co/t/problems-with-elasticsearch-after-new-download/154968)

<div class="topic-metadata">

**Author:** [@jjaffier1](https://discuss.elastic.co/u/jjaffier1)\
**Replies:** 4\
**Last updated:** [November 2, 2018, 9:35pm UTC](https://discuss.elastic.co/t/problems-with-elasticsearch-after-new-download/154968 "2018-11-02T21:35:19Z")

</div>

---

## [Elasticsearch service stopping automatically after some time](https://discuss.elastic.co/t/elasticsearch-service-stopping-automatically-after-some-time/154638)

<div class="topic-metadata">

**Author:** [@MAHESH\_K1](https://discuss.elastic.co/u/MAHESH_K1)\
**Replies:** 3\
**Last updated:** [November 2, 2018, 8:50pm UTC](https://discuss.elastic.co/t/elasticsearch-service-stopping-automatically-after-some-time/154638 "2018-11-02T20:50:55Z")

</div>

elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2018-10-30 20:08:41 IST; 3s ago Doc…

---

## [How do I force different routing value will route the document to a different shard?](https://discuss.elastic.co/t/how-do-i-force-different-routing-value-will-route-the-document-to-a-different-shard/155217)

<div class="topic-metadata">

**Author:** [@panfng](https://discuss.elastic.co/u/panfng)\
**Replies:** 1\
**Last updated:** [November 2, 2018, 6:25pm UTC](https://discuss.elastic.co/t/how-do-i-force-different-routing-value-will-route-the-document-to-a-different-shard/155217 "2018-11-02T18:25:18Z")

</div>

Is there a way to tell ES which shard I want the document to go to? Different routing value could end up using the same shard which is annoying

---

## [How Elasticsearch gets timezone data?](https://discuss.elastic.co/t/how-elasticsearch-gets-timezone-data/153455)

<div class="topic-metadata">

**Author:** [@arthurbailao](https://discuss.elastic.co/u/arthurbailao)\
**Replies:** 10\
**Last updated:** [November 2, 2018, 6:14pm UTC](https://discuss.elastic.co/t/how-elasticsearch-gets-timezone-data/153455 "2018-11-02T18:14:57Z")

</div>

In Brazil we are having a huge problem related with daylight saving time, because the start date was delayed by the President. Apparently, my cluster thinks that we are in -0200 at America/Sao\_Paulo, but actually we are…

---

## [Watcher on elasticsearch logs](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915)

<div class="topic-metadata">

**Author:** [@shiv94](https://discuss.elastic.co/u/shiv94)\
**Replies:** 3\
**Last updated:** [November 2, 2018, 6:07pm UTC](https://discuss.elastic.co/t/watcher-on-elasticsearch-logs/154915 "2018-11-02T18:07:20Z")

</div>

Can we create a watcher if the elasticsearch logs have \[DEBUG\], \[ERROR\], couldn't create an index, failed to create an index or execute and in kibana if we cant see any logs. If the /var/log/elasticsearch contains these …

---

## [Elasticsearch cluster state yellow and have unassigned shards](https://discuss.elastic.co/t/elasticsearch-cluster-state-yellow-and-have-unassigned-shards/155174)

<div class="topic-metadata">

**Author:** [@vnallamothu](https://discuss.elastic.co/u/vnallamothu)\
**Replies:** 3\
**Last updated:** [November 2, 2018, 4:39pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-state-yellow-and-have-unassigned-shards/155174 "2018-11-02T16:39:31Z")

</div>

Hi, I have installed Elasticsearch 5.5.4, Kibana 5.5.4 on the same node (1 node cluster). My elasticsearch cluster state turned to "yellow" and I'm having 14 unassigned shards. Can you please let me know how to work on …

---

## [Empty Indexes?](https://discuss.elastic.co/t/empty-indexes/154466)

<div class="topic-metadata">

**Author:** [@KuboMD](https://discuss.elastic.co/u/KuboMD)\
**Replies:** 15\
**Last updated:** [November 2, 2018, 3:30pm UTC](https://discuss.elastic.co/t/empty-indexes/154466 "2018-11-02T15:30:45Z")

</div>

Hi there, I'm running a Graylog server. I accidentally deleted the contents of my index folders. /var/lib/elasticsearch/nodes/0/indices/TkNxWZ2BQmGznq5Xv77CxQ/3/index# ls Returns nothing. The same goes for my 0, 1, a…

---

## [Any way to run some scripts (elastic valid commands) in start time?](https://discuss.elastic.co/t/any-way-to-run-some-scripts-elastic-valid-commands-in-start-time/154692)

<div class="topic-metadata">

**Author:** [@hym](https://discuss.elastic.co/u/hym)\
**Replies:** 3\
**Last updated:** [November 2, 2018, 3:27pm UTC](https://discuss.elastic.co/t/any-way-to-run-some-scripts-elastic-valid-commands-in-start-time/154692 "2018-11-02T15:27:26Z")

</div>

Hi All, Looking for a way to initialize ELS instance (need more than elasticsearch.yml params). I want to put some restrictions as some templates at start time. My problem is this may you have a better solution: I wa…

---

## [How to get rid of the "\[\_all\] is deprecated in 6.0+" warning message?](https://discuss.elastic.co/t/how-to-get-rid-of-the-all-is-deprecated-in-6-0-warning-message/154621)

<div class="topic-metadata">

**Author:** [@TimWard](https://discuss.elastic.co/u/TimWard)\
**Replies:** 2\
**Last updated:** [November 2, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-to-get-rid-of-the-all-is-deprecated-in-6-0-warning-message/154621 "2018-11-02T15:07:06Z")

</div>

Running 6.4.2. I get loads of these WARN messages in the deprecation log. As far as I can see the only mention of "\_all" in any of my code is "\_all": { "enabled": false } in a global template. What do I need to do to…

---

## [Does search still work normally on fields with norms set to false?](https://discuss.elastic.co/t/does-search-still-work-normally-on-fields-with-norms-set-to-false/154636)

<div class="topic-metadata">

**Author:** [@Ong](https://discuss.elastic.co/u/Ong)\
**Replies:** 1\
**Last updated:** [November 2, 2018, 2:39pm UTC](https://discuss.elastic.co/t/does-search-still-work-normally-on-fields-with-norms-set-to-false/154636 "2018-11-02T14:39:16Z")

</div>

I am looking at saving disk space for an ES index and read that setting a text field with "norms": false helps. If a text field were to have norm = false, other than scoring, do other aspects of search still work e.g. p…

---

## [Query string question](https://discuss.elastic.co/t/query-string-question/155181)

<div class="topic-metadata">

**Author:** [@rso249](https://discuss.elastic.co/u/rso249)\
**Replies:** 1\
**Last updated:** [November 2, 2018, 2:29pm UTC](https://discuss.elastic.co/t/query-string-question/155181 "2018-11-02T14:29:30Z")

</div>

Dear all, the users of our application are me asking about the placeholders at the beginning. For example I have the following terms in elastic search: 0.922 0.9 0.3330.9 they are confused that my search returns al…

---

## [Refresh after update](https://discuss.elastic.co/t/refresh-after-update/154845)

<div class="topic-metadata">

**Author:** [@mdarfilal](https://discuss.elastic.co/u/mdarfilal)\
**Replies:** 7\
**Last updated:** [November 2, 2018, 1:12pm UTC](https://discuss.elastic.co/t/refresh-after-update/154845 "2018-11-02T13:12:14Z")

</div>

I have some "refresh" problem with ElasticSearch v6.2.1. Given an index "my\_index" and a type "my\_type", this is the scenario : Step 1: Launch query that returns the 50 first documents where some fields (id, address, i…

---

## [Delete documents from elastic search if not exist in input](https://discuss.elastic.co/t/delete-documents-from-elastic-search-if-not-exist-in-input/155154)

<div class="topic-metadata">

**Author:** [@marouprod](https://discuss.elastic.co/u/marouprod)\
**Replies:** 0\
**Last updated:** [November 2, 2018, 11:11am UTC](https://discuss.elastic.co/t/delete-documents-from-elastic-search-if-not-exist-in-input/155154 "2018-11-02T11:11:30Z")

</div>

Hello friend, I have an elasticsearch database and i want to delete all documents if not exists in input statement? Can you help me please, Thanks in advance input {jdbc { jdbc\_validate\_connection =\> true jdbc\_con…

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

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