# Elasticsearch

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

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

**Page:** 1409

---

## [Sorting root based on field in nested object](https://discuss.elastic.co/t/sorting-root-based-on-field-in-nested-object/166680)

<div class="topic-metadata">

**Author:** [@Sagar\_Mishra](https://discuss.elastic.co/u/Sagar_Mishra)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 6:27am UTC](https://discuss.elastic.co/t/sorting-root-based-on-field-in-nested-object/166680 "2019-02-01T06:27:16Z")

</div>

I want to sort my root based on field in its child. I have tried many approach but didn't work. "hits" : { "total" : 232268, "max\_score" : 1.0, "hits" : \[ { "\_index" : "providers", "\_type" : "\_doc", "\_id" : "1003…

---

## [Endless stacktrace in log4j when using TransportClient](https://discuss.elastic.co/t/endless-stacktrace-in-log4j-when-using-transportclient/166674)

<div class="topic-metadata">

**Author:** [@TheLeap](https://discuss.elastic.co/u/TheLeap)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 5:30am UTC](https://discuss.elastic.co/t/endless-stacktrace-in-log4j-when-using-transportclient/166674 "2019-02-01T05:30:14Z")

</div>

NoNodeAvailableException and endless stacktrace in log4j when using TransportClient Is there any changes to this as I am still seeing these recursive log trace which is causing StackOverFlow error.

---

## [Elasticsearch ip range query](https://discuss.elastic.co/t/elasticsearch-ip-range-query/166106)

<div class="topic-metadata">

**Author:** [@vnpt\_Pham](https://discuss.elastic.co/u/vnpt_Pham)\
**Replies:** 2\
**Last updated:** [February 1, 2019, 2:49am UTC](https://discuss.elastic.co/t/elasticsearch-ip-range-query/166106 "2019-02-01T02:49:35Z")

</div>

Dear, I set mapping below PUT iptest { "mappings": { "addy": { "properties":{ "ips": { "type": "ip"} } } } } And insert data: PUT iptest/addy/1?refresh {"ips": \[ "10…

---

## [Create new index with dynamic mapping for dates](https://discuss.elastic.co/t/create-new-index-with-dynamic-mapping-for-dates/166098)

<div class="topic-metadata">

**Author:** [@ottadini](https://discuss.elastic.co/u/ottadini)\
**Replies:** 1\
**Last updated:** [February 1, 2019, 1:30am UTC](https://discuss.elastic.co/t/create-new-index-with-dynamic-mapping-for-dates/166098 "2019-02-01T01:30:05Z")

</div>

I want my indices to recognise a few different date formats. Some of these formats look like this: 29.06.06 (so a date format of "dd.MM.yy"?) 29-06-06 29/Jun/2006. From what I've read, I think I need to create a dyna…

---

## [Watcher: Failed to send sample slack message (reopening)](https://discuss.elastic.co/t/watcher-failed-to-send-sample-slack-message-reopening/166029)

<div class="topic-metadata">

**Author:** [@beQr](https://discuss.elastic.co/u/beQr)\
**Replies:** 1\
**Last updated:** [February 1, 2019, 12:55am UTC](https://discuss.elastic.co/t/watcher-failed-to-send-sample-slack-message-reopening/166029 "2019-02-01T00:55:41Z")

</div>

\[context\]: Elastic v6.5.4 Using Elasticsearch service hosted at cloud.elastic.co Hi there, I m having the exact same issue that happened here : I already verified that I can push a message to slack through the webh…

---

## [Elastic search timeout exception for bulk execute (Index creation)](https://discuss.elastic.co/t/elastic-search-timeout-exception-for-bulk-execute-index-creation/166650)

<div class="topic-metadata">

**Author:** [@Jayaram24](https://discuss.elastic.co/u/Jayaram24)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 11:05pm UTC](https://discuss.elastic.co/t/elastic-search-timeout-exception-for-bulk-execute-index-creation/166650 "2019-01-31T23:05:31Z")

</div>

Elastic search couldn't create a bulk item (index), It throws an error "Failed to acknowledge mapping update within \[30s\] ... " I don't why the timeout occurs. The error message is, \[2019-01-31T08:20:17,547\]\[DEBUG\]\[…

---

## [Unable to return SearchResponse with aggregations Java High Level REST Client](https://discuss.elastic.co/t/unable-to-return-searchresponse-with-aggregations-java-high-level-rest-client/166448)

<div class="topic-metadata">

**Author:** [@Luke\_Giles](https://discuss.elastic.co/u/Luke_Giles)\
**Replies:** 1\
**Last updated:** [January 31, 2019, 10:59pm UTC](https://discuss.elastic.co/t/unable-to-return-searchresponse-with-aggregations-java-high-level-rest-client/166448 "2019-01-31T22:59:45Z")

</div>

Hi all, I'm trying to using the Java High Level REST Client API to return a SearchResponse from a search template using aggregates and getting the following error; \`Request processing failed; nested exception is org.sp…

---

## [Aggregate events with start and end date](https://discuss.elastic.co/t/aggregate-events-with-start-and-end-date/162371)

<div class="topic-metadata">

**Author:** [@nmeaux](https://discuss.elastic.co/u/nmeaux)\
**Replies:** 4\
**Last updated:** [January 31, 2019, 10:11pm UTC](https://discuss.elastic.co/t/aggregate-events-with-start-and-end-date/162371 "2019-01-31T22:11:24Z")

</div>

Hello, I have events with fields start\_date and end\_date in epoch in the same document. I want to sum fields values which are in the events on Y-axis (represented at the end with %) and X-axis will represent the time o…

---

## [Unstable multi search response](https://discuss.elastic.co/t/unstable-multi-search-response/166643)

<div class="topic-metadata">

**Author:** [@honey.and.sw](https://discuss.elastic.co/u/honey.and.sw)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 9:01pm UTC](https://discuss.elastic.co/t/unstable-multi-search-response/166643 "2019-01-31T21:01:08Z")

</div>

Hi community! I have one Elasticsearch node, 8 vCPU and 30G mem machine, 10G is allocated for heap. The problem is multi search by Java SDK fails quite often and its response alternates success and failure. When it fa…

---

## [Most right architecture for my cluster](https://discuss.elastic.co/t/most-right-architecture-for-my-cluster/166488)

<div class="topic-metadata">

**Author:** [@Amit\_Ripshtos](https://discuss.elastic.co/u/Amit_Ripshtos)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 8:23pm UTC](https://discuss.elastic.co/t/most-right-architecture-for-my-cluster/166488 "2019-01-31T20:23:00Z")

</div>

Hey all, Currently I have a 3 nodes cluster with the following spec: Every server has 12 cores, 32gb of memory and 3 TB of NVME disks. I have total of 6.5TB of data, spreaded on 30 daily indices and another four indic…

---

## [ES 6.4.0 does not start after host migration](https://discuss.elastic.co/t/es-6-4-0-does-not-start-after-host-migration/166630)

<div class="topic-metadata">

**Author:** [@saihariharan](https://discuss.elastic.co/u/saihariharan)\
**Replies:** 1\
**Last updated:** [January 31, 2019, 8:11pm UTC](https://discuss.elastic.co/t/es-6-4-0-does-not-start-after-host-migration/166630 "2019-01-31T20:11:19Z")

</div>

We had 3 node ES 6.4.0 cluster with Xpack security enabled. The license had just expired and we had temporarily shutdown the cluster for a planned host migration (hosts were physically moved to another location, no chan…

---

## [Data node as Master Node](https://discuss.elastic.co/t/data-node-as-master-node/166627)

<div class="topic-metadata">

**Author:** [@aniaks](https://discuss.elastic.co/u/aniaks)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 8:02pm UTC](https://discuss.elastic.co/t/data-node-as-master-node/166627 "2019-01-31T20:02:46Z")

</div>

Is it good to have a cluster with the following 2 Ingest Nodes (doesnt do anything except routing the bulk request) 5 Data nodes (Also as master nodes) 1 coord node I see in documentation - there should be dedicated …

---

## [Validation Failed: 1: mapping type is missing](https://discuss.elastic.co/t/validation-failed-1-mapping-type-is-missing/166629)

<div class="topic-metadata">

**Author:** [@liran](https://discuss.elastic.co/u/liran)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 7:03pm UTC](https://discuss.elastic.co/t/validation-failed-1-mapping-type-is-missing/166629 "2019-01-31T19:03:49Z")

</div>

Hi, I'm a newbie to the ELK stack and I'm probably stuck due a syntax error. Any help would be most appreciated. I've installed ES and I'm trying to create a mapping for my index to fit the following json: { "facets…

---

## [Sending all the aggregations Response in multiple lines](https://discuss.elastic.co/t/sending-all-the-aggregations-response-in-multiple-lines/166623)

<div class="topic-metadata">

**Author:** [@Rajeev\_Prakash](https://discuss.elastic.co/u/Rajeev_Prakash)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 5:53pm UTC](https://discuss.elastic.co/t/sending-all-the-aggregations-response-in-multiple-lines/166623 "2019-01-31T17:53:19Z")

</div>

Hi, I configured the watcher to generate email alert with transactions counts for every 24 hrs. using aggregations I configured the watcher "aggs": { "2": { "terms": { "field": "TransactionName.keyword", "size": 5…

---

## [Creating Elasticsearch Java models for unit testing](https://discuss.elastic.co/t/creating-elasticsearch-java-models-for-unit-testing/166619)

<div class="topic-metadata">

**Author:** [@asward123](https://discuss.elastic.co/u/asward123)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 5:37pm UTC](https://discuss.elastic.co/t/creating-elasticsearch-java-models-for-unit-testing/166619 "2019-01-31T17:37:17Z")

</div>

(Using v6.5.2 of both cluster and Java clients) I am attempting to implement an application that uses the Elasticsearch aggregations API to provide a variety of metrics to a client. I want to be able to unit test the lo…

---

## [Scroll Concept slows the search performance in latest Elastic version by php client](https://discuss.elastic.co/t/scroll-concept-slows-the-search-performance-in-latest-elastic-version-by-php-client/166388)

<div class="topic-metadata">

**Author:** [@kshi\_yelpale000](https://discuss.elastic.co/u/kshi_yelpale000)\
**Replies:** 11\
**Last updated:** [January 31, 2019, 5:15pm UTC](https://discuss.elastic.co/t/scroll-concept-slows-the-search-performance-in-latest-elastic-version-by-php-client/166388 "2019-01-31T17:15:41Z")

</div>

Hi all, I have migrated my application's elastic search version from 2.4 to 6.3, in which i saw decrease in performance figures. Size parameter in query request in old version was 1000000000, and by this i was getting 2…

---

## [How to match documents from different indexes?](https://discuss.elastic.co/t/how-to-match-documents-from-different-indexes/166604)

<div class="topic-metadata">

**Author:** [@Wassim\_Ben\_Amor](https://discuss.elastic.co/u/Wassim_Ben_Amor)\
**Replies:** 1\
**Last updated:** [January 31, 2019, 4:37pm UTC](https://discuss.elastic.co/t/how-to-match-documents-from-different-indexes/166604 "2019-01-31T16:37:15Z")

</div>

Hello, I'm looking for a solution to match documents from different indexes. Well, I have two indexes, Index 1, contains documents with field message which is a string. Index 2, contains documents with field regex. H…

---

## [Query string needs an excludes option](https://discuss.elastic.co/t/query-string-needs-an-excludes-option/166427)

<div class="topic-metadata">

**Author:** [@maziyar](https://discuss.elastic.co/u/maziyar)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 4:02pm UTC](https://discuss.elastic.co/t/query-string-needs-an-excludes-option/166427 "2019-01-31T16:02:18Z")

</div>

Hello, I have been using query\_string in my application which sits behind Swagger APIs and provides rest APIs for our researchers for a few years now. The power of query\_string is undeniable. That is why it's the best c…

---

## [Server side iterators](https://discuss.elastic.co/t/server-side-iterators/166592)

<div class="topic-metadata">

**Author:** [@philv](https://discuss.elastic.co/u/philv)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 3:23pm UTC](https://discuss.elastic.co/t/server-side-iterators/166592 "2019-01-31T15:23:56Z")

</div>

I'd like to have a series of mutators that iterate over an index and mutates it, (inserts new fields to the documents , or inserts new documents). Right now we have these pieces of functionality as standalone apps that …

---

## [Elastic search Tuning Performance](https://discuss.elastic.co/t/elastic-search-tuning-performance/166528)

<div class="topic-metadata">

**Author:** [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)\
**Replies:** 16\
**Last updated:** [January 31, 2019, 2:55pm UTC](https://discuss.elastic.co/t/elastic-search-tuning-performance/166528 "2019-01-31T14:55:50Z")

</div>

I have 2 servers with same hardware on both: 16gb Ram Virtual Storage 500gb Unix System I tried to index a 250mb file on one of them using logstash, it took 30 mins to index which is a really poor performance. Note…

---

## [How to visualize search\_with\_cluster results (Carrot2 plugin) in Kibana](https://discuss.elastic.co/t/how-to-visualize-search-with-cluster-results-carrot2-plugin-in-kibana/166580)

<div class="topic-metadata">

**Author:** [@aml\_iv](https://discuss.elastic.co/u/aml_iv)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 2:55pm UTC](https://discuss.elastic.co/t/how-to-visualize-search-with-cluster-results-carrot2-plugin-in-kibana/166580 "2019-01-31T14:55:09Z")

</div>

Hi, I am clustering a lot of documents with the carrot2 plug-in and would like to visualize the number of documents in each cluster in Kibana. Is it possible to pass search results from a plug-in directly to Kibana, or …

---

## [Size from or Search After](https://discuss.elastic.co/t/size-from-or-search-after/166575)

<div class="topic-metadata">

**Author:** [@isaninic](https://discuss.elastic.co/u/isaninic)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 2:02pm UTC](https://discuss.elastic.co/t/size-from-or-search-after/166575 "2019-01-31T14:02:19Z")

</div>

Hello, I'm looking into the size from and search after and want to know the difference between what is going on under the hood. It seems based on the documentation that the size from needs to sort all of the data and re…

---

## [Unit testing elasticsearch in Java](https://discuss.elastic.co/t/unit-testing-elasticsearch-in-java/166519)

<div class="topic-metadata">

**Author:** [@Chandan\_Ray](https://discuss.elastic.co/u/Chandan_Ray)\
**Replies:** 6\
**Last updated:** [January 31, 2019, 1:49pm UTC](https://discuss.elastic.co/t/unit-testing-elasticsearch-in-java/166519 "2019-01-31T13:49:36Z")

</div>

I am using Elasticsearch 5.6.7. I am new to elasticsearch testing and was curious to know if I could unit test my dao classes without running an elasticsearch in my system. Was unable to find any detailed information o…

---

## [Highlight object type field while searching for a word match](https://discuss.elastic.co/t/highlight-object-type-field-while-searching-for-a-word-match/166569)

<div class="topic-metadata">

**Author:** [@vidhu](https://discuss.elastic.co/u/vidhu)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 1:44pm UTC](https://discuss.elastic.co/t/highlight-object-type-field-while-searching-for-a-word-match/166569 "2019-01-31T13:44:58Z")

</div>

HI All, I am trying to highlight the object type field, normal fields highlight is working where as for object field, highlights is returning empty array. Can anyone please help? Doc structure is as below. "document"…

---

## [Nested top\_hits scoring question](https://discuss.elastic.co/t/nested-top-hits-scoring-question/166503)

<div class="topic-metadata">

**Author:** [@Slade](https://discuss.elastic.co/u/Slade)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 9:09am UTC](https://discuss.elastic.co/t/nested-top-hits-scoring-question/166503 "2019-01-31T09:09:54Z")

</div>

Okay so it seems that all I needed to do was to nest the the top hits aggregations within a filter aggregation and then have the bool query with the should clause within that filter aggregation. I wish to retrieve neste…

---

## [Search in many indices is too slow](https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554)

<div class="topic-metadata">

**Author:** [@ZY2zZ](https://discuss.elastic.co/u/ZY2zZ)\
**Replies:** 2\
**Last updated:** [January 31, 2019, 1:32pm UTC](https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554 "2019-01-31T13:32:00Z")

</div>

I try to search in a index,it only spends 9-20ms,But if i search in mutiple indices,it spends a long time(about 110-240ms. Isn't it parallel？ And when i use the profile API,i find that next\_doc spents the most time,how c…

---

## [Pass indice name in aggregation](https://discuss.elastic.co/t/pass-indice-name-in-aggregation/166392)

<div class="topic-metadata">

**Author:** [@pramod.kumar2](https://discuss.elastic.co/u/pramod.kumar2)\
**Replies:** 3\
**Last updated:** [January 31, 2019, 1:01pm UTC](https://discuss.elastic.co/t/pass-indice-name-in-aggregation/166392 "2019-01-31T13:01:27Z")

</div>

Hi Team, I am using elasticsearch 6.2.3. I want to know how we can pass index name in aggregation filtering to get aggregation results for particular index. My search query currently working on multiple indices(Using on…

---

## [Setting index.max\_terms\_count has no effect?](https://discuss.elastic.co/t/setting-index-max-terms-count-has-no-effect/166532)

<div class="topic-metadata">

**Author:** [@hariso](https://discuss.elastic.co/u/hariso)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 10:39am UTC](https://discuss.elastic.co/t/setting-index-max-terms-count-has-no-effect/166532 "2019-01-31T10:39:25Z")

</div>

Hello! I'm experimenting with index.max\_terms\_count. I've tried executing a terms query with over 65 536 terms in it, and I was surprised to see it actually gets executed, because I read the warning here: Executing a …

---

## [JVM heap over time graphs](https://discuss.elastic.co/t/jvm-heap-over-time-graphs/166553)

<div class="topic-metadata">

**Author:** [@juka](https://discuss.elastic.co/u/juka)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 12:49pm UTC](https://discuss.elastic.co/t/jvm-heap-over-time-graphs/166553 "2019-01-31T12:49:35Z")

</div>

I have a question regarding the JVM Heap Space over time. There is a wonderful documentation about that here: but it does not show how the JVM Heap Space should look like in an ideal setup. We are running Elasticsea…

---

## [Watcher on node stats](https://discuss.elastic.co/t/watcher-on-node-stats/166517)

<div class="topic-metadata">

**Author:** [@JamesNotJamez](https://discuss.elastic.co/u/JamesNotJamez)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 9:57am UTC](https://discuss.elastic.co/t/watcher-on-node-stats/166517 "2019-01-31T09:57:40Z")

</div>

Not sure if this is an ECE or just general Elasticsearch query, but I'm trying to set up watchers on node stats e.g. check JVM heap not using over 80%. Is there a way to do this using the search input. I know it would b…

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

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