# Elasticsearch

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

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

**Page:** 1634

---

## [Elasticsearch reindex index\_format\_too\_old\_exception](https://discuss.elastic.co/t/elasticsearch-reindex-index-format-too-old-exception/138112)

<div class="topic-metadata">

**Author:** [@piingluo](https://discuss.elastic.co/u/piingluo)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 3:30am UTC](https://discuss.elastic.co/t/elasticsearch-reindex-index-format-too-old-exception/138112 "2018-07-02T03:30:52Z")

</div>

hi all， I use reindex API in the same es cluster, i use \_cluster/allocation API， and then get the result, as follow: { "index" : "logstash-device-vfw-2018.06.09-copy", "shard" : 0, "primary" : true, "curren…

---

## [Aggregations order error](https://discuss.elastic.co/t/aggregations-order-error/138110)

<div class="topic-metadata">

**Author:** [@hubiao](https://discuss.elastic.co/u/hubiao)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 2:27am UTC](https://discuss.elastic.co/t/aggregations-order-error/138110 "2018-07-02T02:27:15Z")

</div>

Environmental Science JDK: 1.8 elasticsearch: 5.5.0 DSL: GET /data/\_search { "from" : 0, "size" : 0, "query" : { "bool" : { "must" : \[ { "term" : { "stage" : { …

---

## [How to do conditional update and insert in ElasticSearch 6.1?](https://discuss.elastic.co/t/how-to-do-conditional-update-and-insert-in-elasticsearch-6-1/138108)

<div class="topic-metadata">

**Author:** [@kant\_kodali](https://discuss.elastic.co/u/kant_kodali)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 12:43am UTC](https://discuss.elastic.co/t/how-to-do-conditional-update-and-insert-in-elasticsearch-6-1/138108 "2018-07-02T00:43:42Z")

</div>

I want to do conditional update if the document already exists and if not I want to just insert it. I tried something like below it does the conditional update if the doc already exists in ES but it fails to insert if th…

---

## [Elasticsearch snapshots not visible](https://discuss.elastic.co/t/elasticsearch-snapshots-not-visible/138102)

<div class="topic-metadata">

**Author:** [@Joba](https://discuss.elastic.co/u/Joba)\
**Replies:** 3\
**Last updated:** [July 1, 2018, 11:16pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshots-not-visible/138102 "2018-07-01T23:16:09Z")

</div>

I am using Elasticsearch 6.3.0 with its default configuration, and am currently trying to restore older snapshots created with some version of Elasticsearch 6.x. I've added a repository to restore the old snapshots, but …

---

## [Adding max\_doc in the index template alias](https://discuss.elastic.co/t/adding-max-doc-in-the-index-template-alias/138103)

<div class="topic-metadata">

**Author:** [@Ram\_Ibaset](https://discuss.elastic.co/u/Ram_Ibaset)\
**Replies:** 0\
**Last updated:** [July 1, 2018, 10:57pm UTC](https://discuss.elastic.co/t/adding-max-doc-in-the-index-template-alias/138103 "2018-07-01T22:57:43Z")

</div>

Is it possible to add the rollover API payload to the alias in index template as follows? PUT \_template/xyz\_search\_template { "index\_patterns": \[ "log\*" \], ....... other attributes .... "aliases": { "{index}-ali…

---

## [Trying to run Elastic Search after it is installed](https://discuss.elastic.co/t/trying-to-run-elastic-search-after-it-is-installed/138095)

<div class="topic-metadata">

**Author:** [@Sandeep080](https://discuss.elastic.co/u/Sandeep080)\
**Replies:** 2\
**Last updated:** [July 1, 2018, 9:55pm UTC](https://discuss.elastic.co/t/trying-to-run-elastic-search-after-it-is-installed/138095 "2018-07-01T21:55:46Z")

</div>

I installed Java 10 version and installed elasticsearch v6.3.0 as per the documentation of elastic search. But, while am trying to run the elastic search i facing an error. Above image shows the error. Can any one help…

---

## [Unable to install Elasticsearch](https://discuss.elastic.co/t/unable-to-install-elasticsearch/138100)

<div class="topic-metadata">

**Author:** [@Mark\_McGown](https://discuss.elastic.co/u/Mark_McGown)\
**Replies:** 0\
**Last updated:** [July 1, 2018, 9:32pm UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch/138100 "2018-07-01T21:32:14Z")

</div>

After trying to execute Elasticsearch on Windows 10, I get the following error: \\Java\\jre1.8.0\_171\\bin\\java.exe" - cp "!ES\_CLASSPATH!" "org.elasticsearch.tools.launchers.JvmOptionsParser" "!ES\_JVM\_OPTIONS!" || echo jvm\_…

---

## [Custom Score Based on Matches in String Array](https://discuss.elastic.co/t/custom-score-based-on-matches-in-string-array/138091)

<div class="topic-metadata">

**Author:** [@UsAndFriends](https://discuss.elastic.co/u/UsAndFriends)\
**Replies:** 0\
**Last updated:** [July 1, 2018, 6:06pm UTC](https://discuss.elastic.co/t/custom-score-based-on-matches-in-string-array/138091 "2018-07-01T18:06:53Z")

</div>

We are trying to generate a document score based on the number of matches in an array of strings. For example, if there are 3 matched elements in the array, the score should increase by 3. Currently, we are using functio…

---

## [Multiple Nodes of Elastic Search](https://discuss.elastic.co/t/multiple-nodes-of-elastic-search/138076)

<div class="topic-metadata">

**Author:** [@Ayushi\_Dalmia](https://discuss.elastic.co/u/Ayushi_Dalmia)\
**Replies:** 7\
**Last updated:** [July 1, 2018, 5:28pm UTC](https://discuss.elastic.co/t/multiple-nodes-of-elastic-search/138076 "2018-07-01T17:28:16Z")

</div>

I am using elasticsearch using docker-compose. This is how my docker-compose looks like: elasticsearch: image: elasticsearch:2.4 command: elasticsearch -Des.network.host=0.0.0.0 environment: - cluster.name=docker-cl…

---

## [Kibana container can ping but won't connect to ES container?](https://discuss.elastic.co/t/kibana-container-can-ping-but-wont-connect-to-es-container/138078)

<div class="topic-metadata">

**Author:** [@fRzzy](https://discuss.elastic.co/u/fRzzy)\
**Replies:** 2\
**Last updated:** [July 1, 2018, 4:59pm UTC](https://discuss.elastic.co/t/kibana-container-can-ping-but-wont-connect-to-es-container/138078 "2018-07-01T16:59:57Z")

</div>

I'm trying to setup ELK on one host using docker, but after 2 days and various settings changed, currently Kibana simply refused to connect to ES (or the other way around idk) Kibana log give out error: {"type":"log","@…

---

## [Error: path is not accessible on master node](https://discuss.elastic.co/t/error-path-is-not-accessible-on-master-node/138085)

<div class="topic-metadata">

**Author:** [@ohadbp](https://discuss.elastic.co/u/ohadbp)\
**Replies:** 0\
**Last updated:** [July 1, 2018, 3:46pm UTC](https://discuss.elastic.co/t/error-path-is-not-accessible-on-master-node/138085 "2018-07-01T15:46:15Z")

</div>

Hey, I am trying to add snapshots using S3 but something ain't right. This are the steps I have made: Installing ElasticSearch, version 6.3.0 Installing repository-s3 plugin, version 6.3.0 Adding access/secret key to …

---

## [Empty buckets return different type of result value '0' and 'null' for the same field](https://discuss.elastic.co/t/empty-buckets-return-different-type-of-result-value-0-and-null-for-the-same-field/137927)

<div class="topic-metadata">

**Author:** [@guanghaofan](https://discuss.elastic.co/u/guanghaofan)\
**Replies:** 2\
**Last updated:** [July 1, 2018, 4:06am UTC](https://discuss.elastic.co/t/empty-buckets-return-different-type-of-result-value-0-and-null-for-the-same-field/137927 "2018-07-01T04:06:12Z")

</div>

Kibana: 6.2.5 Metric Type: Sum, the response return value '0' for the empty buckets. Metric Type: Min/Max/Average, the response return value 'null' for the empty buckets. Below the request and response: Request: { …

---

## [Can't change settings for an index with a geo\_shape field using term strategy](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039)

<div class="topic-metadata">

**Author:** [@tbuckner](https://discuss.elastic.co/u/tbuckner)\
**Replies:** 3\
**Last updated:** [June 30, 2018, 11:39pm UTC](https://discuss.elastic.co/t/cant-change-settings-for-an-index-with-a-geo-shape-field-using-term-strategy/138039 "2018-06-30T23:39:59Z")

</div>

When creating an index with a field of type geo\_shape that uses the term strategy, I've observed some strange behaviors (this is in hosted 6.3.0): Issuing this command in Kibana dev tools is successful (though takes 30 …

---

## [Update\_by\_query updating only one field](https://discuss.elastic.co/t/update-by-query-updating-only-one-field/138067)

<div class="topic-metadata">

**Author:** [@shrike718](https://discuss.elastic.co/u/shrike718)\
**Replies:** 0\
**Last updated:** [June 30, 2018, 9:01pm UTC](https://discuss.elastic.co/t/update-by-query-updating-only-one-field/138067 "2018-06-30T21:01:58Z")

</div>

I have an index called "shipments" and it has a STA\_CD. I would like to perform an update using CURL to update all documents with STA\_CD = "OH" to STA\_CD="FL". I'm having a lot of problems with the syntax. Here's what I…

---

## [Best practice for implement ELK](https://discuss.elastic.co/t/best-practice-for-implement-elk/137967)

<div class="topic-metadata">

**Author:** [@Luke\_Devon](https://discuss.elastic.co/u/Luke_Devon)\
**Replies:** 3\
**Last updated:** [June 30, 2018, 6:51pm UTC](https://discuss.elastic.co/t/best-practice-for-implement-elk/137967 "2018-06-30T18:51:32Z")

</div>

Hi, For all "elasticsearch" experts out there .......!!!! Could you please tell me what is the best practice to implement ELK in a big data/logs analyzing environment? Currently, I have installed and tested all 3 ELK…

---

## [Update only if exist](https://discuss.elastic.co/t/update-only-if-exist/138059)

<div class="topic-metadata">

**Author:** [@panda2004](https://discuss.elastic.co/u/panda2004)\
**Replies:** 1\
**Last updated:** [June 30, 2018, 1:03pm UTC](https://discuss.elastic.co/t/update-only-if-exist/138059 "2018-06-30T13:03:42Z")

</div>

Hey, Some of the events sent to my ElasticSearch cluster aren't relevant in case they are related to a document which doesn't exist. I know I could just make a regular update request, and then get exception about faili…

---

## [SearchResponse as JSON and back to SearchResponse](https://discuss.elastic.co/t/searchresponse-as-json-and-back-to-searchresponse/138058)

<div class="topic-metadata">

**Author:** [@muecke87](https://discuss.elastic.co/u/muecke87)\
**Replies:** 0\
**Last updated:** [June 30, 2018, 10:16am UTC](https://discuss.elastic.co/t/searchresponse-as-json-and-back-to-searchresponse/138058 "2018-06-30T10:16:12Z")

</div>

Hi We are using a Java RestHighLevelClient (v. 5.6.9) to get a SearchResponse. For testing purpose we store this SearchResponse as JSON to our file system and read it from there to test our search (so that we don't nee…

---

## [Query\_string is case sensitive](https://discuss.elastic.co/t/query-string-is-case-sensitive/138054)

<div class="topic-metadata">

**Author:** [@Skrudox](https://discuss.elastic.co/u/Skrudox)\
**Replies:** 7\
**Last updated:** [June 30, 2018, 10:05am UTC](https://discuss.elastic.co/t/query-string-is-case-sensitive/138054 "2018-06-30T10:05:57Z")

</div>

{ "query":{ "bool":{ "must":\[ { "query\_string":{ "query":"\*sony\*", "analyze\_wildcard":true, "default\_field":"title" …

---

## [Matching based on the semantic analysis](https://discuss.elastic.co/t/matching-based-on-the-semantic-analysis/138057)

<div class="topic-metadata">

**Author:** [@atef](https://discuss.elastic.co/u/atef)\
**Replies:** 0\
**Last updated:** [June 30, 2018, 9:43am UTC](https://discuss.elastic.co/t/matching-based-on-the-semantic-analysis/138057 "2018-06-30T09:43:53Z")

</div>

Hello I want to know how to use Elasticsearch to do matching based on the semantic analysis of text or NLP and thanks in advance

---

## [Converting from single index to index per time frame schema](https://discuss.elastic.co/t/converting-from-single-index-to-index-per-time-frame-schema/138001)

<div class="topic-metadata">

**Author:** [@veerabhadraiah](https://discuss.elastic.co/u/veerabhadraiah)\
**Replies:** 0\
**Last updated:** [June 29, 2018, 3:36pm UTC](https://discuss.elastic.co/t/converting-from-single-index-to-index-per-time-frame-schema/138001 "2018-06-29T15:36:16Z")

</div>

Hi, Please help me to continue We get around 30 million records per day in our database server. Presently, we were saving this data in a single index. As data keeps growing, now we are now facing slowness and memory fu…

---

## [Elastic search distinct count of three query](https://discuss.elastic.co/t/elastic-search-distinct-count-of-three-query/138053)

<div class="topic-metadata">

**Author:** [@Tahir\_Khan](https://discuss.elastic.co/u/Tahir_Khan)\
**Replies:** 0\
**Last updated:** [June 30, 2018, 8:04am UTC](https://discuss.elastic.co/t/elastic-search-distinct-count-of-three-query/138053 "2018-06-30T08:04:15Z")

</div>

How to merge three queries in grafana also I need the distinct record with the sum of all query for example one query result count 20 times a week another query result count 4 times a day another query result count 2 ti…

---

## [Elasticsearch is crashing my system](https://discuss.elastic.co/t/elasticsearch-is-crashing-my-system/137790)

<div class="topic-metadata">

**Author:** [@veerabhadraiah](https://discuss.elastic.co/u/veerabhadraiah)\
**Replies:** 3\
**Last updated:** [June 30, 2018, 6:56am UTC](https://discuss.elastic.co/t/elasticsearch-is-crashing-my-system/137790 "2018-06-30T06:56:19Z")

</div>

PLEASE HELP : URGENT REQUEST! I NEED HELP WITH EL I have just started using elasticsearch to sort the data that comes to my DB (I used to use MySQL earlier) I get about 30 Million records per-day, and when I try search…

---

## [Delete by query, what's the behavior of conflicts=proceed](https://discuss.elastic.co/t/delete-by-query-whats-the-behavior-of-conflicts-proceed/137062)

<div class="topic-metadata">

**Author:** [@Jinggang\_Diao](https://discuss.elastic.co/u/Jinggang_Diao)\
**Replies:** 2\
**Last updated:** [June 30, 2018, 6:37am UTC](https://discuss.elastic.co/t/delete-by-query-whats-the-behavior-of-conflicts-proceed/137062 "2018-06-30T06:37:55Z")

</div>

If I have two servers sending the same delete by query request to a single ES server all the time. Two deletion tasks will always conflict with each other. If I have conflicts=proceed, what will really happen? My guess …

---

## [Hiring for an Elastic Developer/SME in Reston, VA](https://discuss.elastic.co/t/hiring-for-an-elastic-developer-sme-in-reston-va/138050)

<div class="topic-metadata">

**Author:** [@Devin\_Herrington](https://discuss.elastic.co/u/Devin_Herrington)\
**Replies:** 0\
**Last updated:** [June 30, 2018, 6:18am UTC](https://discuss.elastic.co/t/hiring-for-an-elastic-developer-sme-in-reston-va/138050 "2018-06-30T06:18:22Z")

</div>

iSenpai is looking for an Elastic Developer/SME in Reston, VA. This is a great opportunity to join a company that is quickly growing and taking on interesting work, and has great benefits and founders that are invested i…

---

## [Get value in the database based on the condition](https://discuss.elastic.co/t/get-value-in-the-database-based-on-the-condition/135901)

<div class="topic-metadata">

**Author:** [@Maria\_Thanaraj](https://discuss.elastic.co/u/Maria_Thanaraj)\
**Replies:** 4\
**Last updated:** [June 30, 2018, 6:08am UTC](https://discuss.elastic.co/t/get-value-in-the-database-based-on-the-condition/135901 "2018-06-30T06:08:06Z")

</div>

It is possible to get value in the database, passing the different username to get resent value for how many usernames we are passing

---

## [Elasticsearch shard unassigned and changed to red](https://discuss.elastic.co/t/elasticsearch-shard-unassigned-and-changed-to-red/137729)

<div class="topic-metadata">

**Author:** [@devika\_sudheer](https://discuss.elastic.co/u/devika_sudheer)\
**Replies:** 15\
**Last updated:** [June 30, 2018, 5:58am UTC](https://discuss.elastic.co/t/elasticsearch-shard-unassigned-and-changed-to-red/137729 "2018-06-30T05:58:44Z")

</div>

Hi I am using logstash to ship my log data to es, the index is created in the format log-YYYY-mm-dd. It was running fine for 4-5 hours and then the shards failed, turned red, in log its written Engine failed\[merge faile…

---

## [Query uri](https://discuss.elastic.co/t/query-uri/138042)

<div class="topic-metadata">

**Author:** [@snigdharao](https://discuss.elastic.co/u/snigdharao)\
**Replies:** 1\
**Last updated:** [June 29, 2018, 11:48pm UTC](https://discuss.elastic.co/t/query-uri/138042 "2018-06-29T23:48:24Z")

</div>

Hi I am trying to query using uri format , can you please let me know how to use aggs in uri format Thanks

---

## [Elasticsearch init script for centos 7](https://discuss.elastic.co/t/elasticsearch-init-script-for-centos-7/137913)

<div class="topic-metadata">

**Author:** [@Tafsir\_Alam](https://discuss.elastic.co/u/Tafsir_Alam)\
**Replies:** 3\
**Last updated:** [June 29, 2018, 11:14pm UTC](https://discuss.elastic.co/t/elasticsearch-init-script-for-centos-7/137913 "2018-06-29T23:14:31Z")

</div>

Hi, Can someone please point me to an /etc/init.d script for Elasticsearch 5.6.4 for CentOS 7 Thanks

---

## [Why some field has '@' while others not?](https://discuss.elastic.co/t/why-some-field-has-while-others-not/138038)

<div class="topic-metadata">

**Author:** [@ykang](https://discuss.elastic.co/u/ykang)\
**Replies:** 2\
**Last updated:** [June 29, 2018, 10:01pm UTC](https://discuss.elastic.co/t/why-some-field-has-while-others-not/138038 "2018-06-29T22:01:00Z")

</div>

in the this shttps://www.elastic.co/blog/how-to-centralize-logs-with-rsyslog-logstash-and-elasticsearch-on-ubuntu-14-04ample , the elastic doc stored as following: { "@timestamp" : "2015-11-18T18:45:00Z", "@version" :…

---

## [Version conflict always on \_delete\_from\_query](https://discuss.elastic.co/t/version-conflict-always-on-delete-from-query/137145)

<div class="topic-metadata">

**Author:** [@mackrispi](https://discuss.elastic.co/u/mackrispi)\
**Replies:** 6\
**Last updated:** [June 29, 2018, 9:47pm UTC](https://discuss.elastic.co/t/version-conflict-always-on-delete-from-query/137145 "2018-06-29T21:47:21Z")

</div>

Hi, I have a simple index. When I add document, this document has a version of 1 as shown below. If I then call \_delete\_for\_update .... I always get version conflict and I don't know why. If I re-run the delete script …

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

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