# Elasticsearch

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

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

**Page:** 1505

---

## [How can we reindex with existing documents to a new type along with already existing types using painless](https://discuss.elastic.co/t/how-can-we-reindex-with-existing-documents-to-a-new-type-along-with-already-existing-types-using-painless/154085)

<div class="topic-metadata">

**Author:** [@Shivaprasad](https://discuss.elastic.co/u/Shivaprasad)\
**Replies:** 3\
**Last updated:** [October 26, 2018, 3:32pm UTC](https://discuss.elastic.co/t/how-can-we-reindex-with-existing-documents-to-a-new-type-along-with-already-existing-types-using-painless/154085 "2018-10-26T15:32:19Z")

</div>

In an index I have 3 types type A, type B, type C along with their properties, I have to reindex with a new type D using painless. I am using Elasticsearch version 5.6.9

---

## [HDFS Repository and Name Nodes setting](https://discuss.elastic.co/t/hdfs-repository-and-name-nodes-setting/151242)

<div class="topic-metadata">

**Author:** [@ajay\_bh111](https://discuss.elastic.co/u/ajay_bh111)\
**Replies:** 5\
**Last updated:** [October 26, 2018, 2:45pm UTC](https://discuss.elastic.co/t/hdfs-repository-and-name-nodes-setting/151242 "2018-10-26T14:45:10Z")

</div>

I could create and do snapshot /restore successfully with hdfs repo using kerbros authentication. However in the config If I use namenode setting as defined in hadoop hdfs-site.xml file:, it fails with error {"error":…

---

## [Minimize garbage collection](https://discuss.elastic.co/t/minimize-garbage-collection/153718)

<div class="topic-metadata">

**Author:** [@surajdalvi](https://discuss.elastic.co/u/surajdalvi)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 2:56pm UTC](https://discuss.elastic.co/t/minimize-garbage-collection/153718 "2018-10-26T14:56:34Z")

</div>

Hi, How to Minimize garbage collection memory in elastic cluster?

---

## [Keyword\_marker and stemmer\_override with Hunspell Stemmers](https://discuss.elastic.co/t/keyword-marker-and-stemmer-override-with-hunspell-stemmers/153742)

<div class="topic-metadata">

**Author:** [@cads](https://discuss.elastic.co/u/cads)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 7:50am UTC](https://discuss.elastic.co/t/keyword-marker-and-stemmer-override-with-hunspell-stemmers/153742 "2018-10-24T07:50:22Z")

</div>

Do keyword\_marker and stemmer\_override work with Hunspell stemmers?

---

## [Searching for Documents containing Highlighting](https://discuss.elastic.co/t/searching-for-documents-containing-highlighting/153320)

<div class="topic-metadata">

**Author:** [@BirnamWood](https://discuss.elastic.co/u/BirnamWood)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 2:39pm UTC](https://discuss.elastic.co/t/searching-for-documents-containing-highlighting/153320 "2018-10-26T14:39:06Z")

</div>

Hi all, anyone come up with a method of searching a dataset for documents that have highlighting in them? It’s for a classification project? Any molten droplets of wisdom most appreciated ! Cheers colin

---

## [How to use Math operations in actions with ctx.payload.\*](https://discuss.elastic.co/t/how-to-use-math-operations-in-actions-with-ctx-payload/153673)

<div class="topic-metadata">

**Author:** [@shiv94](https://discuss.elastic.co/u/shiv94)\
**Replies:** 6\
**Last updated:** [October 25, 2018, 6:40am UTC](https://discuss.elastic.co/t/how-to-use-math-operations-in-actions-with-ctx-payload/153673 "2018-10-25T06:40:24Z")

</div>

Hey, how do I use math operations like multiplication () in actions with ctx.payload. for example, {{#..}}{{\_source.system.filesystem.used.pct}}{{/..}} gives value 0.7 but I want 0.7\*100 = 70 and also how do I convert …

---

## [Issue using reindex api on 6.2.3](https://discuss.elastic.co/t/issue-using-reindex-api-on-6-2-3/154202)

<div class="topic-metadata">

**Author:** [@Laurent\_Leseigneur](https://discuss.elastic.co/u/Laurent_Leseigneur)\
**Replies:** 2\
**Last updated:** [October 26, 2018, 1:50pm UTC](https://discuss.elastic.co/t/issue-using-reindex-api-on-6-2-3/154202 "2018-10-26T13:50:25Z")

</div>

Hi, i get this stack while using \_reindex API to do a simple rename operation using java low level client on elastic 6.2.3 OSS in a docker container : GET \_reindex/?wait\_for\_completion=false { "source": { "index":…

---

## [Recommended architectures for our production](https://discuss.elastic.co/t/recommended-architectures-for-our-production/153792)

<div class="topic-metadata">

**Author:** [@Rohlik](https://discuss.elastic.co/u/Rohlik)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 12:12pm UTC](https://discuss.elastic.co/t/recommended-architectures-for-our-production/153792 "2018-10-24T12:12:14Z")

</div>

Hello community, we are planning new architecture for our Elastic stack and we need some advices from you. Currently we have multiple daily indexes which contains aplication logs, from ~20mb to 1gb each. It is around ~…

---

## [(Storing products) Storing and retrieving items with subsets of configuration](https://discuss.elastic.co/t/storing-products-storing-and-retrieving-items-with-subsets-of-configuration/154196)

<div class="topic-metadata">

**Author:** [@mrncgirc](https://discuss.elastic.co/u/mrncgirc)\
**Replies:** 3\
**Last updated:** [October 26, 2018, 1:36pm UTC](https://discuss.elastic.co/t/storing-products-storing-and-retrieving-items-with-subsets-of-configuration/154196 "2018-10-26T13:36:10Z")

</div>

Using Elasticsearch for storing product data Use case We are using Elasticsearch to store "complex" products. Specifically I store Rims and Tire products. Mapping We currently store a "group" of products per. hit. To be…

---

## [After moving a shard related files do not disappear from the disk](https://discuss.elastic.co/t/after-moving-a-shard-related-files-do-not-disappear-from-the-disk/154203)

<div class="topic-metadata">

**Author:** [@theistian](https://discuss.elastic.co/u/theistian)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 1:32pm UTC](https://discuss.elastic.co/t/after-moving-a-shard-related-files-do-not-disappear-from-the-disk/154203 "2018-10-26T13:32:00Z")

</div>

I have a big index with ~16Gb shards. Recently I moved one of these big shards to less disk constrained node. The storage in the new node was reduced the expected size, and the shard was exchanged by a smaller one. But t…

---

## [Unable to Start Elasticsearch after installation](https://discuss.elastic.co/t/unable-to-start-elasticsearch-after-installation/153971)

<div class="topic-metadata">

**Author:** [@Micheal25](https://discuss.elastic.co/u/Micheal25)\
**Replies:** 5\
**Last updated:** [October 26, 2018, 1:24pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-after-installation/153971 "2018-10-26T13:24:14Z")

</div>

Hello Team, I have installed the new rpm package( v6.4.2) on to a Redhat linux 7 machine, after the installation, i changes the path.data and path.log to custom location and changed the ES\_tempdir to customized location …

---

## [Rest Client TCP connection](https://discuss.elastic.co/t/rest-client-tcp-connection/154206)

<div class="topic-metadata">

**Author:** [@ananth](https://discuss.elastic.co/u/ananth)\
**Replies:** 0\
**Last updated:** [October 26, 2018, 1:22pm UTC](https://discuss.elastic.co/t/rest-client-tcp-connection/154206 "2018-10-26T13:22:33Z")

</div>

Hi We would like to know how many tcp connection will the default rest client will open ? We are planning to move es5.6.11 from es2.3.2. We are seeing indexing performance degradation. So far we used node client for ind…

---

## [Installing and refering a plugin or bundle](https://discuss.elastic.co/t/installing-and-refering-a-plugin-or-bundle/153977)

<div class="topic-metadata">

**Author:** [@Kim\_Rauff\_Schurmann](https://discuss.elastic.co/u/Kim_Rauff_Schurmann)\
**Replies:** 2\
**Last updated:** [October 26, 2018, 1:19pm UTC](https://discuss.elastic.co/t/installing-and-refering-a-plugin-or-bundle/153977 "2018-10-26T13:19:08Z")

</div>

Hi guys After creating and uploading a plugin or a bundle, how do I: Install it on my deployment? I cant see it in the list of plugins - is it automatically installed if it is a bundle after a restart? How do I refer …

---

## [I can query in kibana, but got error query with an elasticsearch client](https://discuss.elastic.co/t/i-can-query-in-kibana-but-got-error-query-with-an-elasticsearch-client/154119)

<div class="topic-metadata">

**Author:** [@ge\_gary](https://discuss.elastic.co/u/ge_gary)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 1:14pm UTC](https://discuss.elastic.co/t/i-can-query-in-kibana-but-got-error-query-with-an-elasticsearch-client/154119 "2018-10-26T13:14:37Z")

</div>

query in kibana was success error with An Elasticsearch client for the Go programming language. \` { "type":"search\_phase\_execution\_exception", "reason":"", "phase":"fetch", "grouped":true, "caused\_by":{ "re…

---

## [Scripted field as string combined with a number](https://discuss.elastic.co/t/scripted-field-as-string-combined-with-a-number/152249)

<div class="topic-metadata">

**Author:** [@John\_Morrison](https://discuss.elastic.co/u/John_Morrison)\
**Replies:** 2\
**Last updated:** [October 26, 2018, 12:20pm UTC](https://discuss.elastic.co/t/scripted-field-as-string-combined-with-a-number/152249 "2018-10-26T12:20:48Z")

</div>

doc\['chrom.keyword'\].value + ':' + ' ' + doc\['start'\].value + ' ' + doc\['alt.keyword'\].value + ' / ' + doc\['ref.keyword'\].value chrom=string = chr1 start=double = 43814975 alt=string = C ref=string = T scripted fie…

---

## [Not getting data in search](https://discuss.elastic.co/t/not-getting-data-in-search/154015)

<div class="topic-metadata">

**Author:** [@vll\_genius](https://discuss.elastic.co/u/vll_genius)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 12:18pm UTC](https://discuss.elastic.co/t/not-getting-data-in-search/154015 "2018-10-26T12:18:43Z")

</div>

I have configured elasticsearch with my app and elasticsearch seems working fine getting response when doing curl localhost:9200 but in my app i am not getting data in response

---

## [Find coordinates exist within a polygon map](https://discuss.elastic.co/t/find-coordinates-exist-within-a-polygon-map/154126)

<div class="topic-metadata">

**Author:** [@inandi](https://discuss.elastic.co/u/inandi)\
**Replies:** 5\
**Last updated:** [October 26, 2018, 12:05pm UTC](https://discuss.elastic.co/t/find-coordinates-exist-within-a-polygon-map/154126 "2018-10-26T12:05:32Z")

</div>

suppose my ES has 10 coordinates stored. now I have drawn a shape which coordinates points are A, B, C, D. Now Es had 10 coordinates, 2 of them are inside this shape. need a ES query to get those coordinates. is it possi…

---

## [Find cordinates with polygon map](https://discuss.elastic.co/t/find-cordinates-with-polygon-map/154120)

<div class="topic-metadata">

**Author:** [@Gobinda\_Nandi1](https://discuss.elastic.co/u/Gobinda_Nandi1)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 11:45am UTC](https://discuss.elastic.co/t/find-cordinates-with-polygon-map/154120 "2018-10-26T11:45:25Z")

</div>

Find cordinates with polygon map

---

## [How to configure HttpNode on elasticsearch](https://discuss.elastic.co/t/how-to-configure-httpnode-on-elasticsearch/153726)

<div class="topic-metadata">

**Author:** [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Replies:** 12\
**Last updated:** [October 26, 2018, 11:44am UTC](https://discuss.elastic.co/t/how-to-configure-httpnode-on-elasticsearch/153726 "2018-10-26T11:44:47Z")

</div>

HI, I want to create one httpnode on elasticsearch. How can i configure that in elasticsearch.yml Please anyone can help me on this.

---

## [Index\_already\_exists\_exception and this analyzer \[my\_analyzer\] not found for field \[title\]](https://discuss.elastic.co/t/index-already-exists-exception-and-this-analyzer-my-analyzer-not-found-for-field-title/154180)

<div class="topic-metadata">

**Author:** [@dusan\_b\_bozovic](https://discuss.elastic.co/u/dusan_b_bozovic)\
**Replies:** 0\
**Last updated:** [October 26, 2018, 10:40am UTC](https://discuss.elastic.co/t/index-already-exists-exception-and-this-analyzer-my-analyzer-not-found-for-field-title/154180 "2018-10-26T10:40:22Z")

</div>

Hello i keep getting this error index\_already\_exists\_exception I am creating a custom analyzer without properties object, then i am creating docs and when i try to add properties in my analyzer, i am geeting an error i…

---

## [I got an error about geo\_point of kibana](https://discuss.elastic.co/t/i-got-an-error-about-geo-point-of-kibana/154185)

<div class="topic-metadata">

**Author:** [@damonops](https://discuss.elastic.co/u/damonops)\
**Replies:** 0\
**Last updated:** [October 26, 2018, 11:12am UTC](https://discuss.elastic.co/t/i-got-an-error-about-geo-point-of-kibana/154185 "2018-10-26T11:12:04Z")

</div>

My filebeat config: setup.template.name: "jkb-api" setup.template.pattern: "jkb-api-\*" setup.template.fields: "/etc/filebeat/fields.yml" /// The default fields.yml setup.template.overwrite: true Kibana's 'Dev-Tools': …

---

## [Cluster stopped working but was working fine](https://discuss.elastic.co/t/cluster-stopped-working-but-was-working-fine/153635)

<div class="topic-metadata">

**Author:** [@grant\_donovan](https://discuss.elastic.co/u/grant_donovan)\
**Replies:** 7\
**Last updated:** [October 26, 2018, 10:50am UTC](https://discuss.elastic.co/t/cluster-stopped-working-but-was-working-fine/153635 "2018-10-26T10:50:43Z")

</div>

I have an Elasticsearch cluster. This was all working but now seems to have stopped working properly The head no longer works and gives the message: cluster health: not connected This command: http://localhost:9200/\_c…

---

## [Exclude fields from search in Elasticsearch](https://discuss.elastic.co/t/exclude-fields-from-search-in-elasticsearch/154171)

<div class="topic-metadata">

**Author:** [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Replies:** 0\
**Last updated:** [October 26, 2018, 10:09am UTC](https://discuss.elastic.co/t/exclude-fields-from-search-in-elasticsearch/154171 "2018-10-26T10:09:39Z")

</div>

Hi all, I am developing a free text search which can search over 150 fields, but I want to exclude this search on about 5 fields. Is there a method to exclude the search on particular set of fields? One method is to m…

---

## [Filtering out stop words at search time only](https://discuss.elastic.co/t/filtering-out-stop-words-at-search-time-only/153144)

<div class="topic-metadata">

**Author:** [@newnewb](https://discuss.elastic.co/u/newnewb)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 9:20am UTC](https://discuss.elastic.co/t/filtering-out-stop-words-at-search-time-only/153144 "2018-10-26T09:20:38Z")

</div>

Problem: I'm using a simple match query to return some results with filtered stop words. But if a stop word is searched for with a simple match query, it will have 0 hits since it's unable to match stop words which are …

---

## [Failed to execute bulk item cannot be changed from type](https://discuss.elastic.co/t/failed-to-execute-bulk-item-cannot-be-changed-from-type/153445)

<div class="topic-metadata">

**Author:** [@Jishnu\_Prathap](https://discuss.elastic.co/u/Jishnu_Prathap)\
**Replies:** 2\
**Last updated:** [October 26, 2018, 9:19am UTC](https://discuss.elastic.co/t/failed-to-execute-bulk-item-cannot-be-changed-from-type/153445 "2018-10-26T09:19:14Z")

</div>

Hi I am getting the following error while reindexing the elastic index using postman. \[2018-10-22T12:39:35,394\]\[DEBUG\]\[o.e.a.b.TransportShardBulkAction\] \[es-prodnode-1\] \[rcyc\_temp\_10\_22\]\[2\] failed to execute bulk it…

---

## [Since Filebeat stopped, Kibana has been showing that Filebeat exists](https://discuss.elastic.co/t/since-filebeat-stopped-kibana-has-been-showing-that-filebeat-exists/153702)

<div class="topic-metadata">

**Author:** [@zooz](https://discuss.elastic.co/u/zooz)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 9:17am UTC](https://discuss.elastic.co/t/since-filebeat-stopped-kibana-has-been-showing-that-filebeat-exists/153702 "2018-10-26T09:17:46Z")

</div>

Filebeat stopped running, and Kibana didn't stop showing until an hour later. May I ask what values are to be set? Can they be displayed quickly?

---

## [Elasticsearch connectin refused](https://discuss.elastic.co/t/elasticsearch-connectin-refused/153876)

<div class="topic-metadata">

**Author:** [@hitardha](https://discuss.elastic.co/u/hitardha)\
**Replies:** 8\
**Last updated:** [October 26, 2018, 8:55am UTC](https://discuss.elastic.co/t/elasticsearch-connectin-refused/153876 "2018-10-26T08:55:29Z")

</div>

Hi, I have installed elasticsearch But when i am trying to run curl it is resulting to the error "connection refused" following are the few observations. If i configure network.host to localhost in elasticsearch.yml it…

---

## [Unexpected result with nested boolean query](https://discuss.elastic.co/t/unexpected-result-with-nested-boolean-query/154058)

<div class="topic-metadata">

**Author:** [@Martin\_Kruger](https://discuss.elastic.co/u/Martin_Kruger)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 8:24am UTC](https://discuss.elastic.co/t/unexpected-result-with-nested-boolean-query/154058 "2018-10-26T08:24:39Z")

</div>

Hi, I created a new index curl -X PUT "localhost:9200/my\_index" -H 'Content-Type: application/json' -d' { "mappings": { "my\_type" : { "properties" : { "article" : { …

---

## [ElasticSearch 6.2.4 java.lang.IllegalArgumentException: Document contains at least one immense term](https://discuss.elastic.co/t/elasticsearch-6-2-4-java-lang-illegalargumentexception-document-contains-at-least-one-immense-term/154122)

<div class="topic-metadata">

**Author:** [@Prateek\_Gupta](https://discuss.elastic.co/u/Prateek_Gupta)\
**Replies:** 2\
**Last updated:** [October 26, 2018, 8:06am UTC](https://discuss.elastic.co/t/elasticsearch-6-2-4-java-lang-illegalargumentexception-document-contains-at-least-one-immense-term/154122 "2018-10-26T08:06:09Z")

</div>

I am using Elasticsearch 6.2.4 and I am trying to index data in elasticsearch. Here is the template that I am using: { "order": 0, "template": "logs-\*", "settings": { "index": { "analysis": { …

---

## [ES is giving error](https://discuss.elastic.co/t/es-is-giving-error/153716)

<div class="topic-metadata">

**Author:** [@Gobinda\_Nandi1](https://discuss.elastic.co/u/Gobinda_Nandi1)\
**Replies:** 2\
**Last updated:** [October 26, 2018, 7:17am UTC](https://discuss.elastic.co/t/es-is-giving-error/153716 "2018-10-26T07:17:04Z")

</div>

curl -XPOST "http://localhost:9200/myindex/tweet/" -d' { "content": "Hello World!", "postDate": "2009-11-15T14:12:12" }' {"error":"Content-Type header \[application/x-www-form-urlencoded\] is not supported","statu…

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

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