# Elasticsearch

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

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

**Page:** 1619

---

## [Upgrade 1.0.3 to 6.3.1](https://discuss.elastic.co/t/upgrade-1-0-3-to-6-3-1/139848)

<div class="topic-metadata">

**Author:** [@jettro](https://discuss.elastic.co/u/jettro)\
**Replies:** 6\
**Last updated:** [July 13, 2018, 2:21pm UTC](https://discuss.elastic.co/t/upgrade-1-0-3-to-6-3-1/139848 "2018-07-13T14:21:30Z")

</div>

Hi, I am at a customer with an older version of elasticsearch (1.0.3). One of those versions without documentation. I cannot seem to figure out the right syntax for this version. Does someone have an idea about the best…

---

## [REST pipeline API not allowed PUT 405](https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958)

<div class="topic-metadata">

**Author:** [@Yorick](https://discuss.elastic.co/u/Yorick)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 2:17pm UTC](https://discuss.elastic.co/t/rest-pipeline-api-not-allowed-put-405/139958 "2018-07-13T14:17:58Z")

</div>

HI, When I try to save the newly created pipeline I am getting a 405. I cannot find where I have to specify to allow PUT on the elastic-search node. I already included in the config file, http.cors.allow-methods: PUT, P…

---

## [ES 2.3 Issues, are these issues are fixed in 6.X?](https://discuss.elastic.co/t/es-2-3-issues-are-these-issues-are-fixed-in-6-x/139954)

<div class="topic-metadata">

**Author:** [@mannoj87](https://discuss.elastic.co/u/mannoj87)\
**Replies:** 0\
**Last updated:** [July 13, 2018, 1:35pm UTC](https://discuss.elastic.co/t/es-2-3-issues-are-these-issues-are-fixed-in-6-x/139954 "2018-07-13T13:35:02Z")

</div>

Hi Team, I have issues in ElasticSearch. Though we have written applications to read and write for ES specific standard purposes. We face unpredictable issues with it. Firstly we are in Elasticsearch version 2.3. I kn…

---

## [Elasticsearch Vulnerability Patches](https://discuss.elastic.co/t/elasticsearch-vulnerability-patches/138723)

<div class="topic-metadata">

**Author:** [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 1:17pm UTC](https://discuss.elastic.co/t/elasticsearch-vulnerability-patches/138723 "2018-07-13T13:17:33Z")

</div>

Hi Experts , I was checking below document https://www.elastic.co/community/security Here I saw Vulnerability Summary along with the Remediation. Generally it asks to upgrade to 6.X or to the latest release . My conce…

---

## [APi or command to delete all snapshots in Elasticsearch](https://discuss.elastic.co/t/api-or-command-to-delete-all-snapshots-in-elasticsearch/139920)

<div class="topic-metadata">

**Author:** [@roshni](https://discuss.elastic.co/u/roshni)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 1:10pm UTC](https://discuss.elastic.co/t/api-or-command-to-delete-all-snapshots-in-elasticsearch/139920 "2018-07-13T13:10:51Z")

</div>

Hi All , Is there any APi or command to delete all snapshots in Elasticsearch ??? thanks

---

## [Problem with bulk inserting json via python](https://discuss.elastic.co/t/problem-with-bulk-inserting-json-via-python/139296)

<div class="topic-metadata">

**Author:** [@mariskaas](https://discuss.elastic.co/u/mariskaas)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 12:32pm UTC](https://discuss.elastic.co/t/problem-with-bulk-inserting-json-via-python/139296 "2018-07-13T12:32:14Z")

</div>

I have ben trying to bulk insert a json file into elasticsearch via python (very new to elastic). I had to transform the data a little bit before I put it in elastic. In the end I write my file to a ndjson and try to bul…

---

## [Searching on list in a document using highlight](https://discuss.elastic.co/t/searching-on-list-in-a-document-using-highlight/139899)

<div class="topic-metadata">

**Author:** [@Abhishek\_Wahi](https://discuss.elastic.co/u/Abhishek_Wahi)\
**Replies:** 3\
**Last updated:** [July 13, 2018, 12:28pm UTC](https://discuss.elastic.co/t/searching-on-list-in-a-document-using-highlight/139899 "2018-07-13T12:28:35Z")

</div>

Hi all, I am applying the prefix query on list field and using highlight query to see the matched result but it is giving first five matches. But according to requirement i want last entries in best match as my use case…

---

## [Questions about upgrading from 5.6 to 6.x (part 2)](https://discuss.elastic.co/t/questions-about-upgrading-from-5-6-to-6-x-part-2/139906)

<div class="topic-metadata">

**Author:** [@waynesmallman](https://discuss.elastic.co/u/waynesmallman)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 12:09pm UTC](https://discuss.elastic.co/t/questions-about-upgrading-from-5-6-to-6-x-part-2/139906 "2018-07-13T12:09:23Z")

</div>

Please note that this discussion came at the request of a Elasticsearch personnel, via a conversation on Twitter, in relation to a previous discussion regarding an upgrade from 5.6 to 6.x. So, the question that wasn't a…

---

## [How to count of nested inner\_hits documents?](https://discuss.elastic.co/t/how-to-count-of-nested-inner-hits-documents/139615)

<div class="topic-metadata">

**Author:** [@Approach](https://discuss.elastic.co/u/Approach)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 10:51am UTC](https://discuss.elastic.co/t/how-to-count-of-nested-inner-hits-documents/139615 "2018-07-13T10:51:42Z")

</div>

Hi@all i have many companies and each company has many products. But how i get the count of all products. Query: GET /company/\_search { "from": 0, "size": 5, "\_source": false, "query": { …

---

## [Elasticsearch Performance Extreme Under Very long string field](https://discuss.elastic.co/t/elasticsearch-performance-extreme-under-very-long-string-field/139916)

<div class="topic-metadata">

**Author:** [@Zhengda\_Wu](https://discuss.elastic.co/u/Zhengda_Wu)\
**Replies:** 0\
**Last updated:** [July 13, 2018, 9:43am UTC](https://discuss.elastic.co/t/elasticsearch-performance-extreme-under-very-long-string-field/139916 "2018-07-13T09:43:21Z")

</div>

try { Settings settings = Settings.builder().put("cluster.name", "phm").build(); TransportClient client = new PreBuiltTransportClient(settings) .addTransportAddress(new TransportAddres…

---

## [Issue with "ignore\_missing" argument in es5](https://discuss.elastic.co/t/issue-with-ignore-missing-argument-in-es5/139896)

<div class="topic-metadata">

**Author:** [@xenoid](https://discuss.elastic.co/u/xenoid)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 9:41am UTC](https://discuss.elastic.co/t/issue-with-ignore-missing-argument-in-es5/139896 "2018-07-13T09:41:44Z")

</div>

I am using an application that sends requests like this to elasticsearch 5 (Kibana 3): http://localhost:9200/twitter/\_aliases?ignore\_unavailable=true&ignore\_missing=true The response from es5: {"error":{"root\_cause":\[…

---

## [Getting 0 from field-data which contains text](https://discuss.elastic.co/t/getting-0-from-field-data-which-contains-text/139490)

<div class="topic-metadata">

**Author:** [@PolterFox](https://discuss.elastic.co/u/PolterFox)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 9:21am UTC](https://discuss.elastic.co/t/getting-0-from-field-data-which-contains-text/139490 "2018-07-13T09:21:05Z")

</div>

Hey guys, I want to return a field-data value which contains text, but I am getting 0 as a result, my GET request looks like this: GET myIndex-\*/\_search { "query": { "match\_all": {} }, "script\_fields": { "my\_field"…

---

## [Dynamic filters to JAVA Api](https://discuss.elastic.co/t/dynamic-filters-to-java-api/139908)

<div class="topic-metadata">

**Author:** [@Idelgarde\_Sa](https://discuss.elastic.co/u/Idelgarde_Sa)\
**Replies:** 0\
**Last updated:** [July 13, 2018, 9:01am UTC](https://discuss.elastic.co/t/dynamic-filters-to-java-api/139908 "2018-07-13T09:01:54Z")

</div>

Hey guys, I have a json like this: {"filterIds": \[{ "type":"range", "property":"creationDate", "filter":{ "gte":1531401621486, "lt":1531401741487 } }, { "type":"range", "property":"modified", "filter":{…

---

## [Setting elasticsearch monitoring history duration using API](https://discuss.elastic.co/t/setting-elasticsearch-monitoring-history-duration-using-api/139085)

<div class="topic-metadata">

**Author:** [@Dheeraj\_Gupta](https://discuss.elastic.co/u/Dheeraj_Gupta)\
**Replies:** 0\
**Last updated:** [July 9, 2018, 6:10am UTC](https://discuss.elastic.co/t/setting-elasticsearch-monitoring-history-duration-using-api/139085 "2018-07-09T06:10:05Z")

</div>

I am using Elasticsearch-6.3.0 with (default) basic license. I have enabled monitoring but would like to keep monitoring indices for less than default 7d. I tried to update the xpack.monitoring.history.duration setting a…

---

## [If field contains uppercase search](https://discuss.elastic.co/t/if-field-contains-uppercase-search/139638)

<div class="topic-metadata">

**Author:** [@Jeff\_Bursik](https://discuss.elastic.co/u/Jeff_Bursik)\
**Replies:** 4\
**Last updated:** [July 13, 2018, 8:43am UTC](https://discuss.elastic.co/t/if-field-contains-uppercase-search/139638 "2018-07-13T08:43:25Z")

</div>

Is there a way to determine if the field's value contains any upper case? For example, I have 2 documents with field name. Doc1 = { name: jeff }. Doc2 = { name = Jeff}. I only want Doc2 returned since the "J" is capi…

---

## [How to do string analysis](https://discuss.elastic.co/t/how-to-do-string-analysis/139897)

<div class="topic-metadata">

**Author:** [@Ambuj\_Saxena](https://discuss.elastic.co/u/Ambuj_Saxena)\
**Replies:** 0\
**Last updated:** [July 13, 2018, 7:58am UTC](https://discuss.elastic.co/t/how-to-do-string-analysis/139897 "2018-07-13T07:58:38Z")

</div>

Hi all, I started learning ELK stack, These are some confusion. how to analysis string in ELK stack. I have data which started with A1, A2, A3, A4, A5 something like that. For Reference A1,12,1.2.3,AB3CD A2,12,1.2.3…

---

## [Events added from rsyslog have only \_index, \_type and \_id](https://discuss.elastic.co/t/events-added-from-rsyslog-have-only-index-type-and-id/139893)

<div class="topic-metadata">

**Author:** [@lzap](https://discuss.elastic.co/u/lzap)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 7:27am UTC](https://discuss.elastic.co/t/events-added-from-rsyslog-have-only-index-type-and-id/139893 "2018-07-13T07:27:00Z")

</div>

Hello, I created a template for ES 5.5: http://termbin.com/kxdx I imported it successfully: # curl -X PUT "localhost:9200/\_template/project.foreman-2018-11-07" -H 'Content-Type: application/json' -d@org.foreman.viaq-cd…

---

## [Watcher, execute action for individual buckets from aggregation?](https://discuss.elastic.co/t/watcher-execute-action-for-individual-buckets-from-aggregation/138926)

<div class="topic-metadata">

**Author:** [@mitom](https://discuss.elastic.co/u/mitom)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 7:15am UTC](https://discuss.elastic.co/t/watcher-execute-action-for-individual-buckets-from-aggregation/138926 "2018-07-13T07:15:46Z")

</div>

Hi, I am wondering if I can somehow make Watcher execute the action part of a watch multiple times. For example, I have a watch that would trigger when any instance is over 80% filesystem usage as reported by metricbeat…

---

## [Any suggestion way of doing soft delete in ES](https://discuss.elastic.co/t/any-suggestion-way-of-doing-soft-delete-in-es/139455)

<div class="topic-metadata">

**Author:** [@Lan\_Qi](https://discuss.elastic.co/u/Lan_Qi)\
**Replies:** 12\
**Last updated:** [July 13, 2018, 5:51am UTC](https://discuss.elastic.co/t/any-suggestion-way-of-doing-soft-delete-in-es/139455 "2018-07-13T05:51:01Z")

</div>

Hi, I would like to know if there is some official way of doing soft delete in ES? Thank you

---

## [Reindex from remote, 1.7.1 to 6.X](https://discuss.elastic.co/t/reindex-from-remote-1-7-1-to-6-x/139568)

<div class="topic-metadata">

**Author:** [@MiguelSalenda](https://discuss.elastic.co/u/MiguelSalenda)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 5:33am UTC](https://discuss.elastic.co/t/reindex-from-remote-1-7-1-to-6-x/139568 "2018-07-13T05:33:04Z")

</div>

Hi all! I'm trying the Reindex API from remote from an 1.7.1 ES instance to a 6.3.1. The 1.7.1 uses some indices with types, but as is documented here, these types are removed. So when I make the Reindex API action, I g…

---

## [Three node cluster not working when two nodes are off](https://discuss.elastic.co/t/three-node-cluster-not-working-when-two-nodes-are-off/139875)

<div class="topic-metadata">

**Author:** [@Krishna\_Natarajan](https://discuss.elastic.co/u/Krishna_Natarajan)\
**Replies:** 0\
**Last updated:** [July 13, 2018, 5:17am UTC](https://discuss.elastic.co/t/three-node-cluster-not-working-when-two-nodes-are-off/139875 "2018-07-13T05:17:38Z")

</div>

Hey all, I am using ElasticSearch-6.2.2 on three nodes in the same Cluster. Each of those nodes has a dedicated Cassandra Server integrated along with it. There are times when my application will need all three and ther…

---

## [Elasticsearch exception: Unexpected error while indexing monitoring document](https://discuss.elastic.co/t/elasticsearch-exception-unexpected-error-while-indexing-monitoring-document/139817)

<div class="topic-metadata">

**Author:** [@Shraddha\_Srivastav](https://discuss.elastic.co/u/Shraddha_Srivastav)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 4:47am UTC](https://discuss.elastic.co/t/elasticsearch-exception-unexpected-error-while-indexing-monitoring-document/139817 "2018-07-13T04:47:49Z")

</div>

Hi, When i run ES it gives me an exception of Unexpected error while indexing monitoring document org.elasticsearch.xpack.monitoring My ES config file is as following: ======================== Elasticsearch Configura…

---

## [Internals of cluster state update process?](https://discuss.elastic.co/t/internals-of-cluster-state-update-process/139682)

<div class="topic-metadata">

**Author:** [@nishant.saini](https://discuss.elastic.co/u/nishant.saini)\
**Replies:** 0\
**Last updated:** [July 12, 2018, 6:47am UTC](https://discuss.elastic.co/t/internals-of-cluster-state-update-process/139682 "2018-07-12T06:47:02Z")

</div>

I would like to know following about cluster state in es 6.3: When cluster state is updated, does the complete cluster state is sent over all the node or only the diff is sent? To what size we should try to limit t…

---

## [WorkFlow for Snapshotting Indices as a Backup Option](https://discuss.elastic.co/t/workflow-for-snapshotting-indices-as-a-backup-option/139080)

<div class="topic-metadata">

**Author:** [@ninjada](https://discuss.elastic.co/u/ninjada)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 4:13am UTC](https://discuss.elastic.co/t/workflow-for-snapshotting-indices-as-a-backup-option/139080 "2018-07-13T04:13:56Z")

</div>

Hello, currently trying to debug some issues with an ELK stack, where I've moved the db from an instance to the AWS ElasticSearch instance.. Caused a few issues and now i'm generally just wondering about the workflow i s…

---

## [Elastalert](https://discuss.elastic.co/t/elastalert/139862)

<div class="topic-metadata">

**Author:** [@sa2kumar](https://discuss.elastic.co/u/sa2kumar)\
**Replies:** 0\
**Last updated:** [July 13, 2018, 3:00am UTC](https://discuss.elastic.co/t/elastalert/139862 "2018-07-13T03:00:37Z")

</div>

Anyone configured elastalert rule for CPU utilization notification with system.cpu.total.norm.pct value? Thanks.

---

## [Geo\_shape sort](https://discuss.elastic.co/t/geo-shape-sort/139724)

<div class="topic-metadata">

**Author:** [@halleystar](https://discuss.elastic.co/u/halleystar)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 1:53am UTC](https://discuss.elastic.co/t/geo-shape-sort/139724 "2018-07-13T01:53:51Z")

</div>

my mapping is like following. I create index using it In the case of 1.7 and 5.6.4. but is has a different result. The result is following: in the case of elasticsearch1.7 { "took": 5, "hits": { "total": 2, "ma…

---

## [S\_s\_l\_handshake\_exception in kibana while using reindex api](https://discuss.elastic.co/t/s-s-l-handshake-exception-in-kibana-while-using-reindex-api/139824)

<div class="topic-metadata">

**Author:** [@Praneeth](https://discuss.elastic.co/u/Praneeth)\
**Replies:** 2\
**Last updated:** [July 13, 2018, 1:09am UTC](https://discuss.elastic.co/t/s-s-l-handshake-exception-in-kibana-while-using-reindex-api/139824 "2018-07-13T01:09:19Z")

</div>

I have been using reindex api and trying to reindex data from remote cluster both of version 6.2.4 and I am running on centos and openjdk 1.8.0.161. X Pack installed on both clusters with trial license. When I am tryin…

---

## [English Analysis of Questions](https://discuss.elastic.co/t/english-analysis-of-questions/139844)

<div class="topic-metadata">

**Author:** [@John\_Bell](https://discuss.elastic.co/u/John_Bell)\
**Replies:** 1\
**Last updated:** [July 12, 2018, 11:24pm UTC](https://discuss.elastic.co/t/english-analysis-of-questions/139844 "2018-07-12T23:24:26Z")

</div>

Hello, I am following Russ Cam's Deep Dive video - https://www.youtube.com/watch?v=lwMzO8kxQ18&t=1593s on elastic search but there have been some changes since 2017. Is there an example code for a similar service? I'…

---

## [Load custom analyzer defined in mapping from a plugin](https://discuss.elastic.co/t/load-custom-analyzer-defined-in-mapping-from-a-plugin/137202)

<div class="topic-metadata">

**Author:** [@aspacca-gfg](https://discuss.elastic.co/u/aspacca-gfg)\
**Replies:** 3\
**Last updated:** [July 12, 2018, 10:48pm UTC](https://discuss.elastic.co/t/load-custom-analyzer-defined-in-mapping-from-a-plugin/137202 "2018-07-12T22:48:55Z")

</div>

Hello, I've developed a scoring plugin that returns the cosine similarity between a field on the document and an input string. To do so I access terms frequency of the stored documents but I need to tokenize and filter …

---

## [Java API Plainless script \`indexOf\` give wrong answer](https://discuss.elastic.co/t/java-api-plainless-script-indexof-give-wrong-answer/139016)

<div class="topic-metadata">

**Author:** [@Zt\_Zeng](https://discuss.elastic.co/u/Zt_Zeng)\
**Replies:** 11\
**Last updated:** [July 12, 2018, 10:41pm UTC](https://discuss.elastic.co/t/java-api-plainless-script-indexof-give-wrong-answer/139016 "2018-07-12T22:41:42Z")

</div>

Executor following script using rest way and Java API give different result: "script": { "inline": "ctx.\_source.t = params.users; ctx.\_source.i1= ctx.\_source.users.indexOf(params.users); ctx.\_source.i2= ctx.\_sourc…

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

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