# Elasticsearch

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

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

**Page:** 1829

---

## [Elasticsearch listening on /127.0.0.1:9001 . Also shows Main PID: 12471 (code=exited, status=1/FAILURE) error messages- ubuntu server 16.04.3](https://discuss.elastic.co/t/elasticsearch-listening-on-127-0-0-1-9001-also-shows-main-pid-12471-code-exited-status-1-failure-error-messages-ubuntu-server-16-04-3/114810)

<div class="topic-metadata">

**Author:** [@bsaitechnosales](https://discuss.elastic.co/u/bsaitechnosales)\
**Replies:** 25\
**Last updated:** [January 14, 2018, 5:16am UTC](https://discuss.elastic.co/t/elasticsearch-listening-on-127-0-0-1-9001-also-shows-main-pid-12471-code-exited-status-1-failure-error-messages-ubuntu-server-16-04-3/114810 "2018-01-14T05:16:51Z")

</div>

Hi I am not been able to run sonarqube due to below mentioned log issue. Please advise how can i solved the issue root@storage:/opt/sonar/logs# more sonar.log --\> Wrapper Started as Daemon Launching a JVM... Wrapper (…

---

## [Query without a constant\_score and with constant\_score](https://discuss.elastic.co/t/query-without-a-constant-score-and-with-constant-score/115413)

<div class="topic-metadata">

**Author:** [@sibh8](https://discuss.elastic.co/u/sibh8)\
**Replies:** 3\
**Last updated:** [January 13, 2018, 11:52pm UTC](https://discuss.elastic.co/t/query-without-a-constant-score-and-with-constant-score/115413 "2018-01-13T23:52:09Z")

</div>

Hello, I have the following data set. POST /my\_store/products/\_bulk { "index": { "\_id": 1 }} { "price" : 10, "productID" : "XHDK-A-1293-#fJ3" } { "index": { "\_id": 2 }} { "price" : 20, "productID" : "KDKE-B-9947-#kL5" …

---

## [Different size of disk space for cluster nodes](https://discuss.elastic.co/t/different-size-of-disk-space-for-cluster-nodes/115358)

<div class="topic-metadata">

**Author:** [@saad](https://discuss.elastic.co/u/saad)\
**Replies:** 1\
**Last updated:** [January 13, 2018, 8:07pm UTC](https://discuss.elastic.co/t/different-size-of-disk-space-for-cluster-nodes/115358 "2018-01-13T20:07:42Z")

</div>

If I make cluster with different disk space nodes for example 3 nodes one with 1TB and two with 512GB. and I did shards 3 and replica 1. How elasticsearch will distribute shards and replica on these different size nodes…

---

## [API Requesting all documents in a certain range](https://discuss.elastic.co/t/api-requesting-all-documents-in-a-certain-range/115404)

<div class="topic-metadata">

**Author:** [@THUND3R](https://discuss.elastic.co/u/THUND3R)\
**Replies:** 4\
**Last updated:** [January 13, 2018, 8:07pm UTC](https://discuss.elastic.co/t/api-requesting-all-documents-in-a-certain-range/115404 "2018-01-13T20:07:14Z")

</div>

Good afternoon! How to correctly make a request to the elastic to get all the documents that fit the query for example: "query": { "bool": { "must": \[ { "exists": { "field": "somefield" } } \], "filter": \[ { "range": { "…

---

## [ElasticSearch : More indices vs More types](https://discuss.elastic.co/t/elasticsearch-more-indices-vs-more-types/114069)

<div class="topic-metadata">

**Author:** [@ssg](https://discuss.elastic.co/u/ssg)\
**Replies:** 2\
**Last updated:** [January 13, 2018, 5:49pm UTC](https://discuss.elastic.co/t/elasticsearch-more-indices-vs-more-types/114069 "2018-01-13T17:49:28Z")

</div>

Hi All, We are using elasticsearch for the following usecase. Elasticsearch Version : 5.1.1 Note: We are using AWS managed ElasticSearch We have a multi-tenanted system where in each tenant stores data for multiple t…

---

## [Why does hyphenation\_decompounder require word\_list?](https://discuss.elastic.co/t/why-does-hyphenation-decompounder-require-word-list/114567)

<div class="topic-metadata">

**Author:** [@hbruch](https://discuss.elastic.co/u/hbruch)\
**Replies:** 2\
**Last updated:** [January 13, 2018, 4:41pm UTC](https://discuss.elastic.co/t/why-does-hyphenation-decompounder-require-word-list/114567 "2018-01-13T16:41:56Z")

</div>

HyphenationCompoundWordTokenFilterFactory inherits from AbstractCompoundWordTokenFilterFactory , which performs a mandatory check for a supplied word\_list. As the underlying lucene HyphenationCompoundWordTokenFilter do…

---

## [New User - too dumb to create first index - please help](https://discuss.elastic.co/t/new-user-too-dumb-to-create-first-index-please-help/113861)

<div class="topic-metadata">

**Author:** [@neergttocsdivad](https://discuss.elastic.co/u/neergttocsdivad)\
**Replies:** 4\
**Last updated:** [January 13, 2018, 4:02pm UTC](https://discuss.elastic.co/t/new-user-too-dumb-to-create-first-index-please-help/113861 "2018-01-13T16:02:16Z")

</div>

I would like to experiment with elastic before using it for a research project I am developing. The project data is contained in unstructured pdf files, but for this exercise I am using Wikipedia. My computer is running…

---

## [How to write must and must not range query in Highlevel client](https://discuss.elastic.co/t/how-to-write-must-and-must-not-range-query-in-highlevel-client/114526)

<div class="topic-metadata">

**Author:** [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Replies:** 8\
**Last updated:** [January 13, 2018, 3:04pm UTC](https://discuss.elastic.co/t/how-to-write-must-and-must-not-range-query-in-highlevel-client/114526 "2018-01-13T15:04:19Z")

</div>

Hi i write a aggregation query in new java api using HighLevelClient. I need help to add must and must not range query for filtering the data. How can i add it ? Is it possible to add json query with query builder ? M…

---

## [ERROR Unable to locate plugin type for IfFileName](https://discuss.elastic.co/t/error-unable-to-locate-plugin-type-for-iffilename/115398)

<div class="topic-metadata">

**Author:** [@ilkiny](https://discuss.elastic.co/u/ilkiny)\
**Replies:** 9\
**Last updated:** [January 13, 2018, 3:01pm UTC](https://discuss.elastic.co/t/error-unable-to-locate-plugin-type-for-iffilename/115398 "2018-01-13T15:01:23Z")

</div>

Hello there, I am faced with such an error, what is the cause? Log Stay with love.

---

## [Remove deprecated setting via API](https://discuss.elastic.co/t/remove-deprecated-setting-via-api/115406)

<div class="topic-metadata">

**Author:** [@Jorrit\_Salverda](https://discuss.elastic.co/u/Jorrit_Salverda)\
**Replies:** 2\
**Last updated:** [January 13, 2018, 1:40pm UTC](https://discuss.elastic.co/t/remove-deprecated-setting-via-api/115406 "2018-01-13T13:40:46Z")

</div>

I've upgrade to elasticsearch 6.1.1. When trying to update cluster settings it can't because it still has retired settings. Running curl 'localhost/\_cluster/settings?pretty' returns the following response which still ha…

---

## [Can't make JVM size settings stick](https://discuss.elastic.co/t/cant-make-jvm-size-settings-stick/115361)

<div class="topic-metadata">

**Author:** [@Callahan](https://discuss.elastic.co/u/Callahan)\
**Replies:** 1\
**Last updated:** [January 13, 2018, 2:53am UTC](https://discuss.elastic.co/t/cant-make-jvm-size-settings-stick/115361 "2018-01-13T02:53:39Z")

</div>

Hi, I'm having a problem with ElasticSearch 6.0.0 ignoring the JVM settings file (located in C:\\elasticsearch\\config) and setting the JVM heap size to 1GB. This then causes ES to stop as it runs out of memory. I've trie…

---

## [Error while deleting an index in elasticsearch](https://discuss.elastic.co/t/error-while-deleting-an-index-in-elasticsearch/115384)

<div class="topic-metadata">

**Author:** [@pavithrakc](https://discuss.elastic.co/u/pavithrakc)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 11:46pm UTC](https://discuss.elastic.co/t/error-while-deleting-an-index-in-elasticsearch/115384 "2018-01-12T23:46:50Z")

</div>

One of my cluster status turned to red while I was trying to delete documents from an index. Out of 5 shards, 4 were stuck at "INITIALIZING" state and I could not reroute it since it is a primary shard. Restart of elas…

---

## [Improve Elastic Cluster Performance/Indexing Rate](https://discuss.elastic.co/t/improve-elastic-cluster-performance-indexing-rate/115345)

<div class="topic-metadata">

**Author:** [@ELK\_GB](https://discuss.elastic.co/u/ELK_GB)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 10:04pm UTC](https://discuss.elastic.co/t/improve-elastic-cluster-performance-indexing-rate/115345 "2018-01-12T22:04:53Z")

</div>

Hi, i'm asking this probably for the second time as most resources out there are identical and I need some more answers/help to determine the proper way of improving my ES cluster performance. We are using ES 5.4.0 and…

---

## [Why is InternalCardinality a final class?](https://discuss.elastic.co/t/why-is-internalcardinality-a-final-class/114144)

<div class="topic-metadata">

**Author:** [@reeselevine](https://discuss.elastic.co/u/reeselevine)\
**Replies:** 2\
**Last updated:** [January 12, 2018, 6:36pm UTC](https://discuss.elastic.co/t/why-is-internalcardinality-a-final-class/114144 "2018-01-12T18:36:24Z")

</div>

I'm wondering if there's a good reason why the InternalCardinality class in the Elasticsearch java client is final, as it makes it hard to mock it for testing purposes. Especially since many of the other internal aggrega…

---

## [Timeout issue while creating index](https://discuss.elastic.co/t/timeout-issue-while-creating-index/115327)

<div class="topic-metadata">

**Author:** [@uvarisubash](https://discuss.elastic.co/u/uvarisubash)\
**Replies:** 4\
**Last updated:** [January 12, 2018, 6:34pm UTC](https://discuss.elastic.co/t/timeout-issue-while-creating-index/115327 "2018-01-12T18:34:23Z")

</div>

Hi , I am trying to create new index through Dev Tool. i am getting a time out error. Creation procedure: PUT test\_index { "settings" : { "index" : { "number\_of\_shards" : 10, "number\_of\_replicas" : 3 } } } Er…

---

## [When deleting by query api all my documents get deleted](https://discuss.elastic.co/t/when-deleting-by-query-api-all-my-documents-get-deleted/115341)

<div class="topic-metadata">

**Author:** [@Martin\_Rioux](https://discuss.elastic.co/u/Martin_Rioux)\
**Replies:** 2\
**Last updated:** [January 12, 2018, 6:25pm UTC](https://discuss.elastic.co/t/when-deleting-by-query-api-all-my-documents-get-deleted/115341 "2018-01-12T18:25:48Z")

</div>

Hi, I performed the same operation for 6 months to delete document older than 6 months with the delete by query api. "query": { "range": { "created": { "lte": "now-150d/d" } } } I don't know why but today all my …

---

## [TransportClient node failures](https://discuss.elastic.co/t/transportclient-node-failures/115347)

<div class="topic-metadata">

**Author:** [@ashokm](https://discuss.elastic.co/u/ashokm)\
**Replies:** 0\
**Last updated:** [January 12, 2018, 6:05pm UTC](https://discuss.elastic.co/t/transportclient-node-failures/115347 "2018-01-12T18:05:12Z")

</div>

We are on ES 2.4 with 5 Nodes. We are creating 1 replica for all indices. We are using transport client to connect to cluster for search and Index operations. When one of the nodes go down, we are getting various errors …

---

## [Timezone in ES Python Client](https://discuss.elastic.co/t/timezone-in-es-python-client/114099)

<div class="topic-metadata">

**Author:** [@shin1](https://discuss.elastic.co/u/shin1)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 5:43pm UTC](https://discuss.elastic.co/t/timezone-in-es-python-client/114099 "2018-01-12T17:43:53Z")

</div>

Hi All, I'm new to ES Python Client (https://elasticsearch-py.readthedocs.io/en/master/) and have an odd issue on query result from Elasticsearch.search(). Queried data has a datetime field holding UTC timestamp but El…

---

## [Painless: exponential operator](https://discuss.elastic.co/t/painless-exponential-operator/114938)

<div class="topic-metadata">

**Author:** [@mahtuag](https://discuss.elastic.co/u/mahtuag)\
**Replies:** 2\
**Last updated:** [January 12, 2018, 5:30pm UTC](https://discuss.elastic.co/t/painless-exponential-operator/114938 "2018-01-12T17:30:32Z")

</div>

Is there an exponential operator in painless? I see that both \*\* and ^ don't work. Also, is there a good collection of mathematical functions I can use with painless when I need to do non-trivial computations?

---

## [Using \_user.Roles in role template](https://discuss.elastic.co/t/using-user-roles-in-role-template/115326)

<div class="topic-metadata">

**Author:** [@jchannon](https://discuss.elastic.co/u/jchannon)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 5:23pm UTC](https://discuss.elastic.co/t/using-user-roles-in-role-template/115326 "2018-01-12T17:23:31Z")

</div>

I have the below query template in my role: {"template":{"source":{"match":{"role.keyword","{{\_user.roles}}"}}}} role in that example is an array on a document. \_user.roles is obviously an array. When I log in as a us…

---

## [Document level security query causing error/no data](https://discuss.elastic.co/t/document-level-security-query-causing-error-no-data/115145)

<div class="topic-metadata">

**Author:** [@jchannon](https://discuss.elastic.co/u/jchannon)\
**Replies:** 9\
**Last updated:** [January 12, 2018, 3:28pm UTC](https://discuss.elastic.co/t/document-level-security-query-causing-error-no-data/115145 "2018-01-12T15:28:06Z")

</div>

I'm following the docs here https://www.elastic.co/guide/en/x-pack/6.1/field-and-document-access-control.html#document-level-security And I've set up a role and a user as shown in the screenshots below. I think I origi…

---

## [JestClient is throwing SocketTimeoutException after being idle for sometime](https://discuss.elastic.co/t/jestclient-is-throwing-sockettimeoutexception-after-being-idle-for-sometime/115312)

<div class="topic-metadata">

**Author:** [@pkgajulapalli](https://discuss.elastic.co/u/pkgajulapalli)\
**Replies:** 0\
**Last updated:** [January 12, 2018, 2:33pm UTC](https://discuss.elastic.co/t/jestclient-is-throwing-sockettimeoutexception-after-being-idle-for-sometime/115312 "2018-01-12T14:33:14Z")

</div>

I'm using JEST to connect to elasticsearch in a spring-boot application. When the application goes idle for some time, then the JestClient is throwing SocketTImeoutException. I'm creating the client using a bean: @Bean…

---

## [Cluster keeps going into yellow even after scaling out nodes (client & data)](https://discuss.elastic.co/t/cluster-keeps-going-into-yellow-even-after-scaling-out-nodes-client-data/115304)

<div class="topic-metadata">

**Author:** [@xamox](https://discuss.elastic.co/u/xamox)\
**Replies:** 0\
**Last updated:** [January 12, 2018, 2:13pm UTC](https://discuss.elastic.co/t/cluster-keeps-going-into-yellow-even-after-scaling-out-nodes-client-data/115304 "2018-01-12T14:13:06Z")

</div>

So for some reason my cluster now seems to be constantly going into a yellow state. I've added more data & client nodes and will tell it to reassign the shards and this seems to work for a little bit but then seems to h…

---

## [Fewer shards = less disk space used?](https://discuss.elastic.co/t/fewer-shards-less-disk-space-used/115287)

<div class="topic-metadata">

**Author:** [@cosmo](https://discuss.elastic.co/u/cosmo)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 1:44pm UTC](https://discuss.elastic.co/t/fewer-shards-less-disk-space-used/115287 "2018-01-12T13:44:18Z")

</div>

Hello Hopefully a quick and easy question; Does having fewer shards per index equate to less disk space being used? When I set off on my elastic adventure a year ago I used the default 5 shards per index. I now have 4…

---

## [ES5.5 NodeClient State out of sync](https://discuss.elastic.co/t/es5-5-nodeclient-state-out-of-sync/114168)

<div class="topic-metadata">

**Author:** [@jcantrill](https://discuss.elastic.co/u/jcantrill)\
**Replies:** 2\
**Last updated:** [January 12, 2018, 1:44pm UTC](https://discuss.elastic.co/t/es5-5-nodeclient-state-out-of-sync/114168 "2018-01-12T13:44:02Z")

</div>

We are migrating a plugin from 2.4 to 5.5 and are experiencing a difference in the NodeClient provided during initialization. Our plugin is given reference to a NodeClient in the Plugin#createComponents which is used in…

---

## [Elasticsearch 6.1 mvn Dependencies tree. How to find missing and automatically include dependencies](https://discuss.elastic.co/t/elasticsearch-6-1-mvn-dependencies-tree-how-to-find-missing-and-automatically-include-dependencies/115248)

<div class="topic-metadata">

**Author:** [@satyarajp](https://discuss.elastic.co/u/satyarajp)\
**Replies:** 7\
**Last updated:** [January 12, 2018, 1:00pm UTC](https://discuss.elastic.co/t/elasticsearch-6-1-mvn-dependencies-tree-how-to-find-missing-and-automatically-include-dependencies/115248 "2018-01-12T13:00:50Z")

</div>

Hi Team, SEVERE: Exception sending context initialized event to listener instance of class kv.complex.web.LifecycleListener java.lang.NoClassDefFoundError: org/apache/lucene/util/Accountable at java.lang.ClassLo…

---

## [Adding new field to existing index in ES 5.6](https://discuss.elastic.co/t/adding-new-field-to-existing-index-in-es-5-6/114854)

<div class="topic-metadata">

**Author:** [@Sridhar](https://discuss.elastic.co/u/Sridhar)\
**Replies:** 7\
**Last updated:** [January 12, 2018, 12:24pm UTC](https://discuss.elastic.co/t/adding-new-field-to-existing-index-in-es-5-6/114854 "2018-01-12T12:24:26Z")

</div>

Hi, I have created a index with 3 field using CSV files. Now I want to add another 2 fields in to the index is this possible? current fields date, country, customer, count. new fields date, country, customer, under…

---

## [Use minimum\_should\_match in search with java client](https://discuss.elastic.co/t/use-minimum-should-match-in-search-with-java-client/115244)

<div class="topic-metadata">

**Author:** [@roi\_adadi](https://discuss.elastic.co/u/roi_adadi)\
**Replies:** 2\
**Last updated:** [January 12, 2018, 10:50am UTC](https://discuss.elastic.co/t/use-minimum-should-match-in-search-with-java-client/115244 "2018-01-12T10:50:56Z")

</div>

looking all over, I couldn't find a way to include minimum\_should\_match param our match query when using the java client. we are running on elastic search 2.4. this become a major need now in our system and reindexing/c…

---

## [Calculate "age" as scripted field](https://discuss.elastic.co/t/calculate-age-as-scripted-field/115274)

<div class="topic-metadata">

**Author:** [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Replies:** 0\
**Last updated:** [January 12, 2018, 10:41am UTC](https://discuss.elastic.co/t/calculate-age-as-scripted-field/115274 "2018-01-12T10:41:31Z")

</div>

Hi. I have an Event table where for every document I have a timestamp. I want to have a scripted field Lifetime which is today - timestamp of an event converted do days(weeks). How I do it with painless? I am not very go…

---

## [Elasticsearch 2.0 geo distance search not working with location array](https://discuss.elastic.co/t/elasticsearch-2-0-geo-distance-search-not-working-with-location-array/115236)

<div class="topic-metadata">

**Author:** [@soumya.plavaga1](https://discuss.elastic.co/u/soumya.plavaga1)\
**Replies:** 6\
**Last updated:** [January 12, 2018, 10:39am UTC](https://discuss.elastic.co/t/elasticsearch-2-0-geo-distance-search-not-working-with-location-array/115236 "2018-01-12T10:39:24Z")

</div>

I am facing an issue with geo\_distance query in case of multiple locations within a single document. While filtering, it is always considering the first one in the list and ignoring the rest of the locations within the l…

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

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