# Elasticsearch

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

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

**Page:** 1640

---

## [Text VS Keyword](https://discuss.elastic.co/t/text-vs-keyword/137532)

<div class="topic-metadata">

**Author:** [@safhw91](https://discuss.elastic.co/u/safhw91)\
**Replies:** 3\
**Last updated:** [June 27, 2018, 3:56am UTC](https://discuss.elastic.co/t/text-vs-keyword/137532 "2018-06-27T03:56:15Z")

</div>

I am going to set my string as not indexed by elastic via mapping. So I do not need ANY search, aggregation, etc, whatsoever for certain strings. I just need the string to come out together with other data when I search…

---

## [Upgrade Elasticsearch from 6.1 - 6.3 failed](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442)

<div class="topic-metadata">

**Author:** [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Replies:** 4\
**Last updated:** [June 27, 2018, 1:51am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-1-6-3-failed/137442 "2018-06-27T01:51:14Z")

</div>

We recently tried to upgrade Elasticsearch from 6.1-6.3 and we ran into an issue starting the service. We got the error " Starting elasticsearch: /usr/share/elasticsearch/bin/elasticsearch-env: line 70: /etc/sysconfig/e…

---

## [How to except primary shard to specific node?](https://discuss.elastic.co/t/how-to-except-primary-shard-to-specific-node/137228)

<div class="topic-metadata">

**Author:** [@76a99de1e92a429af5f9](https://discuss.elastic.co/u/76a99de1e92a429af5f9)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 11:33pm UTC](https://discuss.elastic.co/t/how-to-except-primary-shard-to-specific-node/137228 "2018-06-26T23:33:24Z")

</div>

Hi, I have 8 elasticsearch data node, and they save 200GB indexes per day. Umm.. indexes replica setting is 1, so, As a result, 400GB indexes will saved. By the way, I have a focus on elasitcsearch's performance. If …

---

## [Restore Elasticsearch index](https://discuss.elastic.co/t/restore-elasticsearch-index/137301)

<div class="topic-metadata">

**Author:** [@Gregory\_Fisher](https://discuss.elastic.co/u/Gregory_Fisher)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 11:29pm UTC](https://discuss.elastic.co/t/restore-elasticsearch-index/137301 "2018-06-26T23:29:49Z")

</div>

Hi for the all i have 2 Elasticsearch (1 for PROD and 1 for DEV Environment) and i already set a NFS partition (repository) for backup ALL indexes from PROD through bash script. and we have the same indexes on the DEV…

---

## [Deleting old logs from specific host](https://discuss.elastic.co/t/deleting-old-logs-from-specific-host/137495)

<div class="topic-metadata">

**Author:** [@alexserd](https://discuss.elastic.co/u/alexserd)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 11:21pm UTC](https://discuss.elastic.co/t/deleting-old-logs-from-specific-host/137495 "2018-06-26T23:21:09Z")

</div>

Is there a way to clear logs from specific host. We are using winlogbeat for eventlogs and filebeat for iis logs

---

## [Finding out if result from query is different from previous result](https://discuss.elastic.co/t/finding-out-if-result-from-query-is-different-from-previous-result/137519)

<div class="topic-metadata">

**Author:** [@magnusw](https://discuss.elastic.co/u/magnusw)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 10:08pm UTC](https://discuss.elastic.co/t/finding-out-if-result-from-query-is-different-from-previous-result/137519 "2018-06-26T22:08:32Z")

</div>

Hi, I'm using javascript 'elasticsearch.js' to query and the Sequence diagram lib 'mermaid.js' to create sequence diagram from elasticsearch data. Below is some of my code. Question: Is there a way to check if a result…

---

## [Query for all indices in a cluster](https://discuss.elastic.co/t/query-for-all-indices-in-a-cluster/137481)

<div class="topic-metadata">

**Author:** [@TwoDragon](https://discuss.elastic.co/u/TwoDragon)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 9:08pm UTC](https://discuss.elastic.co/t/query-for-all-indices-in-a-cluster/137481 "2018-06-26T21:08:01Z")

</div>

Hi, In Elasticsearch 6.x, there is a call to es.indices.get\_alias to get all the indices in a given alias. Is there a method to get all indices that are not associated with any alias. My purpose is to clean up those in…

---

## [Writing to multiple indices using spark connector](https://discuss.elastic.co/t/writing-to-multiple-indices-using-spark-connector/137123)

<div class="topic-metadata">

**Author:** [@animageofmine](https://discuss.elastic.co/u/animageofmine)\
**Replies:** 9\
**Last updated:** [June 26, 2018, 7:59pm UTC](https://discuss.elastic.co/t/writing-to-multiple-indices-using-spark-connector/137123 "2018-06-26T19:59:09Z")

</div>

Is is possible to write to multiple indices in one bulk operation using spark connector provided by es hadoop library? According to the documentation, you can specify a document key for writing to multiple indices. My u…

---

## [Query and boost fields](https://discuss.elastic.co/t/query-and-boost-fields/137432)

<div class="topic-metadata">

**Author:** [@atom](https://discuss.elastic.co/u/atom)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 7:22pm UTC](https://discuss.elastic.co/t/query-and-boost-fields/137432 "2018-06-26T19:22:17Z")

</div>

Hi there, i have a question about boosting. What is the difference between this type of boosting "boost": 2 explained here: Elastic Docu and this type with circumflex: somefield^2 Regards, Ahmet

---

## [Search java api not working v6.2.1](https://discuss.elastic.co/t/search-java-api-not-working-v6-2-1/137147)

<div class="topic-metadata">

**Author:** [@ali\_imran](https://discuss.elastic.co/u/ali_imran)\
**Replies:** 9\
**Last updated:** [June 26, 2018, 7:18pm UTC](https://discuss.elastic.co/t/search-java-api-not-working-v6-2-1/137147 "2018-06-26T19:18:08Z")

</div>

I am using elasticsearch (6.2.1) in my project. The indexing queries are running fine. Whereas the searching query is not working. It works with curl and give search results. But when using java search api, it always gi…

---

## [Possible bug with 6.3 -- Analyzer not working correctly](https://discuss.elastic.co/t/possible-bug-with-6-3-analyzer-not-working-correctly/137225)

<div class="topic-metadata">

**Author:** [@Jason\_Baumgartner](https://discuss.elastic.co/u/Jason_Baumgartner)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 7:07pm UTC](https://discuss.elastic.co/t/possible-bug-with-6-3-analyzer-not-working-correctly/137225 "2018-06-26T19:07:00Z")

</div>

I have the following mapping: { "settings": { "index.codec": "best\_compression", "index.shard.check\_on\_startup": "checksum", "index": { "number\_of\_shards": 10, "number…

---

## [Elasticsearch: Delete by source](https://discuss.elastic.co/t/elasticsearch-delete-by-source/137229)

<div class="topic-metadata">

**Author:** [@Uwais\_Ibrahim](https://discuss.elastic.co/u/Uwais_Ibrahim)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 7:00pm UTC](https://discuss.elastic.co/t/elasticsearch-delete-by-source/137229 "2018-06-26T19:00:44Z")

</div>

Hi, I need to delete hits from elasticsearch for a specefic source file. I tried below curl commands. Nothing worked instead delete all contents from elastic search. Please help to make it work. curl -XPOST "localhos…

---

## [Elastic Search 5.6.x : index.mapping.single\_type](https://discuss.elastic.co/t/elastic-search-5-6-x-index-mapping-single-type/137364)

<div class="topic-metadata">

**Author:** [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)\
**Replies:** 4\
**Last updated:** [June 26, 2018, 6:59pm UTC](https://discuss.elastic.co/t/elastic-search-5-6-x-index-mapping-single-type/137364 "2018-06-26T18:59:09Z")

</div>

Hi, I am migrating to 5.6.10 from 5.2.2, what is Default value for: index.mapping.single\_type Thanks. Amit Sinha.

---

## [Composite aggregation buckets total count](https://discuss.elastic.co/t/composite-aggregation-buckets-total-count/137156)

<div class="topic-metadata">

**Author:** [@gogua](https://discuss.elastic.co/u/gogua)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 6:57pm UTC](https://discuss.elastic.co/t/composite-aggregation-buckets-total-count/137156 "2018-06-26T18:57:16Z")

</div>

hi, how to count buckets total, when i have the following ES query "size": 0, "aggs": { "buckets": { "composite": { "size": 20, "sources": \[ {"age": {"terms": {"fiel…

---

## [Difficulty parsing logs to ES from Logstash](https://discuss.elastic.co/t/difficulty-parsing-logs-to-es-from-logstash/136768)

<div class="topic-metadata">

**Author:** [@vincentv](https://discuss.elastic.co/u/vincentv)\
**Replies:** 5\
**Last updated:** [June 26, 2018, 6:07pm UTC](https://discuss.elastic.co/t/difficulty-parsing-logs-to-es-from-logstash/136768 "2018-06-26T18:07:02Z")

</div>

Hi all, We have a new setup of ELK 6.3.0, with the latest 6.3.0 of filebeat and logstash. We are getting a lot of errors on logs transferring between logstash and ES. I am unsure why this is, we have tried using the f…

---

## [RestClient](https://discuss.elastic.co/t/restclient/137059)

<div class="topic-metadata">

**Author:** [@Andreas\_Bakopoulos](https://discuss.elastic.co/u/Andreas_Bakopoulos)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 5:40pm UTC](https://discuss.elastic.co/t/restclient/137059 "2018-06-26T17:40:52Z")

</div>

Hi, I am trying to use the java client but a receive the following error: javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/elasticsearch/client/RestClient Could you please help me to solve this iss…

---

## [Update by query problem](https://discuss.elastic.co/t/update-by-query-problem/137455)

<div class="topic-metadata">

**Author:** [@jvolpi](https://discuss.elastic.co/u/jvolpi)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 4:47pm UTC](https://discuss.elastic.co/t/update-by-query-problem/137455 "2018-06-26T16:47:14Z")

</div>

Hi everyone I'm trying to create a new field in my index, and the value for it must be a substring from another field. This is my code: POST logstash-2018.06.26/\_update\_by\_query { "script" : { "source": "ct…

---

## [Shard relocation storms when cluster disk low](https://discuss.elastic.co/t/shard-relocation-storms-when-cluster-disk-low/136385)

<div class="topic-metadata">

**Author:** [@kenfox](https://discuss.elastic.co/u/kenfox)\
**Replies:** 10\
**Last updated:** [June 26, 2018, 4:01pm UTC](https://discuss.elastic.co/t/shard-relocation-storms-when-cluster-disk-low/136385 "2018-06-26T16:01:07Z")

</div>

We have a 27 data node ES 5.5 cluster with 1.7TB of disk per node. The ES team has created an amazingly easy to use and high performance system. Our cluster normally works beautifully. It ingests over a billion logs per …

---

## [Full text search: multi word](https://discuss.elastic.co/t/full-text-search-multi-word/137449)

<div class="topic-metadata">

**Author:** [@stefan10](https://discuss.elastic.co/u/stefan10)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 3:53pm UTC](https://discuss.elastic.co/t/full-text-search-multi-word/137449 "2018-06-26T15:53:28Z")

</div>

When doing a full-text search against a field, is there an option to disable multiple words from the search phrase to be matched by the same term in a document field? For instance: if we search against a 'name' field w…

---

## [Watcher: \[parse\_exception\] password is a required option when trying to call cluster status](https://discuss.elastic.co/t/watcher-parse-exception-password-is-a-required-option-when-trying-to-call-cluster-status/134852)

<div class="topic-metadata">

**Author:** [@rpendela](https://discuss.elastic.co/u/rpendela)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 3:28pm UTC](https://discuss.elastic.co/t/watcher-parse-exception-password-is-a-required-option-when-trying-to-call-cluster-status/134852 "2018-06-26T15:28:50Z")

</div>

Referring to below thread, I am experiencing same issue, we allow only https communication. here is my watcher call, { "trigger": { "schedule": { "interval": "10s" } }, "input": { "http": { …

---

## [Snapshot multiple clusters to same repository](https://discuss.elastic.co/t/snapshot-multiple-clusters-to-same-repository/137463)

<div class="topic-metadata">

**Author:** [@Thomas\_Doman](https://discuss.elastic.co/u/Thomas_Doman)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 3:27pm UTC](https://discuss.elastic.co/t/snapshot-multiple-clusters-to-same-repository/137463 "2018-06-26T15:27:59Z")

</div>

ES: 6.1.1 NEST: 6.1.0 OS: Windows 10.0.14393 Build 14393 Plugin: repository-azure-6.1.1 We have two clusters in production which are used for different purposes. In our lower dev lanes, we have all the indexes on on…

---

## [Kibana doesnt show any recent logs, except for old ones](https://discuss.elastic.co/t/kibana-doesnt-show-any-recent-logs-except-for-old-ones/137461)

<div class="topic-metadata">

**Author:** [@FanteG](https://discuss.elastic.co/u/FanteG)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 3:14pm UTC](https://discuss.elastic.co/t/kibana-doesnt-show-any-recent-logs-except-for-old-ones/137461 "2018-06-26T15:14:59Z")

</div>

Hello everyone. I've recently "inherited" elk stack at work. And there are problems with it. Kibana doesnt show any recent data, only logs that were recorded about week ago. In short there are 5 VMs in stack - 2 ES in cl…

---

## [Errors while loading data in asynch mode](https://discuss.elastic.co/t/errors-while-loading-data-in-asynch-mode/137462)

<div class="topic-metadata">

**Author:** [@Roman\_G](https://discuss.elastic.co/u/Roman_G)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 3:20pm UTC](https://discuss.elastic.co/t/errors-while-loading-data-in-asynch-mode/137462 "2018-06-26T15:20:15Z")

</div>

I am trying to load data to Elastic, here is the code I use public static void loadJSONFileAsync(RestClient restClient, String index, String type, String jsonFileName) throws IOException { String postData = S…

---

## [\[FSCrawler\] Add data in upload files](https://discuss.elastic.co/t/fscrawler-add-data-in-upload-files/136691)

<div class="topic-metadata">

**Author:** [@samy\_ouldali](https://discuss.elastic.co/u/samy_ouldali)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 3:01pm UTC](https://discuss.elastic.co/t/fscrawler-add-data-in-upload-files/136691 "2018-06-26T15:01:02Z")

</div>

Hello, i create an flask web application in order to add my files into my cluster ES, using fscrawler. I would like create a section where user could add more informations about this document; I want create a new prope…

---

## [How to make the Elasticsearch crud operation to be reflected in mysql database](https://discuss.elastic.co/t/how-to-make-the-elasticsearch-crud-operation-to-be-reflected-in-mysql-database/137114)

<div class="topic-metadata">

**Author:** [@suchetacateina](https://discuss.elastic.co/u/suchetacateina)\
**Replies:** 6\
**Last updated:** [June 26, 2018, 2:50pm UTC](https://discuss.elastic.co/t/how-to-make-the-elasticsearch-crud-operation-to-be-reflected-in-mysql-database/137114 "2018-06-26T14:50:13Z")

</div>

HI Folks, I have installed ELK 6.2.3 on ubuntu 16.04. I have connected my sql database with ELK. I am able to see all the changes which have been done in mysql on ElasticSearch through search query . But when i am try…

---

## [How to show field "name" value by id in results - ES6.3](https://discuss.elastic.co/t/how-to-show-field-name-value-by-id-in-results-es6-3/137318)

<div class="topic-metadata">

**Author:** [@Erick\_Costa](https://discuss.elastic.co/u/Erick_Costa)\
**Replies:** 5\
**Last updated:** [June 26, 2018, 2:38pm UTC](https://discuss.elastic.co/t/how-to-show-field-name-value-by-id-in-results-es6-3/137318 "2018-06-26T14:38:52Z")

</div>

I'm trying to do in one query, the 10 most rented, display a text field (name) of another document that are in the same index but are of different types. Example: { "id": 1, "id\_book": 1 "type": "books" "name": "My…

---

## [Exceptions in the log in ElasticSearch to 5.6.9](https://discuss.elastic.co/t/exceptions-in-the-log-in-elasticsearch-to-5-6-9/137394)

<div class="topic-metadata">

**Author:** [@sss](https://discuss.elastic.co/u/sss)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 2:03pm UTC](https://discuss.elastic.co/t/exceptions-in-the-log-in-elasticsearch-to-5-6-9/137394 "2018-06-26T14:03:44Z")

</div>

I have a single node cluster deployment on Elasticsearch 5.6.9.. During and After the ES startup, i continuously see a lot of these messages in the logs. Any help how to debug this further ? 2018-06-26 08:23:39,623 \[o…

---

## [Multi Document Index in not working with 6.1.3](https://discuss.elastic.co/t/multi-document-index-in-not-working-with-6-1-3/135373)

<div class="topic-metadata">

**Author:** [@sgarap](https://discuss.elastic.co/u/sgarap)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 1:55pm UTC](https://discuss.elastic.co/t/multi-document-index-in-not-working-with-6-1-3/135373 "2018-06-26T13:55:37Z")

</div>

Hi, We have a test Elastic Cloud Enterprise on AWS. I followed blog https://www.elastic.co/blog/understanding-your-teams-usage-with-elastic-cloud-enterprise and created a dedicated cluster for watcher for collecting clu…

---

## [Nested Aggregation On Date Differance](https://discuss.elastic.co/t/nested-aggregation-on-date-differance/137403)

<div class="topic-metadata">

**Author:** [@mohamed-assem92](https://discuss.elastic.co/u/mohamed-assem92)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 1:46pm UTC](https://discuss.elastic.co/t/nested-aggregation-on-date-differance/137403 "2018-06-26T13:46:16Z")

</div>

Hello, i have data each document in it have history array like following ...... "history" : \[ { "user" : { "id" : "14", "firstName" : "user14", "lastName" : "user14", "username" : "user14", "principalType" : "u…

---

## [The system cannot find the file specified error in elastichsearc](https://discuss.elastic.co/t/the-system-cannot-find-the-file-specified-error-in-elastichsearc/137203)

<div class="topic-metadata">

**Author:** [@prashi\_227](https://discuss.elastic.co/u/prashi_227)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 12:24pm UTC](https://discuss.elastic.co/t/the-system-cannot-find-the-file-specified-error-in-elastichsearc/137203 "2018-06-26T12:24:59Z")

</div>

After installation of Elasticsearch 5.6.9 its showing error "the system cannot find the file specified error in elastichsearc". Note : We are tring to up-grade the Elastichsearch 5.2.2 to 5.6.9 showig the error

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

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