# Elasticsearch

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

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

**Page:** 1652

---

## [How to retrieve a field value from inner\_hits filtered object](https://discuss.elastic.co/t/how-to-retrieve-a-field-value-from-inner-hits-filtered-object/63813)

<div class="topic-metadata">

**Author:** [@pungent](https://discuss.elastic.co/u/pungent)\
**Replies:** 3\
**Last updated:** [June 15, 2018, 5:10pm UTC](https://discuss.elastic.co/t/how-to-retrieve-a-field-value-from-inner-hits-filtered-object/63813 "2018-06-15T17:10:17Z")

</div>

In my mapping document, I have one of the nested object as follows "availabilities":{ "type": "nested", "dynamic": "strict", "properties": { …

---

## [BulkProcessor: Cannot send more than 5 concurrent requests](https://discuss.elastic.co/t/bulkprocessor-cannot-send-more-than-5-concurrent-requests/107216)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 5:09pm UTC](https://discuss.elastic.co/t/bulkprocessor-cannot-send-more-than-5-concurrent-requests/107216 "2018-06-15T17:09:01Z")

</div>

new BulkProcessor.Builder(esClient.getHighLevelClient()::bulkAsync, listener, threadPool) .setBulkActions(3000) .setBulkSize(7) .setConcurrentRequests(6) .s…

---

## [Implementing "Sort" while searching](https://discuss.elastic.co/t/implementing-sort-while-searching/135960)

<div class="topic-metadata">

**Author:** [@saurabhbhatt](https://discuss.elastic.co/u/saurabhbhatt)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 4:05pm UTC](https://discuss.elastic.co/t/implementing-sort-while-searching/135960 "2018-06-15T16:05:27Z")

</div>

Hi Everyone, Basically my requirement is little complex so I have to give example to explain better. Below is my indexed document (sort of, not completely) "productid": 181750, "productname": "Synthetic Promotional Te…

---

## [Elasticsearch 6 painless query exception](https://discuss.elastic.co/t/elasticsearch-6-painless-query-exception/135588)

<div class="topic-metadata">

**Author:** [@pungent](https://discuss.elastic.co/u/pungent)\
**Replies:** 7\
**Last updated:** [June 15, 2018, 3:41pm UTC](https://discuss.elastic.co/t/elasticsearch-6-painless-query-exception/135588 "2018-06-15T15:41:57Z")

</div>

I am using Elasticsearch 6.2 which uses painless for the inline scripting. One of the fields in my doc has mapping: "gap\_days": {"type": "integer"} And I have a painless script for search and the few lines are: int ga…

---

## [Setting timezone for JSON Input](https://discuss.elastic.co/t/setting-timezone-for-json-input/135806)

<div class="topic-metadata">

**Author:** [@Kevin854](https://discuss.elastic.co/u/Kevin854)\
**Replies:** 0\
**Last updated:** [June 13, 2018, 11:00pm UTC](https://discuss.elastic.co/t/setting-timezone-for-json-input/135806 "2018-06-13T23:00:29Z")

</div>

The following script works as a JSON Input { "script": { "inline": "Calendar today = Calendar.getInstance(); long end = today.getTimeInMillis(); Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY\_OF\_MONTH, 1)…

---

## [/\_cat/indices leads to OutOfMemory](https://discuss.elastic.co/t/cat-indices-leads-to-outofmemory/136094)

<div class="topic-metadata">

**Author:** [@schmittberger](https://discuss.elastic.co/u/schmittberger)\
**Replies:** 0\
**Last updated:** [June 15, 2018, 12:57pm UTC](https://discuss.elastic.co/t/cat-indices-leads-to-outofmemory/136094 "2018-06-15T12:57:45Z")

</div>

Hi, I am running a single elasticsearch 5.5.0 node on a server with 4 CPUs, 32 GB RAM (16 GB for ES) and 2 TB SSD Drive. It has about 50 Million documents in 2 indices. One index has 5 shards and one has only 1. Since so…

---

## [Failed to execute fetch phase SearchContextMissingException](https://discuss.elastic.co/t/failed-to-execute-fetch-phase-searchcontextmissingexception/135590)

<div class="topic-metadata">

**Author:** [@meetdave2611997](https://discuss.elastic.co/u/meetdave2611997)\
**Replies:** 7\
**Last updated:** [June 15, 2018, 2:29pm UTC](https://discuss.elastic.co/t/failed-to-execute-fetch-phase-searchcontextmissingexception/135590 "2018-06-15T14:29:19Z")

</div>

Hello, We are constantly seeing below errors in elasticsearch log file. We want to know what could be the root cause of this problem and how to prevent these type of errors? \[2018-06-12T19:03:21,239\]\[DEBUG\]\[o.e.a.s.Tra…

---

## [Help needed with Proper usage of scroll api using python: Getting the same results](https://discuss.elastic.co/t/help-needed-with-proper-usage-of-scroll-api-using-python-getting-the-same-results/136063)

<div class="topic-metadata">

**Author:** [@BoffinPanda](https://discuss.elastic.co/u/BoffinPanda)\
**Replies:** 4\
**Last updated:** [June 15, 2018, 2:26pm UTC](https://discuss.elastic.co/t/help-needed-with-proper-usage-of-scroll-api-using-python-getting-the-same-results/136063 "2018-06-15T14:26:42Z")

</div>

Hello all. I have to parse a document which has more than 10000 hits. The natural choice was to opt for scroll api. I have read the documentation from elastic and have done the following: import requests resp=request…

---

## [Curator in a bash script](https://discuss.elastic.co/t/curator-in-a-bash-script/136102)

<div class="topic-metadata">

**Author:** [@Ben96](https://discuss.elastic.co/u/Ben96)\
**Replies:** 0\
**Last updated:** [June 15, 2018, 1:45pm UTC](https://discuss.elastic.co/t/curator-in-a-bash-script/136102 "2018-06-15T13:45:01Z")

</div>

Hello everyone, Coming here today because i'm facing a problem with curator in a bash script to execute multiple action file. Here body's script : PATH\_CONFIG="/applis/curator/config/curator-integration.yml" PATH\_AC…

---

## [Filter an array of objects to return only matching values](https://discuss.elastic.co/t/filter-an-array-of-objects-to-return-only-matching-values/136086)

<div class="topic-metadata">

**Author:** [@Paddy\_Mahadeva](https://discuss.elastic.co/u/Paddy_Mahadeva)\
**Replies:** 3\
**Last updated:** [June 15, 2018, 12:46pm UTC](https://discuss.elastic.co/t/filter-an-array-of-objects-to-return-only-matching-values/136086 "2018-06-15T12:46:46Z")

</div>

Hi, I have a set of data which are simply key value pairs, of type string. eg: key : Name1, Value : Value1 key : Name2, Value : Value2 key : Name3, Value : Value3 key : Name3, …

---

## [Understanding Index creation!](https://discuss.elastic.co/t/understanding-index-creation/134985)

<div class="topic-metadata">

**Author:** [@roshni](https://discuss.elastic.co/u/roshni)\
**Replies:** 2\
**Last updated:** [June 15, 2018, 12:45pm UTC](https://discuss.elastic.co/t/understanding-index-creation/134985 "2018-06-15T12:45:37Z")

</div>

While creating an index on a single node using the following - date; curl -X PUT "localhost:9200/test" -H 'Content-Type: application/json' -d' { "settings" : { "number\_of\_shards" : "4", "number\_of\_replicas" : "0" }, "m…

---

## [Cluster node not joining](https://discuss.elastic.co/t/cluster-node-not-joining/136072)

<div class="topic-metadata">

**Author:** [@Prashant\_Rana](https://discuss.elastic.co/u/Prashant_Rana)\
**Replies:** 3\
**Last updated:** [June 15, 2018, 12:15pm UTC](https://discuss.elastic.co/t/cluster-node-not-joining/136072 "2018-06-15T12:15:35Z")

</div>

My problem is same as the issue below: The solution provided is to delete the data folder as it contains the node id which is stopping the node from joining the cluster. But i don't want to delete the data folder ,I…

---

## ["codebase property already set" when running ESIntegTestCase](https://discuss.elastic.co/t/codebase-property-already-set-when-running-esintegtestcase/135659)

<div class="topic-metadata">

**Author:** [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Replies:** 32\
**Last updated:** [June 15, 2018, 12:08pm UTC](https://discuss.elastic.co/t/codebase-property-already-set-when-running-esintegtestcase/135659 "2018-06-15T12:08:26Z")

</div>

We're attempting an upgrade to ES 6.2. Previously, we'd integration tested code by using NodeBuilder and running up a local ES node. I'd rather swap this out for the ESIntegTestCase usage if possible. However, when I t…

---

## [Efficient deep pagination, or equivalent of solr shards.rows](https://discuss.elastic.co/t/efficient-deep-pagination-or-equivalent-of-solr-shards-rows/135660)

<div class="topic-metadata">

**Author:** [@poppemp](https://discuss.elastic.co/u/poppemp)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 11:54am UTC](https://discuss.elastic.co/t/efficient-deep-pagination-or-equivalent-of-solr-shards-rows/135660 "2018-06-15T11:54:09Z")

</div>

Howdy! We have a public-facing search function where certain users routinely can navigate quite deeply in the result set and reach the max\_result\_window. I found a very interesting article about solr where they limit t…

---

## [Change the Name off Monitoring Index](https://discuss.elastic.co/t/change-the-name-off-monitoring-index/136060)

<div class="topic-metadata">

**Author:** [@joltmann](https://discuss.elastic.co/u/joltmann)\
**Replies:** 4\
**Last updated:** [June 15, 2018, 11:39am UTC](https://discuss.elastic.co/t/change-the-name-off-monitoring-index/136060 "2018-06-15T11:39:47Z")

</div>

Hi @all, I have serveral ES-Cluster with xpack Monitoring installed. For our Production environment I won't store the Monitoring Index on the same ES-Cluster. So I configure "xpack.monitoring.exporters". But it is possi…

---

## [Joda custom format](https://discuss.elastic.co/t/joda-custom-format/135272)

<div class="topic-metadata">

**Author:** [@troy](https://discuss.elastic.co/u/troy)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 11:39am UTC](https://discuss.elastic.co/t/joda-custom-format/135272 "2018-06-15T11:39:06Z")

</div>

Trying to figure out why my joda custom format is causing an error. I'm trying to match this date string: Wed May 23 2018 13:45:04 GMT-0700 (Pacific Daylight Time) with this joda custom format string: E MMM dd yyyy HH…

---

## [Maximum number of fields in an index](https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978)

<div class="topic-metadata">

**Author:** [@Paddy\_Mahadeva](https://discuss.elastic.co/u/Paddy_Mahadeva)\
**Replies:** 2\
**Last updated:** [June 15, 2018, 11:08am UTC](https://discuss.elastic.co/t/maximum-number-of-fields-in-an-index/134978 "2018-06-15T11:08:21Z")

</div>

Hi, I am using elasticsearch as my primary database (yes, I know its not a great idea, but I have a good use case for the same). My problem is that I am at the threshold of cross the 1000 fields limit for my index. Most…

---

## [OOM for ES: fielddata.cache.size and breaker.fielddata.limit doesn't work](https://discuss.elastic.co/t/oom-for-es-fielddata-cache-size-and-breaker-fielddata-limit-doesnt-work/136067)

<div class="topic-metadata">

**Author:** [@asaraseka](https://discuss.elastic.co/u/asaraseka)\
**Replies:** 5\
**Last updated:** [June 15, 2018, 10:22am UTC](https://discuss.elastic.co/t/oom-for-es-fielddata-cache-size-and-breaker-fielddata-limit-doesnt-work/136067 "2018-06-15T10:22:48Z")

</div>

Hello ! We have a cluster with 3 data, 3 master and 2 client nodes. We're using it as a reporting cluster - running a big queries with aggregations. ES uses 50% of VM RAM. We're getting OOM time-to-time (seems related…

---

## [Error when creating different Type in Same Index Name](https://discuss.elastic.co/t/error-when-creating-different-type-in-same-index-name/136078)

<div class="topic-metadata">

**Author:** [@RakshaChoudhary](https://discuss.elastic.co/u/RakshaChoudhary)\
**Replies:** 2\
**Last updated:** [June 15, 2018, 10:18am UTC](https://discuss.elastic.co/t/error-when-creating-different-type-in-same-index-name/136078 "2018-06-15T10:18:06Z")

</div>

Hi all, I am trying to create a new Type in same Index as below. I already have created a index like below, which has more than 200 data. post \_bulk {"index":{"\_index" : "bank", "\_type" : "account", "\_id":"1"}} {"ac…

---

## [Update shard settings on all index templates](https://discuss.elastic.co/t/update-shard-settings-on-all-index-templates/135506)

<div class="topic-metadata">

**Author:** [@dboss101](https://discuss.elastic.co/u/dboss101)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 10:03am UTC](https://discuss.elastic.co/t/update-shard-settings-on-all-index-templates/135506 "2018-06-15T10:03:28Z")

</div>

Hi, Assuming I have a lot of index templates and I want to update the same setting on all of them (change the number of primary or replica shards for example) is there a way to update all of the templates using a simple…

---

## [IndicesClient.create throwing exception](https://discuss.elastic.co/t/indicesclient-create-throwing-exception/135425)

<div class="topic-metadata">

**Author:** [@babu.subburathinam](https://discuss.elastic.co/u/babu.subburathinam)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 9:59am UTC](https://discuss.elastic.co/t/indicesclient-create-throwing-exception/135425 "2018-06-15T09:59:28Z")

</div>

I am attempting to create an index as follows: public class CreateIndexTest { @Test public void testIndexCreationWithMapping() throws IOException { final RestClientBuilder restClientBuilder = …

---

## [Elasticsearch GC log message](https://discuss.elastic.co/t/elasticsearch-gc-log-message/135355)

<div class="topic-metadata">

**Author:** [@9787d569382ad9fcce95](https://discuss.elastic.co/u/9787d569382ad9fcce95)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 9:48am UTC](https://discuss.elastic.co/t/elasticsearch-gc-log-message/135355 "2018-06-15T09:48:49Z")

</div>

Hi, I install Elasticsearch 6.2.4 by .rpm (elasticsearch-6.2.4.rpm) for testing purpose. After installation, elasticsearch service running normally and no error log found in /var/log/elasticsearch.log However, there a…

---

## [Elastic JVM heap file dumps deletion](https://discuss.elastic.co/t/elastic-jvm-heap-file-dumps-deletion/135409)

<div class="topic-metadata">

**Author:** [@Amandeep\_Singh1](https://discuss.elastic.co/u/Amandeep_Singh1)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 9:43am UTC](https://discuss.elastic.co/t/elastic-jvm-heap-file-dumps-deletion/135409 "2018-06-15T09:43:46Z")

</div>

Elasticsearch ships withs -XX:+HeapDumpOnOutOfMemory enabled, this leads to the heap dumps being generated whenever the JVM encounters an OutOfMemoryError. These generate hprof files in with default location as /var/lib…

---

## [Docker elastic 6.3 with java 8](https://discuss.elastic.co/t/docker-elastic-6-3-with-java-8/136028)

<div class="topic-metadata">

**Author:** [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 7:33am UTC](https://discuss.elastic.co/t/docker-elastic-6-3-with-java-8/136028 "2018-06-15T07:33:52Z")

</div>

Docker elastic 6.3 complains about java 9 OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release Unrecognized VM option 'PrintReferenceGC…

---

## [Elasticsearch 6.3.0 - Unknown setting \[xpack.monitoring.collection.enabled\] did you mean \[xpack.monitoring.collection.interval\]](https://discuss.elastic.co/t/elasticsearch-6-3-0-unknown-setting-xpack-monitoring-collection-enabled-did-you-mean-xpack-monitoring-collection-interval/136043)

<div class="topic-metadata">

**Author:** [@abhijat](https://discuss.elastic.co/u/abhijat)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 9:18am UTC](https://discuss.elastic.co/t/elasticsearch-6-3-0-unknown-setting-xpack-monitoring-collection-enabled-did-you-mean-xpack-monitoring-collection-interval/136043 "2018-06-15T09:18:56Z")

</div>

When I start docker elasticsearch 6.3 with java 8, I see the following error message: \[2018-06-15T07:34:40,396\]\[WARN \]\[o.e.b.ElasticsearchUncaughtExceptionHandler\] \[anothertp\] uncaught exception in thread \[main\] org.ela…

---

## [Separate Elasticsearch Storage for different indices](https://discuss.elastic.co/t/separate-elasticsearch-storage-for-different-indices/136059)

<div class="topic-metadata">

**Author:** [@pkaramol](https://discuss.elastic.co/u/pkaramol)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 9:15am UTC](https://discuss.elastic.co/t/separate-elasticsearch-storage-for-different-indices/136059 "2018-06-15T09:15:33Z")

</div>

I have an elasticsearch.yml file as follows: # cat elasticsearch.yml node.name: my-node-name cluster.name: my\_es\_cluster path.data: /storage/elasticsearch #path.logs: /var/log/elasticsearch network.host: 0.0.0.0 My que…

---

## [Reducing latency when node down](https://discuss.elastic.co/t/reducing-latency-when-node-down/136061)

<div class="topic-metadata">

**Author:** [@ogibayashi](https://discuss.elastic.co/u/ogibayashi)\
**Replies:** 0\
**Last updated:** [June 15, 2018, 9:11am UTC](https://discuss.elastic.co/t/reducing-latency-when-node-down/136061 "2018-06-15T09:11:48Z")

</div>

Hello. We are developing an API server using Elasticsearch as a storage. The latency of that API is usually around 50ms. The issue I am facing is that when I stop one Elasticsearch node, the latency goes up to seconds …

---

## [Unable to change type string to int (logstash -\> es)](https://discuss.elastic.co/t/unable-to-change-type-string-to-int-logstash-es/135941)

<div class="topic-metadata">

**Author:** [@herren\_marc](https://discuss.elastic.co/u/herren_marc)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 9:02am UTC](https://discuss.elastic.co/t/unable-to-change-type-string-to-int-logstash-es/135941 "2018-06-15T09:02:36Z")

</div>

Hi, Pretty new to ELK. I've setup my logstash to parse the apache response time as number --\> %{NUMBER:response\_time} (I also tried with INT) I can see the value in my json, but as it is defined within ES as a "strin…

---

## [Match\_pattern mapping doesn't work](https://discuss.elastic.co/t/match-pattern-mapping-doesnt-work/136054)

<div class="topic-metadata">

**Author:** [@gourmax](https://discuss.elastic.co/u/gourmax)\
**Replies:** 0\
**Last updated:** [June 15, 2018, 8:53am UTC](https://discuss.elastic.co/t/match-pattern-mapping-doesnt-work/136054 "2018-06-15T08:53:02Z")

</div>

I'm trying to create a template to map my futur indices. The following match work fine: "mappings": { "doc": { "properties": { "@version": { "enabled": false }, "tags": { "enabled": false …

---

## [Errors in Elastic (Limit of mapping depth \[20\] in index)](https://discuss.elastic.co/t/errors-in-elastic-limit-of-mapping-depth-20-in-index/132799)

<div class="topic-metadata">

**Author:** [@M\_B\_I](https://discuss.elastic.co/u/M_B_I)\
**Replies:** 0\
**Last updated:** [May 22, 2018, 11:23am UTC](https://discuss.elastic.co/t/errors-in-elastic-limit-of-mapping-depth-20-in-index/132799 "2018-05-22T11:23:08Z")

</div>

Hi, everyone! Does anybody how I can fix this error : "Limit of mapping depth \[20\] in index \[indexName-YYYY.MM.dd\] has been exceeded due to object field \[fieldName\]

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

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