# Elasticsearch

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

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

**Page:** 1985

---

## [JDK version error](https://discuss.elastic.co/t/jdk-version-error/96479)

<div class="topic-metadata">

**Author:** [@maheshpavi](https://discuss.elastic.co/u/maheshpavi)\
**Replies:** 1\
**Last updated:** [August 10, 2017, 7:50am UTC](https://discuss.elastic.co/t/jdk-version-error/96479 "2017-08-10T07:50:28Z")

</div>

Hi All, In my machine we have JDK 1.7 and JDK 1.8 versions and i have updated environmental variabels by pointing with the JDK 1.8 and JRE 1.8 a.Both java -version and javac -version shows JDK 1.8. when i have ran com…

---

## [JVM memory usage problems when indexing percolators](https://discuss.elastic.co/t/jvm-memory-usage-problems-when-indexing-percolators/96558)

<div class="topic-metadata">

**Author:** [@sajaraki](https://discuss.elastic.co/u/sajaraki)\
**Replies:** 0\
**Last updated:** [August 10, 2017, 7:07am UTC](https://discuss.elastic.co/t/jvm-memory-usage-problems-when-indexing-percolators/96558 "2017-08-10T07:07:40Z")

</div>

I would like some help with memory usage issues I've encountered when loading a large number of percolators into an Elasticsearch index. I'm using Elasticsearch 2.3.5. I have a program which is designed to create 1.5 mi…

---

## [1234123123](https://discuss.elastic.co/t/topic/96549)

<div class="topic-metadata">

**Author:** [@echai0](https://discuss.elastic.co/u/echai0)\
**Replies:** 1\
**Last updated:** [August 10, 2017, 7:11am UTC](https://discuss.elastic.co/t/topic/96549 "2017-08-10T07:11:55Z")

</div>

usr/share/logstash/bin/logstash -f /home/cylee/logstash\_prsa.conf --path.settings /etc/logstash curl –XGET -u elastic:changeme localhost:9200/\_cat/indices?v&pretty

---

## [Cannot allocate memory error despite enough memory](https://discuss.elastic.co/t/cannot-allocate-memory-error-despite-enough-memory/95431)

<div class="topic-metadata">

**Author:** [@thefourtheye](https://discuss.elastic.co/u/thefourtheye)\
**Replies:** 5\
**Last updated:** [August 10, 2017, 7:09am UTC](https://discuss.elastic.co/t/cannot-allocate-memory-error-despite-enough-memory/95431 "2017-08-10T07:09:01Z")

</div>

My machine has a 24G RAM. $ free -h total used free shared buffers cached Mem: 23G 257M 23G 0B 12M 39M -/+ buffers/cache: 206M …

---

## [How to modify the ES configuration and reboot ES cluster properly?](https://discuss.elastic.co/t/how-to-modify-the-es-configuration-and-reboot-es-cluster-properly/96367)

<div class="topic-metadata">

**Author:** [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Replies:** 6\
**Last updated:** [August 10, 2017, 4:28am UTC](https://discuss.elastic.co/t/how-to-modify-the-es-configuration-and-reboot-es-cluster-properly/96367 "2017-08-10T04:28:37Z")

</div>

ELK version: 5.5.1 Restart nodes one by one is terrible… Should I refer to this guide? https://www.elastic.co/guide/en/elasticsearch/reference/5.5/rolling-upgrades.html

---

## [Indexing query - Bulk call](https://discuss.elastic.co/t/indexing-query-bulk-call/96541)

<div class="topic-metadata">

**Author:** [@jsbonline2007](https://discuss.elastic.co/u/jsbonline2007)\
**Replies:** 0\
**Last updated:** [August 10, 2017, 3:01am UTC](https://discuss.elastic.co/t/indexing-query-bulk-call/96541 "2017-08-10T03:01:45Z")

</div>

Hi Team, We have base database where the Candidate records are created/update/deleted. In elasticsearch we are using es generated ID. However database do not know the ES ID generated for the record. In a batch process …

---

## [Elasticsearch 5.5.1 docker ecs transport.host set](https://discuss.elastic.co/t/elasticsearch-5-5-1-docker-ecs-transport-host-set/96424)

<div class="topic-metadata">

**Author:** [@whybangbang](https://discuss.elastic.co/u/whybangbang)\
**Replies:** 1\
**Last updated:** [August 10, 2017, 2:58am UTC](https://discuss.elastic.co/t/elasticsearch-5-5-1-docker-ecs-transport-host-set/96424 "2017-08-10T02:58:33Z")

</div>

i run the elasticsearch offical docker images in aws ECS, every container have run ,but the transport.host is “publish\_address {172.17.0.3:9300}, bound\_addresses {\[::\]:9300}” so they can’t become a cluster ,how to set?

---

## [How to write es plugin with spring framework](https://discuss.elastic.co/t/how-to-write-es-plugin-with-spring-framework/96417)

<div class="topic-metadata">

**Author:** [@371c6d055967023937c8](https://discuss.elastic.co/u/371c6d055967023937c8)\
**Replies:** 1\
**Last updated:** [August 10, 2017, 1:37am UTC](https://discuss.elastic.co/t/how-to-write-es-plugin-with-spring-framework/96417 "2017-08-10T01:37:51Z")

</div>

I’m writing a analyze plugin, it reads keywords from database, and synchronize new words every several minutes. I use spring framework as a dependency. My test program runs fine. But when I install my plugin into elast…

---

## [Can we have more than one nodes in same cluster on the same server?](https://discuss.elastic.co/t/can-we-have-more-than-one-nodes-in-same-cluster-on-the-same-server/96514)

<div class="topic-metadata">

**Author:** [@Anshul\_Mittal](https://discuss.elastic.co/u/Anshul_Mittal)\
**Replies:** 1\
**Last updated:** [August 10, 2017, 1:09am UTC](https://discuss.elastic.co/t/can-we-have-more-than-one-nodes-in-same-cluster-on-the-same-server/96514 "2017-08-10T01:09:51Z")

</div>

I have a requirement to handle 1TB data per day? what is the best suitable hardware configuration for this? I want to handle it by starting multiple nodes of elastic search on the same sever under one cluster. I have a s…

---

## [After 1.7 to 5.5.1 Unable to authenticate user for REST request](https://discuss.elastic.co/t/after-1-7-to-5-5-1-unable-to-authenticate-user-for-rest-request/96510)

<div class="topic-metadata">

**Author:** [@JJerpseth](https://discuss.elastic.co/u/JJerpseth)\
**Replies:** 2\
**Last updated:** [August 9, 2017, 10:32pm UTC](https://discuss.elastic.co/t/after-1-7-to-5-5-1-unable-to-authenticate-user-for-rest-request/96510 "2017-08-09T22:32:37Z")

</div>

I am upgrading our nodes from 1.7 to 5.5.1. I split off two master/data nodes and one index node – I have elasticsearch running on all three and kibana running on one node. Even the simplest request is refused curl -…

---

## [Sort alphanumeric values of a field](https://discuss.elastic.co/t/sort-alphanumeric-values-of-a-field/96505)

<div class="topic-metadata">

**Author:** [@jth1](https://discuss.elastic.co/u/jth1)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 8:20pm UTC](https://discuss.elastic.co/t/sort-alphanumeric-values-of-a-field/96505 "2017-08-09T20:20:09Z")

</div>

When applied sort ascending the values bp1, bp3, bp20, bp2, bp31, bp10, the order returned is bp1, bp10, bp2, bp20, bp3, bp31. I wanted it to be ordered like bp1, bp2, bp2, bp10, bp20, bp31. How can I achieve this?

---

## [Limit Results to \_source](https://discuss.elastic.co/t/limit-results-to--source/96157)

<div class="topic-metadata">

**Author:** [@Velusamy\_Velu](https://discuss.elastic.co/u/Velusamy_Velu)\
**Replies:** 7\
**Last updated:** [August 9, 2017, 7:13pm UTC](https://discuss.elastic.co/t/limit-results-to--source/96157 "2017-08-09T19:13:41Z")

</div>

Friends: I have this single document indexed - { "name":"Jane Doe", "age":20, "aka":"Jane" } When I run the query - POST \_search {"query":{"match\_all":{}}} ES produces this result - { "took":1, "…

---

## [Can a special character be used in an object \_type?](https://discuss.elastic.co/t/can-a-special-character-be-used-in-an-object--type/95933)

<div class="topic-metadata">

**Author:** [@YeeP](https://discuss.elastic.co/u/YeeP)\
**Replies:** 5\
**Last updated:** [August 9, 2017, 5:36pm UTC](https://discuss.elastic.co/t/can-a-special-character-be-used-in-an-object--type/95933 "2017-08-09T17:36:31Z")

</div>

I am just getting ready to start a new application. One of the objects is going to be based on a distribution list name that will come from the front end . Could I use this distribution list name as a \_type without remov…

---

## [Geo based data flow design](https://discuss.elastic.co/t/geo-based-data-flow-design/96354)

<div class="topic-metadata">

**Author:** [@wenlong\_zhao](https://discuss.elastic.co/u/wenlong_zhao)\
**Replies:** 2\
**Last updated:** [August 9, 2017, 5:34pm UTC](https://discuss.elastic.co/t/geo-based-data-flow-design/96354 "2017-08-09T17:34:45Z")

</div>

Hey guys, New to the elastic search. I’m designing a service to provide menu/store search to our mobile app. Data will be restaurants menu items and restaurant it self. Say, customer opens our application, we get the…

---

## [Executing apache or nginx or linux system file as stdin](https://discuss.elastic.co/t/executing-apache-or-nginx-or-linux-system-file-as-stdin/96484)

<div class="topic-metadata">

**Author:** [@Blason](https://discuss.elastic.co/u/Blason)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 5:13pm UTC](https://discuss.elastic.co/t/executing-apache-or-nginx-or-linux-system-file-as-stdin/96484 "2017-08-09T17:13:09Z")

</div>

Hi Guys, I have ELK loaded on CentOS7 with nginx reverse proxy, since I am still learning basics for ELK; wanted to know if I can fed nginx logsor apache logs or other linux system logs as stdin to my ELK? If so can som…

---

## [Restart replication on elasticsearch 2.3.3 without restart](https://discuss.elastic.co/t/restart-replication-on-elasticsearch-2-3-3-without-restart/96455)

<div class="topic-metadata">

**Author:** [@zozo6015](https://discuss.elastic.co/u/zozo6015)\
**Replies:** 2\
**Last updated:** [August 9, 2017, 4:55pm UTC](https://discuss.elastic.co/t/restart-replication-on-elasticsearch-2-3-3-without-restart/96455 "2017-08-09T16:55:27Z")

</div>

Hello I have an elasticsearch cluster 2.3.3 and the cluster stopped replicating because one of the nodes had the disk amost full. After I have solved the full disk issue the replication does not restart by itself. Is the…

---

## [ES Autocompletion Strategies](https://discuss.elastic.co/t/es-autocompletion-strategies/96483)

<div class="topic-metadata">

**Author:** [@Nithin\_Chandy](https://discuss.elastic.co/u/Nithin_Chandy)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 4:54pm UTC](https://discuss.elastic.co/t/es-autocompletion-strategies/96483 "2017-08-09T16:54:53Z")

</div>

As per my research, autocompletion in ES can be implemented in five (may be more than five) different ways Edge Ngrams Completion Suggesters Prefix queries and Filters Phrase Prefix matchers Wildcard queries (worst ide…

---

## [Unique values - Terms aggregation or Wildcard query](https://discuss.elastic.co/t/unique-values-terms-aggregation-or-wildcard-query/96480)

<div class="topic-metadata">

**Author:** [@Nithin\_Chandy](https://discuss.elastic.co/u/Nithin_Chandy)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 4:50pm UTC](https://discuss.elastic.co/t/unique-values-terms-aggregation-or-wildcard-query/96480 "2017-08-09T16:50:24Z")

</div>

What’s the best way to get all the unique terms for a field? Can use either terms aggregation or a wild card query (and then reduce it to unique terms at the application side)? { "query": { "wildcard" : { "t…

---

## [Ctx.\_field\_names is null](https://discuss.elastic.co/t/ctx--field-names-is-null/96476)

<div class="topic-metadata">

**Author:** [@simonlucalandi](https://discuss.elastic.co/u/simonlucalandi)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 4:44pm UTC](https://discuss.elastic.co/t/ctx--field-names-is-null/96476 "2017-08-09T16:44:08Z")

</div>

Hello. I’m running ES 5.5 I need to delete many fields from an index; all of them have the name starting with “amp”, so I’m trying to use the \_reindex API with an inline script like this: POST \_reindex { "source": {…

---

## [Updating ElasticSearch Document](https://discuss.elastic.co/t/updating-elasticsearch-document/95759)

<div class="topic-metadata">

**Author:** [@mrc](https://discuss.elastic.co/u/mrc)\
**Replies:** 3\
**Last updated:** [August 9, 2017, 3:41pm UTC](https://discuss.elastic.co/t/updating-elasticsearch-document/95759 "2017-08-09T15:41:18Z")

</div>

Hello, We are using ElasticStack 5.5.1(LogStash, ElasticSearch & Kibana). We have our Weblogic HTTP Access logs processed by LogStash to ElasticSearch - with little of enriching the file by adding our offices in other s…

---

## [Using Serial Differencing Aggregation in .NET](https://discuss.elastic.co/t/using-serial-differencing-aggregation-in-net/96402)

<div class="topic-metadata">

**Author:** [@ximenling20](https://discuss.elastic.co/u/ximenling20)\
**Replies:** 3\
**Last updated:** [August 9, 2017, 1:57pm UTC](https://discuss.elastic.co/t/using-serial-differencing-aggregation-in-net/96402 "2017-08-09T13:57:05Z")

</div>

I’m tring to use Serial Differencing Aggregation in my C# application. The function was working properly. However, I found there is no instruction to handle the results of Serial Differencing, but only for Sum Aggregati…

---

## [Copy\_to in Nest Attributes](https://discuss.elastic.co/t/copy-to-in-nest-attributes/95724)

<div class="topic-metadata">

**Author:** [@mjgasior](https://discuss.elastic.co/u/mjgasior)\
**Replies:** 1\
**Last updated:** [August 9, 2017, 1:25pm UTC](https://discuss.elastic.co/t/copy-to-in-nest-attributes/95724 "2017-08-09T13:25:10Z")

</div>

Is it possible to use copy\_to in Nest attributes? I know, there is an option to use the Fluent Mapping (but the CopyTo doesn’t work with string) instead of Attribute Mapping. And if I do make a “copy\_to”, do I have to ad…

---

## [Script to create field if it does not already exist](https://discuss.elastic.co/t/script-to-create-field-if-it-does-not-already-exist/95863)

<div class="topic-metadata">

**Author:** [@samdev](https://discuss.elastic.co/u/samdev)\
**Replies:** 2\
**Last updated:** [August 9, 2017, 11:37am UTC](https://discuss.elastic.co/t/script-to-create-field-if-it-does-not-already-exist/95863 "2017-08-09T11:37:35Z")

</div>

I have created a script that records the history of any updates to a document. It simply copies the current object to a history object. That part is working fine. The problem I have is that the tag names need to be dyna…

---

## [Add a new field to document based on the value of the previous with the same correlation id](https://discuss.elastic.co/t/add-a-new-field-to-document-based-on-the-value-of-the-previous-with-the-same-correlation-id/96379)

<div class="topic-metadata">

**Author:** [@vb4t](https://discuss.elastic.co/u/vb4t)\
**Replies:** 5\
**Last updated:** [August 9, 2017, 11:36am UTC](https://discuss.elastic.co/t/add-a-new-field-to-document-based-on-the-value-of-the-previous-with-the-same-correlation-id/96379 "2017-08-09T11:36:40Z")

</div>

Hello. I want to index following logs in elasticsearch: message1 correlation1 urlfield message2 correlation6 message3 correlation1 message4 correlation1 I want documents message3 and message4 to contain the urlfield fi…

---

## [Snapshot/Restore to Azure repository (premium)](https://discuss.elastic.co/t/snapshot-restore-to-azure-repository-premium/96427)

<div class="topic-metadata">

**Author:** [@elk\_user1](https://discuss.elastic.co/u/elk_user1)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 11:23am UTC](https://discuss.elastic.co/t/snapshot-restore-to-azure-repository-premium/96427 "2017-08-09T11:23:32Z")

</div>

Hello, I have an ES cluster (premium Azure VMs) and wanted to take backup on Azure. In documentation, its mentioned premium storage accounts are not supported. https://www.elastic.co/guide/en/elasticsearch/plugins/5.…

---

## [How to execute aggregation?](https://discuss.elastic.co/t/how-to-execute-aggregation/96404)

<div class="topic-metadata">

**Author:** [@yevsh](https://discuss.elastic.co/u/yevsh)\
**Replies:** 2\
**Last updated:** [August 9, 2017, 10:24am UTC](https://discuss.elastic.co/t/how-to-execute-aggregation/96404 "2017-08-09T10:24:33Z")

</div>

Not able to run aggregation query. This is what I am doing: 1)Mapping creation: curl -XPUT 'localhost:9200/items?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "item": { "properties": { …

---

## [How to set fields “unsearchable” and “unaggregatable”](https://discuss.elastic.co/t/how-to-set-fields-unsearchable-and-unaggregatable/96413)

<div class="topic-metadata">

**Author:** [@John\_ax](https://discuss.elastic.co/u/John_ax)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 9:57am UTC](https://discuss.elastic.co/t/how-to-set-fields-unsearchable-and-unaggregatable/96413 "2017-08-09T09:57:52Z")

</div>

Hi, I’m using Elasticsearch 5.5 and Kibana 5.5.after some google and test ,I stil had some questions: how can I mark \_index and \_type unaggreagable? I noticed that if I have the template mapping: "type": "string", "doc…

---

## [Querying elasticsearch with javascript](https://discuss.elastic.co/t/querying-elasticsearch-with-javascript/96369)

<div class="topic-metadata">

**Author:** [@MRamzan](https://discuss.elastic.co/u/MRamzan)\
**Replies:** 0\
**Last updated:** [August 9, 2017, 3:49am UTC](https://discuss.elastic.co/t/querying-elasticsearch-with-javascript/96369 "2017-08-09T03:49:14Z")

</div>

I am new to elasticsearch. And I have two documents which are JarFileData and ClassData. I have linked those two documents with jarFileId field. This is the ClassData { "\_id" : ObjectId("59881021e950041f0c6fa1fa"), "Cl…

---

## [\[newbie here\] can't seem to create snapshot using both fs and s3](https://discuss.elastic.co/t/newbie-here-cant-seem-to-create-snapshot-using-both-fs-and-s3/95974)

<div class="topic-metadata">

**Author:** [@blacksensei](https://discuss.elastic.co/u/blacksensei)\
**Replies:** 3\
**Last updated:** [August 9, 2017, 9:19am UTC](https://discuss.elastic.co/t/newbie-here-cant-seem-to-create-snapshot-using-both-fs-and-s3/95974 "2017-08-09T09:19:41Z")

</div>

Hello All, I am trying to learn elasticsearch by building an app. I wanted to see what snapshots looks like and finally have it in aws elasticsearch with some API gateway on top of it. It doesn't seem to go as planned.…

---

## [Filter nested objects from a document](https://discuss.elastic.co/t/filter-nested-objects-from-a-document/96327)

<div class="topic-metadata">

**Author:** [@santrod](https://discuss.elastic.co/u/santrod)\
**Replies:** 1\
**Last updated:** [August 9, 2017, 8:55am UTC](https://discuss.elastic.co/t/filter-nested-objects-from-a-document/96327 "2017-08-09T08:55:30Z")

</div>

Hi all, I'm starting with ES, I'm doing some tests and right now I have a doubt, I explain it: in my example each document are a shoes and each one has a nested object (items) which contains the color, the sizes and a …

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

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