# Elasticsearch

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

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

**Page:** 1546

---

## [How to delete a search template](https://discuss.elastic.co/t/how-to-delete-a-search-template/148855)

<div class="topic-metadata">

**Author:** [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 7:12am UTC](https://discuss.elastic.co/t/how-to-delete-a-search-template/148855 "2018-09-18T07:12:23Z")

</div>

How to delete a search template that is already created

---

## [Need assitance for creating scripted fileds](https://discuss.elastic.co/t/need-assitance-for-creating-scripted-fileds/148933)

<div class="topic-metadata">

**Author:** [@Nithani25](https://discuss.elastic.co/u/Nithani25)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 7:02am UTC](https://discuss.elastic.co/t/need-assitance-for-creating-scripted-fileds/148933 "2018-09-18T07:02:45Z")

</div>

Hi Team, I have greedydata field in my message split up, which looks something like below. Default Message : {"userId":"sekar","transactionType":"BUY","product name":"JBL C100SI In-Ear Headphones with Mic","purchase am…

---

## [Bootstrap checks failed ES 6.3.1](https://discuss.elastic.co/t/bootstrap-checks-failed-es-6-3-1/148923)

<div class="topic-metadata">

**Author:** [@Abdullah\_aldawsari](https://discuss.elastic.co/u/Abdullah_aldawsari)\
**Replies:** 4\
**Last updated:** [September 18, 2018, 6:51am UTC](https://discuss.elastic.co/t/bootstrap-checks-failed-es-6-3-1/148923 "2018-09-18T06:51:19Z")

</div>

Hi, Environment: ES 6.3.1 (installed via RPM) I'm trying to add another node to my cluster which is only one node but it's gave me the following error: \*NOTE: "10.xx.xx.xx" the current node , "10.yy.yy.yy the new n…

---

## [Configure scheduled watcher against monitoring indices which only looks at the latest X minutes of data](https://discuss.elastic.co/t/configure-scheduled-watcher-against-monitoring-indices-which-only-looks-at-the-latest-x-minutes-of-data/148241)

<div class="topic-metadata">

**Author:** [@gautu7](https://discuss.elastic.co/u/gautu7)\
**Replies:** 6\
**Last updated:** [September 18, 2018, 6:48am UTC](https://discuss.elastic.co/t/configure-scheduled-watcher-against-monitoring-indices-which-only-looks-at-the-latest-x-minutes-of-data/148241 "2018-09-18T06:48:22Z")

</div>

Hi, I have a separate monitoring cluster which is housing all the xpack.monitoring data being sent from the production elasticsearch cluster. I want to put this monitoring data to good use by creating some alerts so I t…

---

## [PR - 18094 - Don't try to compute completion stats on a closed reader](https://discuss.elastic.co/t/pr-18094-dont-try-to-compute-completion-stats-on-a-closed-reader/148925)

<div class="topic-metadata">

**Author:** [@Deb](https://discuss.elastic.co/u/Deb)\
**Replies:** 3\
**Last updated:** [September 18, 2018, 6:43am UTC](https://discuss.elastic.co/t/pr-18094-dont-try-to-compute-completion-stats-on-a-closed-reader/148925 "2018-09-18T06:43:22Z")

</div>

HI As mentioned in the below PR - Can this cause problem if store type is specified as default\_fs for Elasticsearch running on Ubuntu 14.04 ?

---

## [Unable to search elastic search (code=exited, status=2)](https://discuss.elastic.co/t/unable-to-search-elastic-search-code-exited-status-2/148915)

<div class="topic-metadata">

**Author:** [@suhas-ingrainhub](https://discuss.elastic.co/u/suhas-ingrainhub)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 4:54am UTC](https://discuss.elastic.co/t/unable-to-search-elastic-search-code-exited-status-2/148915 "2018-09-18T04:54:45Z")

</div>

Elasticsearch version: 1.4.4 JVM version: 1.8.0\_171 OS version: Ubuntu 16.04LTS (Linux 4.13.0-41-generic #46~16.04.1-Ubuntu SMP Thu May 3 10:06:43 UTC 2018 x86\_64 x86\_64 x86\_64 GNU/Linux) Issue: Unable to start elasti…

---

## [How to exclude many documents](https://discuss.elastic.co/t/how-to-exclude-many-documents/148899)

<div class="topic-metadata">

**Author:** [@Nenad](https://discuss.elastic.co/u/Nenad)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 6:12am UTC](https://discuss.elastic.co/t/how-to-exclude-many-documents/148899 "2018-09-18T06:12:33Z")

</div>

I have indexed all Users (10 million records) and I plan to index a Table that store visits of a user to another user. I wish to show to the User 100 users they have never visited. For some users I have to exclude up …

---

## [Syncing Elasticsearch with RDBMS](https://discuss.elastic.co/t/syncing-elasticsearch-with-rdbms/148921)

<div class="topic-metadata">

**Author:** [@amit.patra](https://discuss.elastic.co/u/amit.patra)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 6:09am UTC](https://discuss.elastic.co/t/syncing-elasticsearch-with-rdbms/148921 "2018-09-18T06:09:31Z")

</div>

Hi, Our production database is a RDBMS. We want to setup ES , such a way that in every 5 mints the data gets updated from production database. Can we configure using any tool ? Thanks,

---

## [Can I change Index "creation\_date"?](https://discuss.elastic.co/t/can-i-change-index-creation-date/148911)

<div class="topic-metadata">

**Author:** [@af615dbd55cac2cacf32](https://discuss.elastic.co/u/af615dbd55cac2cacf32)\
**Replies:** 4\
**Last updated:** [September 18, 2018, 6:01am UTC](https://discuss.elastic.co/t/can-i-change-index-creation-date/148911 "2018-09-18T06:01:53Z")

</div>

"index001\_20180918": { "state": "open", "settings": { "index": { "routing": { "allocation": { "require": { "box\_type": "hot" } } }, "number\_of\_shards": "1", "provided\_name": "index001\_20180918", "creation\_da…

---

## [How can I install esrally to different directory?](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653)

<div class="topic-metadata">

**Author:** [@Micah\_Hunsberger](https://discuss.elastic.co/u/Micah_Hunsberger)\
**Replies:** 5\
**Last updated:** [September 18, 2018, 5:55am UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653 "2018-09-18T05:55:49Z")

</div>

right now, esrally is installed to the home directory, which seems to be the default. But the home directory on my machine is on the boot drive, and I would like to have esrally install and run elasticsearch in a differe…

---

## [Elasticsearch snapshots and storing over S3 bucket](https://discuss.elastic.co/t/elasticsearch-snapshots-and-storing-over-s3-bucket/148918)

<div class="topic-metadata">

**Author:** [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 5:08am UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-and-storing-over-s3-bucket/148918 "2018-09-18T05:08:36Z")

</div>

Hello Team, I want to take the snapshots of my elasticsearch indexes and store over S3 bucket. I have 5 index pattern like filebeat-, syslog- etc. So i want to store them over S3 according to current index pattern so i …

---

## [Query dsl max(date)-min(date)](https://discuss.elastic.co/t/query-dsl-max-date-min-date/148913)

<div class="topic-metadata">

**Author:** [@sureshboiina](https://discuss.elastic.co/u/sureshboiina)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 4:36am UTC](https://discuss.elastic.co/t/query-dsl-max-date-min-date/148913 "2018-09-18T04:36:35Z")

</div>

hi, sample id,reqtime,resptime,batch 1,18/9/2018 2:30, 18/9/2018 2:31,batch-44 2,18/9/2018 2:32, 18/9/2018 2:33,batch-44 result: 18/9/2018 2:33 - 18/9/2018 2:30 = 180sec i want prepare query for this is there any w…

---

## [Plugin development for Elasticsearch 6.3](https://discuss.elastic.co/t/plugin-development-for-elasticsearch-6-3/148904)

<div class="topic-metadata">

**Author:** [@varunarathinam](https://discuss.elastic.co/u/varunarathinam)\
**Replies:** 1\
**Last updated:** [September 18, 2018, 2:06am UTC](https://discuss.elastic.co/t/plugin-development-for-elasticsearch-6-3/148904 "2018-09-18T02:06:10Z")

</div>

Hi, I'm trying to create plugin, which i was intially started add my own plugin to elasticsearch 6.3. i didnt get any reference links or documents for developing plugin elasticsearch. can you please suggest or give som…

---

## [Long GC on one node seems to block writes to other nodes](https://discuss.elastic.co/t/long-gc-on-one-node-seems-to-block-writes-to-other-nodes/148900)

<div class="topic-metadata">

**Author:** [@martiansnoop](https://discuss.elastic.co/u/martiansnoop)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 12:19am UTC](https://discuss.elastic.co/t/long-gc-on-one-node-seems-to-block-writes-to-other-nodes/148900 "2018-09-18T00:19:32Z")

</div>

ES version: 6.2 Short summary: A data node not responding quickly to cluster state update requests from the master node (due to long GC on the data node) seems to stop the indexing of new data to other nodes. I want to …

---

## [Using single certificate which contains multiple SANs](https://discuss.elastic.co/t/using-single-certificate-which-contains-multiple-sans/148469)

<div class="topic-metadata">

**Author:** [@pprasad](https://discuss.elastic.co/u/pprasad)\
**Replies:** 3\
**Last updated:** [September 17, 2018, 8:42pm UTC](https://discuss.elastic.co/t/using-single-certificate-which-contains-multiple-sans/148469 "2018-09-17T20:42:32Z")

</div>

Is it possible to use a single certificate (which contains multiple SANs) in all the nodes in 6.3 Elasticsearch cluster? (I want to use xpack.ssl.verification\_mode=full) For example, I have a 5 node cluster and my cert…

---

## [GET API with refresh call](https://discuss.elastic.co/t/get-api-with-refresh-call/148887)

<div class="topic-metadata">

**Author:** [@silvina](https://discuss.elastic.co/u/silvina)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 8:20pm UTC](https://discuss.elastic.co/t/get-api-with-refresh-call/148887 "2018-09-17T20:20:35Z")

</div>

I want to use the GET API but I realise that a refresh call is made every time and it causes heavy performance problems. The first question is why is a refresh necessary? (I think that the request go to the primary shard…

---

## [Problem Computing Euclidean Distance using script score query](https://discuss.elastic.co/t/problem-computing-euclidean-distance-using-script-score-query/148823)

<div class="topic-metadata">

**Author:** [@Vaibhav\_Thapliyal](https://discuss.elastic.co/u/Vaibhav_Thapliyal)\
**Replies:** 7\
**Last updated:** [September 17, 2018, 8:02pm UTC](https://discuss.elastic.co/t/problem-computing-euclidean-distance-using-script-score-query/148823 "2018-09-17T20:02:58Z")

</div>

Hi Everyone, I am trying to build a reverse image/Image Similarity functionality using Elasticsearch. I have successfully indexed the feature vectors in Elasticsearch as an array which looks something like this: "featu…

---

## [SERVICE\_UNAVAILABLE/1/state not recovered](https://discuss.elastic.co/t/service-unavailable-1-state-not-recovered/148883)

<div class="topic-metadata">

**Author:** [@bdobsonca](https://discuss.elastic.co/u/bdobsonca)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 7:32pm UTC](https://discuss.elastic.co/t/service-unavailable-1-state-not-recovered/148883 "2018-09-17T19:32:57Z")

</div>

I apologize for the possible answered question but none of the answered seemed to help. This happened after no more than a restart of the server for a kernel update: Elasticsearch: 6.4.0 \[2018-09-17T15:09:05,036\]\[WARN …

---

## [How to create a role that solely has the ability to add data, but not inspect delete or update data?](https://discuss.elastic.co/t/how-to-create-a-role-that-solely-has-the-ability-to-add-data-but-not-inspect-delete-or-update-data/148389)

<div class="topic-metadata">

**Author:** [@EvanR](https://discuss.elastic.co/u/EvanR)\
**Replies:** 0\
**Last updated:** [September 12, 2018, 11:09pm UTC](https://discuss.elastic.co/t/how-to-create-a-role-that-solely-has-the-ability-to-add-data-but-not-inspect-delete-or-update-data/148389 "2018-09-12T23:09:58Z")

</div>

Hi, everyone! I am trying to figure out how to create a role/privilege-set that allows only for the addition of data to the elastic search channel, not deletion or updating. For context, the use case is that we would li…

---

## [How to improve accuracy of aggregation doc\_count](https://discuss.elastic.co/t/how-to-improve-accuracy-of-aggregation-doc-count/148876)

<div class="topic-metadata">

**Author:** [@premier](https://discuss.elastic.co/u/premier)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 7:05pm UTC](https://discuss.elastic.co/t/how-to-improve-accuracy-of-aggregation-doc-count/148876 "2018-09-17T19:05:19Z")

</div>

Elasticsearch documentation states that doc\_counts are approximate and we are seeing count discrepancies in our aggregations. This is a big issue for our customers How can we improve the accuracy of the doc\_count in nest…

---

## [Custom plugin and Elasticsearch client using Java Api](https://discuss.elastic.co/t/custom-plugin-and-elasticsearch-client-using-java-api/147972)

<div class="topic-metadata">

**Author:** [@dpupor](https://discuss.elastic.co/u/dpupor)\
**Replies:** 3\
**Last updated:** [September 17, 2018, 7:03pm UTC](https://discuss.elastic.co/t/custom-plugin-and-elasticsearch-client-using-java-api/147972 "2018-09-17T19:03:26Z")

</div>

Hi!! I'm creating a custom plugin to monitorize docs indexed and deleted in elasticsearch indexes. In the plugin I'm using custom settings and a HttpRestClient to do the searchs and other stuff. The question here is, in…

---

## [Filter condition to check if 2 docs lie in each other's distance range](https://discuss.elastic.co/t/filter-condition-to-check-if-2-docs-lie-in-each-others-distance-range/148654)

<div class="topic-metadata">

**Author:** [@Rahul\_Arora](https://discuss.elastic.co/u/Rahul_Arora)\
**Replies:** 5\
**Last updated:** [September 17, 2018, 6:44pm UTC](https://discuss.elastic.co/t/filter-condition-to-check-if-2-docs-lie-in-each-others-distance-range/148654 "2018-09-17T18:44:09Z")

</div>

Hi, I have a use case for which I have to filter out all the documents whose coordinates lie in each other's range. I know how to filter out results based on one doc's location and search radius but I can't figure out ho…

---

## [Special characters for ngram](https://discuss.elastic.co/t/special-characters-for-ngram/148866)

<div class="topic-metadata">

**Author:** [@adibha123](https://discuss.elastic.co/u/adibha123)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 5:43pm UTC](https://discuss.elastic.co/t/special-characters-for-ngram/148866 "2018-09-17T17:43:29Z")

</div>

{ "template" : "spectre\*", "settings": { "analysis": { "filter": { "custom\_filter": { "type": "mapping", "mappings": \[ "& =\> ALPHA" \] } }, "analyzer" : { "autocomplete" : { "tokenizer" : "autocomplete\_token…

---

## [Deleting snapshots](https://discuss.elastic.co/t/deleting-snapshots/148843)

<div class="topic-metadata">

**Author:** [@riteshun](https://discuss.elastic.co/u/riteshun)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 5:34pm UTC](https://discuss.elastic.co/t/deleting-snapshots/148843 "2018-09-17T17:34:03Z")

</div>

Hi I was reading thru the following article.. Please help me understand will it delete the files in S3 bucket as well? If not then what is the approach to purge old snapshots in S3 bucket. https://www.elastic.co/guide/e…

---

## [Count results per field for query\_string](https://discuss.elastic.co/t/count-results-per-field-for-query-string/148863)

<div class="topic-metadata">

**Author:** [@soi](https://discuss.elastic.co/u/soi)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 4:51pm UTC](https://discuss.elastic.co/t/count-results-per-field-for-query-string/148863 "2018-09-17T16:51:39Z")

</div>

Hello, Is there a way to count query\_string results per matching field ? Exemple: I have 3 documents indexed {name="test", content="test1"} {name="test2", content="test"} {name="test", content="test3"} I want when se…

---

## [Getting full XML when searching ES documents](https://discuss.elastic.co/t/getting-full-xml-when-searching-es-documents/148862)

<div class="topic-metadata">

**Author:** [@skatemple](https://discuss.elastic.co/u/skatemple)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 4:50pm UTC](https://discuss.elastic.co/t/getting-full-xml-when-searching-es-documents/148862 "2018-09-17T16:50:42Z")

</div>

Hello guys, I'm working on a tool on php for a client where he writes a mobile phone number and we look for it in ES and retrieve everything we find for that number, problem is, some of those fields is an XML, and the p…

---

## [Elasticsearch changing scaled\_float to float by itself?](https://discuss.elastic.co/t/elasticsearch-changing-scaled-float-to-float-by-itself/148858)

<div class="topic-metadata">

**Author:** [@33degrees](https://discuss.elastic.co/u/33degrees)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 3:56pm UTC](https://discuss.elastic.co/t/elasticsearch-changing-scaled-float-to-float-by-itself/148858 "2018-09-17T15:56:08Z")

</div>

I've recently noticed that a field I had declared as a scaled float is now a float. I'm not sure how this happened, but my guess is that elasticsearch did it automatically when a value that exceeded the precision was ind…

---

## [Best way to manage unbounded XML fields](https://discuss.elastic.co/t/best-way-to-manage-unbounded-xml-fields/148850)

<div class="topic-metadata">

**Author:** [@ea1987](https://discuss.elastic.co/u/ea1987)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 2:56pm UTC](https://discuss.elastic.co/t/best-way-to-manage-unbounded-xml-fields/148850 "2018-09-17T14:56:42Z")

</div>

Hi guys, I'm wondering what's the best implementation of an index which stores XML data, written and processed by logstash, with unbounded elements. Here is a simple example schema: \<xs:complexType name="root"\> xs:s…

---

## [Help/advices on Elasticsearch implementation](https://discuss.elastic.co/t/help-advices-on-elasticsearch-implementation/147695)

<div class="topic-metadata">

**Author:** [@ea1987](https://discuss.elastic.co/u/ea1987)\
**Replies:** 5\
**Last updated:** [September 17, 2018, 2:53pm UTC](https://discuss.elastic.co/t/help-advices-on-elasticsearch-implementation/147695 "2018-09-17T14:53:25Z")

</div>

Hi guys, I'm wondering if you have some suggestions about the best way to implement the following scenario. 1 Main Business Company 70 Small Business Companies holded by the main one Documents to be stored in Elast…

---

## [Elastic Search-Java.lang.OutOfMemoryError](https://discuss.elastic.co/t/elastic-search-java-lang-outofmemoryerror/148597)

<div class="topic-metadata">

**Author:** [@sahadevan](https://discuss.elastic.co/u/sahadevan)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 1:21pm UTC](https://discuss.elastic.co/t/elastic-search-java-lang-outofmemoryerror/148597 "2018-09-17T13:21:39Z")

</div>

We are getting "Out of Memory Exception" frequently on elastic search instances. 3 machines are in Elastic search cluster with Similar configuration. Environment: Windows Server 2012 R2 64 bit OS. Ram : 24gb Elastic sea…

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

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