# Elasticsearch

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

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

**Page:** 1463

---

## [Kibana Query Timeouts and Bad Gateway Errors](https://discuss.elastic.co/t/kibana-query-timeouts-and-bad-gateway-errors/159588)

<div class="topic-metadata">

**Author:** [@Michael\_Tsikerdekis](https://discuss.elastic.co/u/Michael_Tsikerdekis)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 6:39pm UTC](https://discuss.elastic.co/t/kibana-query-timeouts-and-bad-gateway-errors/159588 "2018-12-05T18:39:13Z")

</div>

I have this happen every few minutes or so. As I am using Kibana, I get timeouts and bad gateway errors. Eventually elasticsearch goes on the red on Kibana (or its plugin sees it that it does under status). Then elastics…

---

## [Fixing bugs on Elasticsearch code](https://discuss.elastic.co/t/fixing-bugs-on-elasticsearch-code/159432)

<div class="topic-metadata">

**Author:** [@dennysfredericci](https://discuss.elastic.co/u/dennysfredericci)\
**Replies:** 3\
**Last updated:** [December 5, 2018, 6:00pm UTC](https://discuss.elastic.co/t/fixing-bugs-on-elasticsearch-code/159432 "2018-12-05T18:00:06Z")

</div>

Hi Folks, I would like to fix some issues, I cloned the repo from Github and the build was fine using Gradle. I tried to run the main method at org.elasticsearch.bootstrap.Elasticsearch#main but i am struggling with co…

---

## [Understanding Index Shard Snapshot Failed Exception](https://discuss.elastic.co/t/understanding-index-shard-snapshot-failed-exception/159572)

<div class="topic-metadata">

**Author:** [@rohail\_kidwai1](https://discuss.elastic.co/u/rohail_kidwai1)\
**Replies:** 3\
**Last updated:** [December 5, 2018, 5:45pm UTC](https://discuss.elastic.co/t/understanding-index-shard-snapshot-failed-exception/159572 "2018-12-05T17:45:47Z")

</div>

I create snapshots of my indices daily and today I got this error: "failures": \[ { "index": "name-2018.09.05", "index\_uuid": "name-2018.09.05", "shard\_id": 0, "reason": """IndexShardSnapshotFailedException\[Failed …

---

## [Elements of modules](https://discuss.elastic.co/t/elements-of-modules/159580)

<div class="topic-metadata">

**Author:** [@15hawai15](https://discuss.elastic.co/u/15hawai15)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 5:39pm UTC](https://discuss.elastic.co/t/elements-of-modules/159580 "2018-12-05T17:39:05Z")

</div>

Can someone give me example of module element ?

---

## [Reuse the old index data](https://discuss.elastic.co/t/reuse-the-old-index-data/159532)

<div class="topic-metadata">

**Author:** [@Rahul\_Singh](https://discuss.elastic.co/u/Rahul_Singh)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 4:33pm UTC](https://discuss.elastic.co/t/reuse-the-old-index-data/159532 "2018-12-05T16:33:09Z")

</div>

Hi, I am new to elastic search, I have recently started getting the red error message in kibana dashboard for elastic search.So i stopped the elastic search service and restarted it. now the restart gets stuck every ti…

---

## [Nest Connection : Mock 2 in-memory response in elastic search in c#](https://discuss.elastic.co/t/nest-connection-mock-2-in-memory-response-in-elastic-search-in-c/159565)

<div class="topic-metadata">

**Author:** [@piyush\_kumar](https://discuss.elastic.co/u/piyush_kumar)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 3:34pm UTC](https://discuss.elastic.co/t/nest-connection-mock-2-in-memory-response-in-elastic-search-in-c/159565 "2018-12-05T15:34:28Z")

</div>

I have to unit test a function that have 2 elastic search query and need to mock 2 responses for it. I am able to mock single response using below code . var responseBytes = Encoding.UTF8.GetBytes(JsonConvert.SerializeO…

---

## [Why node query cache works only for filters](https://discuss.elastic.co/t/why-node-query-cache-works-only-for-filters/157846)

<div class="topic-metadata">

**Author:** [@vgindin](https://discuss.elastic.co/u/vgindin)\
**Replies:** 5\
**Last updated:** [December 5, 2018, 1:14pm UTC](https://discuss.elastic.co/t/why-node-query-cache-works-only-for-filters/157846 "2018-12-05T13:14:04Z")

</div>

Hi, I have a custom query with ml scoring algorithm. I'd like to be able to cache search results before different aggregations/sorting are applied. I.e. request\_cache is not suitable and node query cache would be great,…

---

## [Highlighting object type field](https://discuss.elastic.co/t/highlighting-object-type-field/159535)

<div class="topic-metadata">

**Author:** [@Shai\_Erera](https://discuss.elastic.co/u/Shai_Erera)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 1:08pm UTC](https://discuss.elastic.co/t/highlighting-object-type-field/159535 "2018-12-05T13:08:55Z")

</div>

Is it possible to highlight an Object type field? It doesn't seem to work for me, and there's nothing in the docs that says it shouldn't work. Specifically, I index documents with sections in them, and I defined my mappi…

---

## [Cluster Settings Allocation Plan](https://discuss.elastic.co/t/cluster-settings-allocation-plan/159528)

<div class="topic-metadata">

**Author:** [@ggodlaveeti](https://discuss.elastic.co/u/ggodlaveeti)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 12:22pm UTC](https://discuss.elastic.co/t/cluster-settings-allocation-plan/159528 "2018-12-05T12:22:54Z")

</div>

Hi team, I have gone through Node types in Elastic 6.1 version & read one link in Elastic Blog regarding optimizing the elastic ( https://www.elastic.co/elasticon/tour/2018/washington-dc/optimizing-elastic-for-search-at…

---

## [Why I used Wildcard query ，start with "\*" and end with "\*" is also so fast too!](https://discuss.elastic.co/t/why-i-used-wildcard-query-start-with-and-end-with-is-also-so-fast-too/159488)

<div class="topic-metadata">

**Author:** [@ennian001](https://discuss.elastic.co/u/ennian001)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 11:16am UTC](https://discuss.elastic.co/t/why-i-used-wildcard-query-start-with-and-end-with-is-also-so-fast-too/159488 "2018-12-05T11:16:41Z")

</div>

Why I used Wildcard query ，start with " " and end with " " is also so fast too!!! but as the official document says "In order to prevent extremely slow wildcard queries, a wildcard term should not start with one of the …

---

## [Elasticsearch not showing data](https://discuss.elastic.co/t/elasticsearch-not-showing-data/159144)

<div class="topic-metadata">

**Author:** [@Ganesh1](https://discuss.elastic.co/u/Ganesh1)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 10:50am UTC](https://discuss.elastic.co/t/elasticsearch-not-showing-data/159144 "2018-12-05T10:50:55Z")

</div>

I am trying to link postgres with Elasticsearch using logstash. I am see the data in my logstash console. C:\\Users\\Admin\\Downloads\\logstash-6.5.1\\bin\>logstash -f c:\\Users\\Admin\\Desktop\\hardata.config Sending Logstash l…

---

## [How to Upload CSV into kibana through logstash](https://discuss.elastic.co/t/how-to-upload-csv-into-kibana-through-logstash/159237)

<div class="topic-metadata">

**Author:** [@Fiddu1221](https://discuss.elastic.co/u/Fiddu1221)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 10:45am UTC](https://discuss.elastic.co/t/how-to-upload-csv-into-kibana-through-logstash/159237 "2018-12-05T10:45:41Z")

</div>

Hello , I am trying to upload my csv file from the location through logstash and want to display on kibana but I only see my localhost details instead of csv file details:- This is my logstash.conf file vi logstash.con…

---

## [Speed up reindex](https://discuss.elastic.co/t/speed-up-reindex/158252)

<div class="topic-metadata">

**Author:** [@nayun\_oh](https://discuss.elastic.co/u/nayun_oh)\
**Replies:** 1\
**Last updated:** [November 26, 2018, 11:32pm UTC](https://discuss.elastic.co/t/speed-up-reindex/158252 "2018-11-26T23:32:59Z")

</div>

I need to reindex a large index as a backup. But It takes a lot of time. one minute per 2 giga bytes. I have set indices.index buffer size to 70% in elasticsearch.yml and refresh interval to -1. Can you give me some adv…

---

## [Transaction consistency and data integrity in flat index](https://discuss.elastic.co/t/transaction-consistency-and-data-integrity-in-flat-index/159484)

<div class="topic-metadata">

**Author:** [@SankalpSood](https://discuss.elastic.co/u/SankalpSood)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 10:25am UTC](https://discuss.elastic.co/t/transaction-consistency-and-data-integrity-in-flat-index/159484 "2018-12-05T10:25:48Z")

</div>

Hi, to avoid nesting, I made a flat index by combining all the unique ids of all the nested objects. Suppose we have an object A which we has one to many relationship with B which further . Now suppose we have 50,000 re…

---

## [Disadvantages of using nested type over flat type mapping](https://discuss.elastic.co/t/disadvantages-of-using-nested-type-over-flat-type-mapping/159498)

<div class="topic-metadata">

**Author:** [@SankalpSood](https://discuss.elastic.co/u/SankalpSood)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 10:19am UTC](https://discuss.elastic.co/t/disadvantages-of-using-nested-type-over-flat-type-mapping/159498 "2018-12-05T10:19:28Z")

</div>

Please tell me the disadvantages of using nested type mapping in terms of- response time data integrity transaction consistency data lay out querying data

---

## [Relocating motivation](https://discuss.elastic.co/t/relocating-motivation/159502)

<div class="topic-metadata">

**Author:** [@HugoP](https://discuss.elastic.co/u/HugoP)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 10:05am UTC](https://discuss.elastic.co/t/relocating-motivation/159502 "2018-12-05T10:05:21Z")

</div>

Hi, Is it possible to know why Elastic decide to relocate some shards ? Thanks

---

## [Multiple nested queries with the same path](https://discuss.elastic.co/t/multiple-nested-queries-with-the-same-path/157532)

<div class="topic-metadata">

**Author:** [@Barry2222](https://discuss.elastic.co/u/Barry2222)\
**Replies:** 5\
**Last updated:** [December 5, 2018, 9:34am UTC](https://discuss.elastic.co/t/multiple-nested-queries-with-the-same-path/157532 "2018-12-05T09:34:48Z")

</div>

It's my first post so I'd like to say Hi, In my project I have a nested multi-level structure and I'm building a kind of D&D query builder where conditions from any level may be grouped together and any condition may be…

---

## [Taking snapshot in Openshift elasticsearch](https://discuss.elastic.co/t/taking-snapshot-in-openshift-elasticsearch/159460)

<div class="topic-metadata">

**Author:** [@afwsl2003](https://discuss.elastic.co/u/afwsl2003)\
**Replies:** 1\
**Last updated:** [December 5, 2018, 8:36am UTC](https://discuss.elastic.co/t/taking-snapshot-in-openshift-elasticsearch/159460 "2018-12-05T08:36:50Z")

</div>

Hi, I'm trying to create a repository to take snapshot (https://www.elastic.co/guide/en/elasticsearch/reference/2.4/modules-snapshots.html) When I execute the curl PUT command to create the repository I'm getting repos…

---

## [Query Conversion from new to old version](https://discuss.elastic.co/t/query-conversion-from-new-to-old-version/159482)

<div class="topic-metadata">

**Author:** [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 8:16am UTC](https://discuss.elastic.co/t/query-conversion-from-new-to-old-version/159482 "2018-12-05T08:16:44Z")

</div>

Hi, With continuous development on the ES end, we have seen that there are some changes on the ES queries in between different versions. This creates an issue on the application side, requiring some changes in the queri…

---

## [Elasticsearch Highlighting on fields of data type integer, double ,long, float](https://discuss.elastic.co/t/elasticsearch-highlighting-on-fields-of-data-type-integer-double-long-float/159480)

<div class="topic-metadata">

**Author:** [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 7:59am UTC](https://discuss.elastic.co/t/elasticsearch-highlighting-on-fields-of-data-type-integer-double-long-float/159480 "2018-12-05T07:59:25Z")

</div>

Hi all, I have indexed a field as both double and keyword. Searching is working fine but i have issues with highlighting. As i see, highlighting is not happening over datatypes other than text fields. My mapping file i…

---

## [In java,how do you query an index by alias](https://discuss.elastic.co/t/in-java-how-do-you-query-an-index-by-alias/159447)

<div class="topic-metadata">

**Author:** [@fookfook](https://discuss.elastic.co/u/fookfook)\
**Replies:** 4\
**Last updated:** [December 5, 2018, 5:42am UTC](https://discuss.elastic.co/t/in-java-how-do-you-query-an-index-by-alias/159447 "2018-12-05T05:42:36Z")

</div>

In JAVA, if the alias of the index my-index is my-alias, how do I query my-index based on my-alias That is, how do you query an index by alias Is it the following? GetAliasesResponse a=esClient.admin().indices() .…

---

## [If forcemerge is run serial, why are there so many tasks?](https://discuss.elastic.co/t/if-forcemerge-is-run-serial-why-are-there-so-many-tasks/159400)

<div class="topic-metadata">

**Author:** [@memelet](https://discuss.elastic.co/u/memelet)\
**Replies:** 6\
**Last updated:** [December 5, 2018, 5:01am UTC](https://discuss.elastic.co/t/if-forcemerge-is-run-serial-why-are-there-so-many-tasks/159400 "2018-12-05T05:01:32Z")

</div>

I have several cron jobs that run curator to forcemerge indices. I understood that forcemerge would happen serially. But it seems there are lots of active (not pending) tasks. Is this normal? eg: indices:admin/forcemer…

---

## [Elasticsearch index tempalte aliases](https://discuss.elastic.co/t/elasticsearch-index-tempalte-aliases/159071)

<div class="topic-metadata">

**Author:** [@test987654123](https://discuss.elastic.co/u/test987654123)\
**Replies:** 2\
**Last updated:** [December 5, 2018, 4:03am UTC](https://discuss.elastic.co/t/elasticsearch-index-tempalte-aliases/159071 "2018-12-05T04:03:22Z")

</div>

Hi, Every body, I want to implement an automatic alias based on the field when the index is created. This is a index template setting configuartion; { "order": 5, "version": 60001, "index\_patterns": \[ "debug\*" \], …

---

## [Keyword or Analyzed text in logs](https://discuss.elastic.co/t/keyword-or-analyzed-text-in-logs/159446)

<div class="topic-metadata">

**Author:** [@pk.241011](https://discuss.elastic.co/u/pk.241011)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 4:02am UTC](https://discuss.elastic.co/t/keyword-or-analyzed-text-in-logs/159446 "2018-12-05T04:02:33Z")

</div>

I use elastic kibana combo mainly to handle logs. Our logs are machine generated and hence it makes little sense to get the text like function names or operations name analyzed. I am thinking of putting in a dynamic tem…

---

## [Requests Containing an Array of Custom Routing Values](https://discuss.elastic.co/t/requests-containing-an-array-of-custom-routing-values/159435)

<div class="topic-metadata">

**Author:** [@Chinmaya\_Poswalia](https://discuss.elastic.co/u/Chinmaya_Poswalia)\
**Replies:** 6\
**Last updated:** [December 5, 2018, 3:54am UTC](https://discuss.elastic.co/t/requests-containing-an-array-of-custom-routing-values/159435 "2018-12-05T03:54:05Z")

</div>

Hi Guys, We have a cluster partitioned by a certain key for which we are using custom routing. We now are having a use-case where we have to request data across different key with the key list to be large. So wanted to …

---

## [6.3.2 to 6.5.0 - can't get cluster nodes to come up with SSL - Google Cloud](https://discuss.elastic.co/t/6-3-2-to-6-5-0-cant-get-cluster-nodes-to-come-up-with-ssl-google-cloud/159252)

<div class="topic-metadata">

**Author:** [@liquid\_es](https://discuss.elastic.co/u/liquid_es)\
**Replies:** 8\
**Last updated:** [December 5, 2018, 3:46am UTC](https://discuss.elastic.co/t/6-3-2-to-6-5-0-cant-get-cluster-nodes-to-come-up-with-ssl-google-cloud/159252 "2018-12-05T03:46:33Z")

</div>

Trying spin up a cluster in either 6.4.0 or 6.5.0 with a configuration that works on 6.3.2: Anonymous user mapped to superuser role http and transport traffic SSL encrypted Relevant parts of elasticsearch.yml …

---

## [Elasticsearch cluster health intermittently flaps between 'GREEN' and 'YELLOW'](https://discuss.elastic.co/t/elasticsearch-cluster-health-intermittently-flaps-between-green-and-yellow/157136)

<div class="topic-metadata">

**Author:** [@kriket](https://discuss.elastic.co/u/kriket)\
**Replies:** 8\
**Last updated:** [December 5, 2018, 12:38am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-health-intermittently-flaps-between-green-and-yellow/157136 "2018-12-05T00:38:07Z")

</div>

Elasticsearch version = 5.6.8 We are running a 7 node cluster with "ZERO" replicas, like this: { "cluster\_name": "my\_cluster", "status": "green", "timed\_out": false, "number\_of\_nodes": 7, "number\_of\_data\_nodes": 7…

---

## [Slow bulk deletes](https://discuss.elastic.co/t/slow-bulk-deletes/159404)

<div class="topic-metadata">

**Author:** [@ravib](https://discuss.elastic.co/u/ravib)\
**Replies:** 13\
**Last updated:** [December 4, 2018, 11:57pm UTC](https://discuss.elastic.co/t/slow-bulk-deletes/159404 "2018-12-04T23:57:55Z")

</div>

Hello I am using elasticsearch 5.6 on a 3 node configuration, lately my bulk delete requests are being processed very very slow, it took almost 2 mins to delete 200 records, my elastic cluster looks fine, nothing specif…

---

## [How to transfer data between clusters](https://discuss.elastic.co/t/how-to-transfer-data-between-clusters/159423)

<div class="topic-metadata">

**Author:** [@Michael\_Be\_eri](https://discuss.elastic.co/u/Michael_Be_eri)\
**Replies:** 1\
**Last updated:** [December 4, 2018, 10:41pm UTC](https://discuss.elastic.co/t/how-to-transfer-data-between-clusters/159423 "2018-12-04T22:41:56Z")

</div>

I was using a free 14-day account in elastic cloud and now i got a new cluster of ES, how can i copy all the logs from the first to the second, so i will not lose data

---

## [Elasticsearch - Projects](https://discuss.elastic.co/t/elasticsearch-projects/159408)

<div class="topic-metadata">

**Author:** [@Sean\_Patrick](https://discuss.elastic.co/u/Sean_Patrick)\
**Replies:** 5\
**Last updated:** [December 4, 2018, 10:00pm UTC](https://discuss.elastic.co/t/elasticsearch-projects/159408 "2018-12-04T22:00:50Z")

</div>

From a few other customers, I’ve heard that Elasticsearch technology is very hard to implement, more proprietary (like a Cloudera) and the use cases are narrow and not in production environments. What has been your exper…

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

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