# Elasticsearch

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

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

**Page:** 1871

---

## [I can't upload the sample accounts.json file](https://discuss.elastic.co/t/i-cant-upload-the-sample-accounts-json-file/109866)

<div class="topic-metadata">

**Author:** [@Daniel\_Gonzalez1](https://discuss.elastic.co/u/Daniel_Gonzalez1)\
**Replies:** 2\
**Last updated:** [December 1, 2017, 5:39am UTC](https://discuss.elastic.co/t/i-cant-upload-the-sample-accounts-json-file/109866 "2017-12-01T05:39:47Z")

</div>

Hello I'm new in Elastic. I'm using Elastic from a Mac. I want to upload de account.json file to elasticsearch with the following command as the documentation says. \_curl -H "Content-Type: application/json" -XPOST 'loc…

---

## [GitHub Help](https://discuss.elastic.co/t/github-help/109857)

<div class="topic-metadata">

**Author:** [@Joe](https://discuss.elastic.co/u/Joe)\
**Replies:** 2\
**Last updated:** [December 1, 2017, 4:23am UTC](https://discuss.elastic.co/t/github-help/109857 "2017-12-01T04:23:14Z")

</div>

Trying to get started helping out on Open source. Looks like my Git client is good but my fork is very old (Maven not Gradle Feb 2015) . How do I get past this? Relatively new to Git. Do I go to them for this kind of…

---

## [ElasticSearch 1.7: query time spike, and the application processor crash after that](https://discuss.elastic.co/t/elasticsearch-1-7-query-time-spike-and-the-application-processor-crash-after-that/109673)

<div class="topic-metadata">

**Author:** [@Weizhi\_Li](https://discuss.elastic.co/u/Weizhi_Li)\
**Replies:** 9\
**Last updated:** [December 1, 2017, 3:08am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-query-time-spike-and-the-application-processor-crash-after-that/109673 "2017-12-01T03:08:43Z")

</div>

I used ES as the search engine, the QPS is high (i. e, 1500 rpm), and find some time there is a spike in some nodes, and I have set up timeout is 2s. The traffic is stuck after that. Any ideas to solve this issues? Cac…

---

## [How to add multiple accounts](https://discuss.elastic.co/t/how-to-add-multiple-accounts/109860)

<div class="topic-metadata">

**Author:** [@Tejas\_Ghutukade](https://discuss.elastic.co/u/Tejas_Ghutukade)\
**Replies:** 2\
**Last updated:** [December 1, 2017, 3:03am UTC](https://discuss.elastic.co/t/how-to-add-multiple-accounts/109860 "2017-12-01T03:03:41Z")

</div>

How to add multiple account in x pack. it only give option for one account.

---

## [Any way to restore the sample dashboards?](https://discuss.elastic.co/t/any-way-to-restore-the-sample-dashboards/109850)

<div class="topic-metadata">

**Author:** [@learner](https://discuss.elastic.co/u/learner)\
**Replies:** 5\
**Last updated:** [December 1, 2017, 12:19am UTC](https://discuss.elastic.co/t/any-way-to-restore-the-sample-dashboards/109850 "2017-12-01T00:19:20Z")

</div>

I had manually deleted each of them to not mix with my custom dashboards. Now I want to refer to some of their settings and want to restore them. Is it possible? I tried re-installing ES, Kibana, Packetbeat, etc. but …

---

## [How to fetch ~12M documents(may be even more) quickly from ES using scroll API?](https://discuss.elastic.co/t/how-to-fetch-12m-documents-may-be-even-more-quickly-from-es-using-scroll-api/109822)

<div class="topic-metadata">

**Author:** [@harshil](https://discuss.elastic.co/u/harshil)\
**Replies:** 3\
**Last updated:** [November 30, 2017, 11:48pm UTC](https://discuss.elastic.co/t/how-to-fetch-12m-documents-may-be-even-more-quickly-from-es-using-scroll-api/109822 "2017-11-30T23:48:49Z")

</div>

Hello, I have a requirement to fetch ~12M documents (it could get more than that also..). I tried using scroll API with GET {index}/{type}/\_search?scroll=1m { "size": 10000, "sort": \["\_doc"\], "\_source": \["field\_1"…

---

## [Guide for nontechnical end users](https://discuss.elastic.co/t/guide-for-nontechnical-end-users/109844)

<div class="topic-metadata">

**Author:** [@Malik\_Rumi](https://discuss.elastic.co/u/Malik_Rumi)\
**Replies:** 4\
**Last updated:** [November 30, 2017, 11:43pm UTC](https://discuss.elastic.co/t/guide-for-nontechnical-end-users/109844 "2017-11-30T23:43:30Z")

</div>

I am just getting started learning and using elasticsearch. I am looking at all these docs and tutorials and it all seems fairly complex. But my use case is the same as Amazon, and no one has ever taught me how to search…

---

## [Refresh and delete](https://discuss.elastic.co/t/refresh-and-delete/109548)

<div class="topic-metadata">

**Author:** [@Padmavathy](https://discuss.elastic.co/u/Padmavathy)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 11:38pm UTC](https://discuss.elastic.co/t/refresh-and-delete/109548 "2017-11-30T23:38:24Z")

</div>

I poll logstash every 5 seconds to connect to oracle db and configuring it in kibana 5.5 with auto refresh option in real time. Is there a way on refreshing kibana, the previously shown value can be deleted from the in…

---

## [LDA/Topic modeling](https://discuss.elastic.co/t/lda-topic-modeling/53989)

<div class="topic-metadata">

**Author:** [@kausik93](https://discuss.elastic.co/u/kausik93)\
**Replies:** 4\
**Last updated:** [November 30, 2017, 11:24pm UTC](https://discuss.elastic.co/t/lda-topic-modeling/53989 "2017-11-30T23:24:43Z")

</div>

Has anyone tried doing LDA/Topic modeling with elasticsearch? I'm using elasticsearch to index all my documents and was hoping to find a way to extract all the words per doc. So far only term\_vectors might possibly be he…

---

## [Broke Watcher on ES6](https://discuss.elastic.co/t/broke-watcher-on-es6/109665)

<div class="topic-metadata">

**Author:** [@djtecha](https://discuss.elastic.co/u/djtecha)\
**Replies:** 5\
**Last updated:** [November 30, 2017, 11:23pm UTC](https://discuss.elastic.co/t/broke-watcher-on-es6/109665 "2017-11-30T23:23:02Z")

</div>

So, I ran into some oddities after upgrading from 5.6 and had zero watches so figured I'd just delete the index and let ES recreate it. Upon rebooting my full cluster the index doesn't appear to be recreated and I'm just…

---

## [Better to use 3 master+data nodes or 3 master + 2 data nodes?](https://discuss.elastic.co/t/better-to-use-3-master-data-nodes-or-3-master-2-data-nodes/109515)

<div class="topic-metadata">

**Author:** [@vaughnd](https://discuss.elastic.co/u/vaughnd)\
**Replies:** 4\
**Last updated:** [November 30, 2017, 11:44am UTC](https://discuss.elastic.co/t/better-to-use-3-master-data-nodes-or-3-master-2-data-nodes/109515 "2017-11-30T11:44:51Z")

</div>

Hi, We're running a search engine with two ES clusters. The first "content store" is for the crawled data, logs, stats, and metrics; so it has a heavy write/read and aggregate load. The second "public search" cluster is…

---

## [What is the difference on \_cat/indices and /\_stats on index storage](https://discuss.elastic.co/t/what-is-the-difference-on-cat-indices-and-stats-on-index-storage/109636)

<div class="topic-metadata">

**Author:** [@senmansei](https://discuss.elastic.co/u/senmansei)\
**Replies:** 3\
**Last updated:** [November 30, 2017, 11:34am UTC](https://discuss.elastic.co/t/what-is-the-difference-on-cat-indices-and-stats-on-index-storage/109636 "2017-11-30T11:34:12Z")

</div>

I was using these two different get calls to collect the index usage information: My rest call on \_stats: GET /index1/\_stats, and I was looking at the value in indices.index1.primaries.merges.total\_size\_in\_bytes; M…

---

## [Php for putScript](https://discuss.elastic.co/t/php-for-putscript/109656)

<div class="topic-metadata">

**Author:** [@morphers82](https://discuss.elastic.co/u/morphers82)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 11:20pm UTC](https://discuss.elastic.co/t/php-for-putscript/109656 "2017-11-30T23:20:33Z")

</div>

how do i setup the params for ES php putScript()? The following doesn't work. $params = \[ "id"=\>"script\_name", "lang"=\> "painless", "body"=\> "painless javascript here" \]; $response = $client-\>putScript($params); I…

---

## [Allocator/Runner](https://discuss.elastic.co/t/allocator-runner/109791)

<div class="topic-metadata">

**Author:** [@kunam](https://discuss.elastic.co/u/kunam)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 11:16pm UTC](https://discuss.elastic.co/t/allocator-runner/109791 "2017-11-30T23:16:41Z")

</div>

I'm very much confused with Allocator and Runner, can some one help me.:roll\_eyes:

---

## ["contexts" is not accepted for pagerduty integration configuration](https://discuss.elastic.co/t/contexts-is-not-accepted-for-pagerduty-integration-configuration/109711)

<div class="topic-metadata">

**Author:** [@vicpav](https://discuss.elastic.co/u/vicpav)\
**Replies:** 2\
**Last updated:** [November 30, 2017, 11:03pm UTC](https://discuss.elastic.co/t/contexts-is-not-accepted-for-pagerduty-integration-configuration/109711 "2017-11-30T23:03:14Z")

</div>

We are using Elastic/Kibana 5.6.3 and I am configuring a watcher with PagerDuty action which is configured like that: "notify-pagerduty": { "throttle\_period\_in\_millis": 1800000, "pagerduty": { …

---

## [ElasticSearch Heap memory free up](https://discuss.elastic.co/t/elasticsearch-heap-memory-free-up/109682)

<div class="topic-metadata">

**Author:** [@akirafei](https://discuss.elastic.co/u/akirafei)\
**Replies:** 12\
**Last updated:** [November 30, 2017, 10:41pm UTC](https://discuss.elastic.co/t/elasticsearch-heap-memory-free-up/109682 "2017-11-30T22:41:35Z")

</div>

Hi, We are doing some load testing on ElasticSearch. Out data is log data. The testing server has 1T data, and two ElasticSearch nodes with 15g heap for each. When doing testing with some random generated queries, I…

---

## [HIVE to Elasticsearch via PIG: Error-Requires ID but none was given/found](https://discuss.elastic.co/t/hive-to-elasticsearch-via-pig-error-requires-id-but-none-was-given-found/109060)

<div class="topic-metadata">

**Author:** [@rcbot](https://discuss.elastic.co/u/rcbot)\
**Replies:** 3\
**Last updated:** [November 30, 2017, 9:50pm UTC](https://discuss.elastic.co/t/hive-to-elasticsearch-via-pig-error-requires-id-but-none-was-given-found/109060 "2017-11-30T21:50:28Z")

</div>

I have a HIVE table(not external) called "default.reading" and it contains 2 columns called "name"(String) and "favoritebook"(Array of String) with the following data: name | favoritebook Tom | \["Book1" , "Book2"\] …

---

## [Elastic stack down some times](https://discuss.elastic.co/t/elastic-stack-down-some-times/109519)

<div class="topic-metadata">

**Author:** [@bvnages](https://discuss.elastic.co/u/bvnages)\
**Replies:** 4\
**Last updated:** [November 30, 2017, 7:58pm UTC](https://discuss.elastic.co/t/elastic-stack-down-some-times/109519 "2017-11-30T19:58:12Z")

</div>

Hi All, I am installed elasticsearch in linux box. Some times going down. I am starting elastic search is going that elastic folder and run it as. \[2017-11-29T04:00:17,313\]\[ERROR\]\[o.e.b.Bootstrap \] Exception …

---

## [Hourly aggregation for timestamp and Java API irrespective of date](https://discuss.elastic.co/t/hourly-aggregation-for-timestamp-and-java-api-irrespective-of-date/109575)

<div class="topic-metadata">

**Author:** [@jpmiitian](https://discuss.elastic.co/u/jpmiitian)\
**Replies:** 7\
**Last updated:** [November 30, 2017, 4:51pm UTC](https://discuss.elastic.co/t/hourly-aggregation-for-timestamp-and-java-api-irrespective-of-date/109575 "2017-11-30T16:51:04Z")

</div>

Hi Though we can get hourly buckets using script as described in below link. But, Can I get the same result using Elasticsearch Java Rest HL client. Is it possible to define the script for AggregationBuilder. https:/…

---

## [Inner\_hits query extremly slow](https://discuss.elastic.co/t/inner-hits-query-extremly-slow/109459)

<div class="topic-metadata">

**Author:** [@2849ab64d121e26de3a2](https://discuss.elastic.co/u/2849ab64d121e26de3a2)\
**Replies:** 5\
**Last updated:** [November 30, 2017, 4:07pm UTC](https://discuss.elastic.co/t/inner-hits-query-extremly-slow/109459 "2017-11-30T16:07:15Z")

</div>

Hello! I have query: GET route/\_search { "stored\_fields": \[ "userId" \], "query": { "bool": { "must": \[ { "match": { "userId": { "query": 30 } …

---

## [Custom Date format to searchable in any format for same date value](https://discuss.elastic.co/t/custom-date-format-to-searchable-in-any-format-for-same-date-value/109740)

<div class="topic-metadata">

**Author:** [@sauronx](https://discuss.elastic.co/u/sauronx)\
**Replies:** 8\
**Last updated:** [November 30, 2017, 3:59pm UTC](https://discuss.elastic.co/t/custom-date-format-to-searchable-in-any-format-for-same-date-value/109740 "2017-11-30T15:59:30Z")

</div>

Hi, I am facing following 2 problems, please help if some could :slight\_smile: I have created index with date field of type date with custom format , when i am trying to insert the value its giving error ( but i have …

---

## [Improve response time](https://discuss.elastic.co/t/improve-response-time/109756)

<div class="topic-metadata">

**Author:** [@Deve\_java](https://discuss.elastic.co/u/Deve_java)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 3:43pm UTC](https://discuss.elastic.co/t/improve-response-time/109756 "2017-11-30T15:43:30Z")

</div>

Hello Group How can I optimize the response time to my index, here is my case: I have a set of documents indexed with two fields, the first is "content" which represents the textual content of the document, the second …

---

## [Elasticsearch plugin is red - possible master node problem?](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617)

<div class="topic-metadata">

**Author:** [@zaddsters](https://discuss.elastic.co/u/zaddsters)\
**Replies:** 11\
**Last updated:** [November 30, 2017, 3:42pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-is-red-possible-master-node-problem/109617 "2017-11-30T15:42:04Z")

</div>

I have installed Elasticsearch 5.51 and Kibana 5.51 and I am now getting an Elasticsearch plugin is red error message screenshot from 2017-11-29 14-37-18 The Elasticsearch logs mention - not enough master nodes discove…

---

## [Refresh=wait\_for for Elasticsearch 2.2](https://discuss.elastic.co/t/refresh-wait-for-for-elasticsearch-2-2/109767)

<div class="topic-metadata">

**Author:** [@manast](https://discuss.elastic.co/u/manast)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 3:37pm UTC](https://discuss.elastic.co/t/refresh-wait-for-for-elasticsearch-2-2/109767 "2017-11-30T15:37:12Z")

</div>

Hi there, I am using Elasticsearch version 2.2 and I am asking if there is any possibility for an update query to wait until changes have been made visible for search. In other words I am looking for a solution similar …

---

## [Ganglia Plugin and Machine learning anomaly detection compatibility](https://discuss.elastic.co/t/ganglia-plugin-and-machine-learning-anomaly-detection-compatibility/109733)

<div class="topic-metadata">

**Author:** [@RostaTasha](https://discuss.elastic.co/u/RostaTasha)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 2:51pm UTC](https://discuss.elastic.co/t/ganglia-plugin-and-machine-learning-anomaly-detection-compatibility/109733 "2017-11-30T14:51:42Z")

</div>

Dear developers, I am new in Elastic stack. I have some monitoring metrics in ganglia and would like to automatically detect anomalies in them. The solution, which came to my mind is to use these two plugins together,…

---

## [\_primary\_term](https://discuss.elastic.co/t/primary-term/109734)

<div class="topic-metadata">

**Author:** [@sshling](https://discuss.elastic.co/u/sshling)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 12:18pm UTC](https://discuss.elastic.co/t/primary-term/109734 "2017-11-30T12:18:28Z")

</div>

What does it mean?

---

## [Visibility rules on search results from elastic](https://discuss.elastic.co/t/visibility-rules-on-search-results-from-elastic/109574)

<div class="topic-metadata">

**Author:** [@abhishekash](https://discuss.elastic.co/u/abhishekash)\
**Replies:** 2\
**Last updated:** [November 29, 2017, 1:37pm UTC](https://discuss.elastic.co/t/visibility-rules-on-search-results-from-elastic/109574 "2017-11-29T13:37:09Z")

</div>

Hello, As part of search , we run our search query applying all the filters. After the search results are fetched, we need to know if the resource can be shown to this user. Which is governed by another web service. No…

---

## [ES 2 Courier Fetch: N of N shards failed](https://discuss.elastic.co/t/es-2-courier-fetch-n-of-n-shards-failed/108888)

<div class="topic-metadata">

**Author:** [@marcmga](https://discuss.elastic.co/u/marcmga)\
**Replies:** 6\
**Last updated:** [November 30, 2017, 11:36am UTC](https://discuss.elastic.co/t/es-2-courier-fetch-n-of-n-shards-failed/108888 "2017-11-30T11:36:39Z")

</div>

Hi, I get that message when i search in dashboard. Mi config for threadpool is: threadpool.search.queue\_size: 11000 In kibana with google developer tools i get this response: { "responses": \[ { "\_shards": { "fai…

---

## [What all are the possible problems if I don't give keyword mapping to my text type?](https://discuss.elastic.co/t/what-all-are-the-possible-problems-if-i-dont-give-keyword-mapping-to-my-text-type/109723)

<div class="topic-metadata">

**Author:** [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Replies:** 5\
**Last updated:** [November 30, 2017, 10:57am UTC](https://discuss.elastic.co/t/what-all-are-the-possible-problems-if-i-dont-give-keyword-mapping-to-my-text-type/109723 "2017-11-30T10:57:39Z")

</div>

Hi, I have a mapping like below; PUT \_template/my\_template { "index\_patterns": \["mylogs\*"\], "mappings": { "doc": { "properties": { . . . "long\_text\_field\_1": { "type": "text"…

---

## [Get single value out of specific aggregation bucket document?](https://discuss.elastic.co/t/get-single-value-out-of-specific-aggregation-bucket-document/109337)

<div class="topic-metadata">

**Author:** [@SparkyRih](https://discuss.elastic.co/u/SparkyRih)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 10:50am UTC](https://discuss.elastic.co/t/get-single-value-out-of-specific-aggregation-bucket-document/109337 "2017-11-30T10:50:16Z")

</div>

So I'm trying to work out a query for my project. But I can't figure out which way to go to achieve one of my goals in the query. I'm aggregating my results, I'm getting the average score of each aggregation, but then I…

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

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