# Elasticsearch

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

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

**Page:** 1974

---

## [Multilingual completion suggester best practise](https://discuss.elastic.co/t/multilingual-completion-suggester-best-practise/97799)

<div class="topic-metadata">

**Author:** [@sliu](https://discuss.elastic.co/u/sliu)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 4:37pm UTC](https://discuss.elastic.co/t/multilingual-completion-suggester-best-practise/97799 "2017-08-21T16:37:19Z")

</div>

We use a cluster for completion suggester. It needs to support auto-complete in multiple languages. I’m looking for best practice in index design. Here are two options: a single index field for words and phrases in all…

---

## [Problems with Snapshot Restore](https://discuss.elastic.co/t/problems-with-snapshot-restore/96921)

<div class="topic-metadata">

**Author:** [@agriffit](https://discuss.elastic.co/u/agriffit)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 4:15pm UTC](https://discuss.elastic.co/t/problems-with-snapshot-restore/96921 "2017-08-21T16:15:28Z")

</div>

Hi, Attempting to restore a snapshot from one cluster into another (same version - 5.0.1). It seems that all indices that were created using forcemerge are failing to restore. When I do allocation/explain I get "fin…

---

## [Most popular indices/shards](https://discuss.elastic.co/t/most-popular-indices-shards/97643)

<div class="topic-metadata">

**Author:** [@sqlplus](https://discuss.elastic.co/u/sqlplus)\
**Replies:** 5\
**Last updated:** [August 21, 2017, 3:28pm UTC](https://discuss.elastic.co/t/most-popular-indices-shards/97643 "2017-08-21T15:28:06Z")

</div>

Hello Everyone, I have a busy elasticsearch cluster running 5.3.0. CPU Load is high on 2 nodes and query time as well. Bottleneck seems to be related to I/O. I was wondering, how can I know which indices or shards ar…

---

## [High openfiles issue in more indices](https://discuss.elastic.co/t/high-openfiles-issue-in-more-indices/97785)

<div class="topic-metadata">

**Author:** [@Balamurali](https://discuss.elastic.co/u/Balamurali)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 3:10pm UTC](https://discuss.elastic.co/t/high-openfiles-issue-in-more-indices/97785 "2017-08-21T15:10:41Z")

</div>

Hi , Now we are using Elasticsearch 1.3.7 (3 TB data) with one index and many types (more than 250 ). we are facing mapping conflicts as big blow for upgradation. so we planning to change our ES architecture as creati…

---

## [Elasticsearch java 8 check fail](https://discuss.elastic.co/t/elasticsearch-java-8-check-fail/97762)

<div class="topic-metadata">

**Author:** [@Cristian\_Jadox](https://discuss.elastic.co/u/Cristian_Jadox)\
**Replies:** 9\
**Last updated:** [August 21, 2017, 3:09pm UTC](https://discuss.elastic.co/t/elasticsearch-java-8-check-fail/97762 "2017-08-21T15:09:54Z")

</div>

Hi, I’m trying to run elasticsearch on my mac but it fails due to java version incompatibility. The thing is that I have the latest version of Java installed on my system ( 8 Update 144 ) but I keep getting this error …

---

## [Version 5.X path.plugins removal](https://discuss.elastic.co/t/version-5-x-path-plugins-removal/97450)

<div class="topic-metadata">

**Author:** [@wrinehart](https://discuss.elastic.co/u/wrinehart)\
**Replies:** 3\
**Last updated:** [August 21, 2017, 3:09pm UTC](https://discuss.elastic.co/t/version-5-x-path-plugins-removal/97450 "2017-08-21T15:09:12Z")

</div>

Howdy, The path.plugins variable was removed in version 5.x. I am curious about the reason for the removal as I can’t find it in the actual commit (https://github.com/elastic/elasticsearch/pull/18594). I currently run…

---

## [X-pack Machine Learning](https://discuss.elastic.co/t/x-pack-machine-learning/97688)

<div class="topic-metadata">

**Author:** [@chaoukiz](https://discuss.elastic.co/u/chaoukiz)\
**Replies:** 1\
**Last updated:** [August 21, 2017, 2:19pm UTC](https://discuss.elastic.co/t/x-pack-machine-learning/97688 "2017-08-21T14:19:21Z")

</div>

i can use x-pack for neural neutwork ?? why i can’t use x-pack for q-learning ?? should i use elasticsearsh for hadoop MLlib spark ?

---

## [Incremental counter in elasticsearch](https://discuss.elastic.co/t/incremental-counter-in-elasticsearch/97780)

<div class="topic-metadata">

**Author:** [@Jayme](https://discuss.elastic.co/u/Jayme)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 2:15pm UTC](https://discuss.elastic.co/t/incremental-counter-in-elasticsearch/97780 "2017-08-21T14:15:12Z")

</div>

Hi, I have a +/- large index of 200M documents, the content inside can be seen as a representation of a “user”. One user/ JSON document can get fairly large. I have a daily cron that does a search for each of the user…

---

## [Issues with custom analyzer when running aggregate queries](https://discuss.elastic.co/t/issues-with-custom-analyzer-when-running-aggregate-queries/97638)

<div class="topic-metadata">

**Author:** [@Jack1](https://discuss.elastic.co/u/Jack1)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 1:44pm UTC](https://discuss.elastic.co/t/issues-with-custom-analyzer-when-running-aggregate-queries/97638 "2017-08-21T13:44:43Z")

</div>

Hello, We are using Elasticsearch v5.3, the issue we are seeing is that the aggregates on a term are not working on a custom defined analyzer (keyword tokenizer). We have created a custom analyzer: { “settings”: { “…

---

## [Maximum number & size of fields (nested) inside a document](https://discuss.elastic.co/t/maximum-number-size-of-fields-nested-inside-a-document/97772)

<div class="topic-metadata">

**Author:** [@Sumaya\_Baig](https://discuss.elastic.co/u/Sumaya_Baig)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 1:06pm UTC](https://discuss.elastic.co/t/maximum-number-size-of-fields-nested-inside-a-document/97772 "2017-08-21T13:06:48Z")

</div>

Hello, I have an ES setup that has an index called customer with details of the customers (user\_id, name,age etc.) and I have created a separate index called transaction which has details of transactions (user\_id,date,i…

---

## [Elasticsearch php client range and search](https://discuss.elastic.co/t/elasticsearch-php-client-range-and-search/96951)

<div class="topic-metadata">

**Author:** [@Akhil\_Prashar](https://discuss.elastic.co/u/Akhil_Prashar)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 11:54am UTC](https://discuss.elastic.co/t/elasticsearch-php-client-range-and-search/96951 "2017-08-21T11:54:12Z")

</div>

I am using the following query : $params = \[‘index’ =\> ‘201706’, ‘type’ =\> ‘youtube’,‘body’ =\> \[‘query’ =\> \[ ‘bool’ =\> \[ ‘filter’ =\> \[‘range’ =\> \[‘created\_at’ =\> \[ ‘gte’=\> ‘2017-06-25 00:00:00’,‘lte’ =\> ‘2017-09-30 00…

---

## [Elasticsearch php client](https://discuss.elastic.co/t/elasticsearch-php-client/97761)

<div class="topic-metadata">

**Author:** [@Akhil\_Prashar](https://discuss.elastic.co/u/Akhil_Prashar)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-php-client/97761 "2017-08-21T11:52:44Z")

</div>

Can anyone tell me what’s wrong with this statement? $params\[‘body’\]\[‘query’\]\[‘bool’\]\[‘must’\]\[‘range’\]\[‘created\_at’\]\[‘gte’\] = $from\[‘lte’\] = $to\[‘should’\]\[ ‘match’\]\[’\_all’\]\[$datasourcefields\] = $keyword; Thanks, Akhil …

---

## [How to avoid "Test abandoned because suite timeout was reached"?](https://discuss.elastic.co/t/how-to-avoid-test-abandoned-because-suite-timeout-was-reached/97749)

<div class="topic-metadata">

**Author:** [@saralor](https://discuss.elastic.co/u/saralor)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 11:23am UTC](https://discuss.elastic.co/t/how-to-avoid-test-abandoned-because-suite-timeout-was-reached/97749 "2017-08-21T11:23:16Z")

</div>

I’ve forked the elasticsearch repo, and when running the tests I get: 12:14:27.619 \[LIFECYCLE\] \[org.gradle.api.Task\] ERROR 0.45s | IntegTestZipClientYamlTestSuiteIT.test {p0=search.aggregation/150\_stats\_metric/Metadata …

---

## [How can I identify fuzzy search results with exact results and suggested results?](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628)

<div class="topic-metadata">

**Author:** [@Vinothkumar](https://discuss.elastic.co/u/Vinothkumar)\
**Replies:** 4\
**Last updated:** [August 21, 2017, 11:28am UTC](https://discuss.elastic.co/t/how-can-i-identify-fuzzy-search-results-with-exact-results-and-suggested-results/96628 "2017-08-21T11:28:27Z")

</div>

Hi Members Currently Elastic Search fuzzy search is giving results though it matches the query exactly or related to the query . But how can I separate results with exact matched results and suggested or related match …

---

## [Java Error-\> NoNodeAvailableException: None of the configured nodes are available](https://discuss.elastic.co/t/java-error-nonodeavailableexception-none-of-the-configured-nodes-are-available/97750)

<div class="topic-metadata">

**Author:** [@NikhilJoshi2](https://discuss.elastic.co/u/NikhilJoshi2)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 11:09am UTC](https://discuss.elastic.co/t/java-error-nonodeavailableexception-none-of-the-configured-nodes-are-available/97750 "2017-08-21T11:09:39Z")

</div>

I am building up my TransportClient using correct cluster name: Settings settings = Settings.builder().put("cluster.name", "myClusterName").build(); Everything works perfectly fine when I deploy my Java code and run El…

---

## [Can we index and store fields that is present only in the mapping?](https://discuss.elastic.co/t/can-we-index-and-store-fields-that-is-present-only-in-the-mapping/97722)

<div class="topic-metadata">

**Author:** [@Navin720](https://discuss.elastic.co/u/Navin720)\
**Replies:** 1\
**Last updated:** [August 21, 2017, 11:05am UTC](https://discuss.elastic.co/t/can-we-index-and-store-fields-that-is-present-only-in-the-mapping/97722 "2017-08-21T11:05:34Z")

</div>

I have a mapping which contains fields id, name and I index the document with fields id,name and age. Is it possible to limit only id and name and not age

---

## [How to add two value from two type?](https://discuss.elastic.co/t/how-to-add-two-value-from-two-type/97652)

<div class="topic-metadata">

**Author:** [@Saurab\_Dahal](https://discuss.elastic.co/u/Saurab_Dahal)\
**Replies:** 6\
**Last updated:** [August 21, 2017, 11:04am UTC](https://discuss.elastic.co/t/how-to-add-two-value-from-two-type/97652 "2017-08-21T11:04:02Z")

</div>

For example, I have this structure index/type1 which has item1 with mrp 20 like this {"item":"item1","mrp"20} and on second type index/type2 which has item1 with mrp 10 like this {"item":"item1","mrp"20}. Now I need t…

---

## [Search\_after How does it function internally?](https://discuss.elastic.co/t/search-after-how-does-it-function-internally/97732)

<div class="topic-metadata">

**Author:** [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Replies:** 1\
**Last updated:** [August 21, 2017, 11:00am UTC](https://discuss.elastic.co/t/search-after-how-does-it-function-internally/97732 "2017-08-21T11:00:54Z")

</div>

As part of ES 5.x search after is introduced to assist in deep pagination. I would like to know some insights into the internal functional mechanism of search-after when compared to from-to . I am not looking for the usa…

---

## [Exclude unwanted test from index](https://discuss.elastic.co/t/exclude-unwanted-test-from-index/97551)

<div class="topic-metadata">

**Author:** [@Henk1](https://discuss.elastic.co/u/Henk1)\
**Replies:** 5\
**Last updated:** [August 21, 2017, 10:09am UTC](https://discuss.elastic.co/t/exclude-unwanted-test-from-index/97551 "2017-08-21T10:09:52Z")

</div>

Dear reader, There may be Web pages that you want to suppress from search results when users search on certain words or phrases. For example, if a Web page consists of the text “the user conference page will be complete…

---

## [How to use more\_like\_this in Java 5.0.0?](https://discuss.elastic.co/t/how-to-use-more-like-this-in-java-5-0-0/97603)

<div class="topic-metadata">

**Author:** [@NikhilJoshi2](https://discuss.elastic.co/u/NikhilJoshi2)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 8:40am UTC](https://discuss.elastic.co/t/how-to-use-more-like-this-in-java-5-0-0/97603 "2017-08-21T08:40:17Z")

</div>

I am trying to implement MoreLikeThisQueryBuilder but it is not returning result. I am wondering if someone can share end-to-end working example in Java API 5.0.0? TransportClient c = .....; String \[\] strArr = new Strin…

---

## [Query with aggregation for every significant term](https://discuss.elastic.co/t/query-with-aggregation-for-every-significant-term/97718)

<div class="topic-metadata">

**Author:** [@Lukas\_Tilch](https://discuss.elastic.co/u/Lukas_Tilch)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 7:27am UTC](https://discuss.elastic.co/t/query-with-aggregation-for-every-significant-term/97718 "2017-08-21T07:27:44Z")

</div>

Hello, I have an index wich contains revisions for files. a file can have multiple revisions, with their own description, user and date. the structure is completely flat. "\_source": { "date": "date", "path": …

---

## [Best way to monitor a single node?](https://discuss.elastic.co/t/best-way-to-monitor-a-single-node/97716)

<div class="topic-metadata">

**Author:** [@siepkes](https://discuss.elastic.co/u/siepkes)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 7:24am UTC](https://discuss.elastic.co/t/best-way-to-monitor-a-single-node/97716 "2017-08-21T07:24:39Z")

</div>

I’m looking in to what the best way is to asses the “health” of a single Elastic Search node (ie. is it running? Has it joined the cluster? etc.). I know about the /\_cluster/health API but that only provides me with the…

---

## [How to delete the es cluster/settings](https://discuss.elastic.co/t/how-to-delete-the-es-cluster-settings/97711)

<div class="topic-metadata">

**Author:** [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Replies:** 1\
**Last updated:** [August 21, 2017, 7:04am UTC](https://discuss.elastic.co/t/how-to-delete-the-es-cluster-settings/97711 "2017-08-21T07:04:37Z")

</div>

in es 5 the cluster settings is error in xxx.xxx.xxx.xxx:9200/\_cluster/settings how i can delete the settings in es 5.x or empty the cluster settings. thanks.

---

## [How to make the system indicies replicas as zero](https://discuss.elastic.co/t/how-to-make-the-system-indicies-replicas-as-zero/97197)

<div class="topic-metadata">

**Author:** [@JAYALAKSHMI](https://discuss.elastic.co/u/JAYALAKSHMI)\
**Replies:** 2\
**Last updated:** [August 21, 2017, 6:22am UTC](https://discuss.elastic.co/t/how-to-make-the-system-indicies-replicas-as-zero/97197 "2017-08-21T06:22:39Z")

</div>

Hi, We have one master,data and client node. We could see that the cluster status become yellow since some of the system indices have replicas as 1. How to change the system indices replicas as zero permanently. Syste…

---

## [The problem of string type aggs](https://discuss.elastic.co/t/the-problem-of-string-type-aggs/97702)

<div class="topic-metadata">

**Author:** [@maleibo](https://discuss.elastic.co/u/maleibo)\
**Replies:** 0\
**Last updated:** [August 21, 2017, 3:32am UTC](https://discuss.elastic.co/t/the-problem-of-string-type-aggs/97702 "2017-08-21T03:32:32Z")

</div>

i have a string field,but it is numeric value.how can i aggregate it? regular expression ? or any other better way?

---

## [Renaming cluster during 2.x to 5.x upgrade](https://discuss.elastic.co/t/renaming-cluster-during-2-x-to-5-x-upgrade/97695)

<div class="topic-metadata">

**Author:** [@Dan\_Markhasin](https://discuss.elastic.co/u/Dan_Markhasin)\
**Replies:** 1\
**Last updated:** [August 21, 2017, 1:59am UTC](https://discuss.elastic.co/t/renaming-cluster-during-2-x-to-5-x-upgrade/97695 "2017-08-21T01:59:26Z")

</div>

We are planning to upgrade our 2.x cluster to 5.5, and as part of the upgrade we need to change the cluster name, as well as the names of all nodes. The plan is to shut down all nodes, install 5.x, change the configurat…

---

## [How many Primary and Replica shards will be allotted for a Dynamic elasticsearch Index (ex:index =\> "sample-%(YYYY.MM.DD)")](https://discuss.elastic.co/t/how-many-primary-and-replica-shards-will-be-allotted-for-a-dynamic-elasticsearch-index-ex-index-sample-yyyy-mm-dd/97460)

<div class="topic-metadata">

**Author:** [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Replies:** 8\
**Last updated:** [August 20, 2017, 10:17pm UTC](https://discuss.elastic.co/t/how-many-primary-and-replica-shards-will-be-allotted-for-a-dynamic-elasticsearch-index-ex-index-sample-yyyy-mm-dd/97460 "2017-08-20T22:17:43Z")

</div>

Hi, My logstash is indexing to a dynamic index “sample-%(YYYY.MM.DD)”). I have assigned Primary Shards and Replica shards as 3 and 2 respectively. But when logstash sends to the dynamic index it’s creating an index(sam…

---

## [Combine exists query](https://discuss.elastic.co/t/combine-exists-query/97685)

<div class="topic-metadata">

**Author:** [@Yuval](https://discuss.elastic.co/u/Yuval)\
**Replies:** 1\
**Last updated:** [August 20, 2017, 7:12pm UTC](https://discuss.elastic.co/t/combine-exists-query/97685 "2017-08-20T19:12:36Z")

</div>

Hey, I want to look for documents who has field x OR field y. I can't use bool:should because i'm using a bool:filter in the same query.. my current query: GET /testing/\_search?size=200 { "query": { "bool": { "f…

---

## [Pass result from first query to another one](https://discuss.elastic.co/t/pass-result-from-first-query-to-another-one/97681)

<div class="topic-metadata">

**Author:** [@moabbas](https://discuss.elastic.co/u/moabbas)\
**Replies:** 1\
**Last updated:** [August 20, 2017, 5:28pm UTC](https://discuss.elastic.co/t/pass-result-from-first-query-to-another-one/97681 "2017-08-20T17:28:10Z")

</div>

GET logstash-2017.08.14/gateway\_logs/\_search { "query": { "bool": { "must": { "match": { "status": "logged in"} } } } } The output is that: { "\_index": "logstash-2017.08.14", "\_type": "gateway\_logs", "\_i…

---

## [How can I assign number of Replica shards at the time of Dynamic Index creation?](https://discuss.elastic.co/t/how-can-i-assign-number-of-replica-shards-at-the-time-of-dynamic-index-creation/97694)

<div class="topic-metadata">

**Author:** [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Replies:** 2\
**Last updated:** [August 20, 2017, 5:12pm UTC](https://discuss.elastic.co/t/how-can-i-assign-number-of-replica-shards-at-the-time-of-dynamic-index-creation/97694 "2017-08-20T17:12:50Z")

</div>

Hi All, I am trying to index logs using logstash to a dynamic index with the format “index=\>sample-%{YYYY.MM}”. How can I assign number of Replica shards at the time of Dynamic Index creation?

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

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