# Elasticsearch

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

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

**Page:** 1127

---

## [Count distinct with conditions using Count API](https://discuss.elastic.co/t/count-distinct-with-conditions-using-count-api/203283)

<div class="topic-metadata">

**Author:** [@killanch](https://discuss.elastic.co/u/killanch)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 12:05pm UTC](https://discuss.elastic.co/t/count-distinct-with-conditions-using-count-api/203283 "2019-10-14T12:05:02Z")

</div>

Is there a way to count distinct records/documents that match a given condition? I am aware that \_search API with cardinality aggregation can be used for this. But is there a way this can be achieved using \_count API?

---

## [Crud form for watches](https://discuss.elastic.co/t/crud-form-for-watches/203303)

<div class="topic-metadata">

**Author:** [@real\_legend](https://discuss.elastic.co/u/real_legend)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 12:03pm UTC](https://discuss.elastic.co/t/crud-form-for-watches/203303 "2019-10-14T12:03:31Z")

</div>

hi there, i want to design a table to show list of all watchers like kibana (name,id,state,....) and also a form for create, update and delete watchers. but the docs of elastic in this topic is not enough for me. what…

---

## ["index\_out\_of\_bounds\_exception](https://discuss.elastic.co/t/index-out-of-bounds-exception/203375)

<div class="topic-metadata">

**Author:** [@RamyaGowda](https://discuss.elastic.co/u/RamyaGowda)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 12:02pm UTC](https://discuss.elastic.co/t/index-out-of-bounds-exception/203375 "2019-10-14T12:02:34Z")

</div>

Hi, When using scripts in term aggregation i am getting "index\_out\_of\_bounds\_exception why is this happening { "took" : 22, "timed\_out" : false, "\_shards" : { "total" : 3, "successful" : 2, "skipped" : 0, "fa…

---

## [Get List of Firing watches in Elasticsearch](https://discuss.elastic.co/t/get-list-of-firing-watches-in-elasticsearch/203307)

<div class="topic-metadata">

**Author:** [@real\_legend](https://discuss.elastic.co/u/real_legend)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 12:00pm UTC](https://discuss.elastic.co/t/get-list-of-firing-watches-in-elasticsearch/203307 "2019-10-14T12:00:57Z")

</div>

hi everyone, i want to get list of watches that their state is "Firing" ! how can i do this? can any one help me?

---

## [All states of watcher status](https://discuss.elastic.co/t/all-states-of-watcher-status/203313)

<div class="topic-metadata">

**Author:** [@real\_legend](https://discuss.elastic.co/u/real_legend)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 11:59am UTC](https://discuss.elastic.co/t/all-states-of-watcher-status/203313 "2019-10-14T11:59:55Z")

</div>

there is a state object in status . what's the all possible states of status ? i can see only active:true : "status": {"state": {"active":true, "timestamp":"2019-10-12T09:48:55.058Z" } } is there any way to know …

---

## [Gc.log elasticsearch](https://discuss.elastic.co/t/gc-log-elasticsearch/202215)

<div class="topic-metadata">

**Author:** [@thebeaoliveira](https://discuss.elastic.co/u/thebeaoliveira)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 11:59am UTC](https://discuss.elastic.co/t/gc-log-elasticsearch/202215 "2019-10-14T11:59:32Z")

</div>

Hello, I have a question. I need some more disk space and I saw that there are a lot of gc.log logs in the var/ log / elasticsearch directory Can I delete these gc.log files manually? If I delete, will I have a proble…

---

## [How to create custom analyzer using Java API in elasticsearch 7?](https://discuss.elastic.co/t/how-to-create-custom-analyzer-using-java-api-in-elasticsearch-7/201502)

<div class="topic-metadata">

**Author:** [@het](https://discuss.elastic.co/u/het)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 11:57am UTC](https://discuss.elastic.co/t/how-to-create-custom-analyzer-using-java-api-in-elasticsearch-7/201502 "2019-10-14T11:57:59Z")

</div>

Hello All, I want to create this analyzer using JAVA API of elasticsearch. Can any one help me? I tried to add tokenizer and filter at a same time, but could not do this. "analysis": { "analyzer": { "case\_insen…

---

## [Elasticsearch RestClient 7.4 - making SSL connection](https://discuss.elastic.co/t/elasticsearch-restclient-7-4-making-ssl-connection/203359)

<div class="topic-metadata">

**Author:** [@Sudhakar\_Tadepalli](https://discuss.elastic.co/u/Sudhakar_Tadepalli)\
**Replies:** 1\
**Last updated:** [October 14, 2019, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-restclient-7-4-making-ssl-connection/203359 "2019-10-14T11:52:34Z")

</div>

HI, I am trying to connect to the elasticsearch server using basic credentials and receiving the "Unrecognized SSL message, plaintext connection?" error. Appreciate your help. Thanks! if (restClient == null) { try { …

---

## [Query string ignore empty param](https://discuss.elastic.co/t/query-string-ignore-empty-param/203440)

<div class="topic-metadata">

**Author:** [@laigood](https://discuss.elastic.co/u/laigood)\
**Replies:** 0\
**Last updated:** [October 14, 2019, 11:47am UTC](https://discuss.elastic.co/t/query-string-ignore-empty-param/203440 "2019-10-14T11:47:24Z")

</div>

Index doc like: curl -XPOST -d '{ "id": "1", "test": "test" }' "http://ip:port/test/test/1" and search like: http://ip:port/test/\_search?q=id:"1" AND test:"" can match the document,why the test:"" condition ig…

---

## [Elasticsearch and the programmimg language](https://discuss.elastic.co/t/elasticsearch-and-the-programmimg-language/203425)

<div class="topic-metadata">

**Author:** [@imaneg](https://discuss.elastic.co/u/imaneg)\
**Replies:** 0\
**Last updated:** [October 14, 2019, 10:02am UTC](https://discuss.elastic.co/t/elasticsearch-and-the-programmimg-language/203425 "2019-10-14T10:02:58Z")

</div>

Hi all, I am preparing a report about the better programming language to use with Elasticsearch. Could you please share with me your different experience, what are the pros and cons of your experience with your own lan…

---

## [Features of a cold node/warm node](https://discuss.elastic.co/t/features-of-a-cold-node-warm-node/203355)

<div class="topic-metadata">

**Author:** [@Callahan](https://discuss.elastic.co/u/Callahan)\
**Replies:** 3\
**Last updated:** [October 14, 2019, 9:59am UTC](https://discuss.elastic.co/t/features-of-a-cold-node-warm-node/203355 "2019-10-14T09:59:24Z")

</div>

Hi, I'm looking for some confirmation regarding warm nodes and cold nodes. I can't find any pointers on if nodes I've defined as cold nodes and warm nodes should also be ingest nodes. I'm guessing they shouldn't to prev…

---

## [Concepts suggester?](https://discuss.elastic.co/t/concepts-suggester/203128)

<div class="topic-metadata">

**Author:** [@jy95](https://discuss.elastic.co/u/jy95)\
**Replies:** 5\
**Last updated:** [October 14, 2019, 9:44am UTC](https://discuss.elastic.co/t/concepts-suggester/203128 "2019-10-14T09:44:56Z")

</div>

Hello, I would like to implement a Google-like search with Elasticsearch like this example : For example, if I have this collection of documents where the properties are stored in a "tags" field (an array) : \[ { …

---

## [Get Tokens Positions in a single Search Query ElasticSearch v7.3](https://discuss.elastic.co/t/get-tokens-positions-in-a-single-search-query-elasticsearch-v7-3/203410)

<div class="topic-metadata">

**Author:** [@alphaglare](https://discuss.elastic.co/u/alphaglare)\
**Replies:** 0\
**Last updated:** [October 14, 2019, 8:40am UTC](https://discuss.elastic.co/t/get-tokens-positions-in-a-single-search-query-elasticsearch-v7-3/203410 "2019-10-14T08:40:00Z")

</div>

I have been stuck on this issue for like 3 days. I have found Questions about this issue but there are no solutions about this. Since the questions were asked about 2 years ago, I think that for now there might be a solu…

---

## [Exception java.lang.IllegalStateException](https://discuss.elastic.co/t/exception-java-lang-illegalstateexception/203393)

<div class="topic-metadata">

**Author:** [@silen](https://discuss.elastic.co/u/silen)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 8:32am UTC](https://discuss.elastic.co/t/exception-java-lang-illegalstateexception/203393 "2019-10-14T08:32:08Z")

</div>

Start ES 6.8.1 exception, the log is as follows，Please enlighten the gods，thanks: \[2019-10-14T10:45:22,342\]\[ERROR\]\[o.e.b.Bootstrap \] \[my\_frist\_node\] Exception java.lang.IllegalStateException: failed to load pl…

---

## [How to Re-Enable Shard Allocation](https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394)

<div class="topic-metadata">

**Author:** [@Moritz\_Kiesewetter](https://discuss.elastic.co/u/Moritz_Kiesewetter)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 8:20am UTC](https://discuss.elastic.co/t/how-to-re-enable-shard-allocation/203394 "2019-10-14T08:20:12Z")

</div>

So we restarted our Elastic-Cluster last week, today i noticed that there are a lot unassigned Shards. I thought my colleagues forgot to turn Shard - Allocation back on, which i can confirm by now. I now i have to chan…

---

## [How multiple indexes correspond to multiple aliases in a template](https://discuss.elastic.co/t/how-multiple-indexes-correspond-to-multiple-aliases-in-a-template/203403)

<div class="topic-metadata">

**Author:** [@jenius](https://discuss.elastic.co/u/jenius)\
**Replies:** 0\
**Last updated:** [October 14, 2019, 7:57am UTC](https://discuss.elastic.co/t/how-multiple-indexes-correspond-to-multiple-aliases-in-a-template/203403 "2019-10-14T07:57:54Z")

</div>

Every 30 seconds, the system status will be stored in the ES. The index name is, for example, i\_index-2019-10-10. The aggregation will be done every 5 minutes. The data of this table will be summarized into the 5-minute …

---

## [Custom parameter sources](https://discuss.elastic.co/t/custom-parameter-sources/203147)

<div class="topic-metadata">

**Author:** [@David\_Samokovlisky](https://discuss.elastic.co/u/David_Samokovlisky)\
**Replies:** 3\
**Last updated:** [October 14, 2019, 7:16am UTC](https://discuss.elastic.co/t/custom-parameter-sources/203147 "2019-10-14T07:16:30Z")

</div>

In following to custom parameter source and this project rally-eventdata-track , Seems that if I implement my own custom param source, then I have to implement file's readings in bulk operations basically? as it replac…

---

## [Select records from first index which are not present in another index](https://discuss.elastic.co/t/select-records-from-first-index-which-are-not-present-in-another-index/202510)

<div class="topic-metadata">

**Author:** [@Sonu\_Pajai\_Save](https://discuss.elastic.co/u/Sonu_Pajai_Save)\
**Replies:** 1\
**Last updated:** [October 7, 2019, 12:37pm UTC](https://discuss.elastic.co/t/select-records-from-first-index-which-are-not-present-in-another-index/202510 "2019-10-07T12:37:53Z")

</div>

i wish select those records from products index which are not in shop\_inventory index is there any way to achieve this in elasticsearch. product\_id is the common field in both indexes

---

## [Elasticsearch Auditing Files in docker container can not be found](https://discuss.elastic.co/t/elasticsearch-auditing-files-in-docker-container-can-not-be-found/200728)

<div class="topic-metadata">

**Author:** [@apt-get\_install\_skil](https://discuss.elastic.co/u/apt-get_install_skil)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 6:17am UTC](https://discuss.elastic.co/t/elasticsearch-auditing-files-in-docker-container-can-not-be-found/200728 "2019-10-14T06:17:10Z")

</div>

Hey there, I run an Elasticsearch 7.3.0 6-node cluster on three machines (one coordinating-only and one mdi-node each) via docker-compose. I've set up security via certificates/pki. Now I want to enable the auditing f…

---

## [Dealing with diacritic values (Example :- Lehtelä)](https://discuss.elastic.co/t/dealing-with-diacritic-values-example-lehtela/202987)

<div class="topic-metadata">

**Author:** [@MKU](https://discuss.elastic.co/u/MKU)\
**Replies:** 2\
**Last updated:** [October 14, 2019, 4:52am UTC](https://discuss.elastic.co/t/dealing-with-diacritic-values-example-lehtela/202987 "2019-10-14T04:52:33Z")

</div>

Hi all, I have some values which has special symbols which helps sounding of the word. The problem is these values are getting encoded to base64 while indexing, for example above term is indexed as TGVodGVsw6Q= , and i…

---

## [GeoShape: Consuming more heap on data node](https://discuss.elastic.co/t/geoshape-consuming-more-heap-on-data-node/203001)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 4\
**Last updated:** [October 14, 2019, 4:09am UTC](https://discuss.elastic.co/t/geoshape-consuming-more-heap-on-data-node/203001 "2019-10-14T04:09:48Z")

</div>

Version 7.1.1 My mapping setting consists of following: "geometry": { "type": "geo\_shape", "tree": "quadtree", "precision": "8m" } When i check /\_segments?verbose=true, i can see my maximum memory\_in\_bytes (memo…

---

## [Collector \[cluster\_stats\] failed to collect data](https://discuss.elastic.co/t/collector-cluster-stats-failed-to-collect-data/203376)

<div class="topic-metadata">

**Author:** [@yeziblo](https://discuss.elastic.co/u/yeziblo)\
**Replies:** 0\
**Last updated:** [October 14, 2019, 3:59am UTC](https://discuss.elastic.co/t/collector-cluster-stats-failed-to-collect-data/203376 "2019-10-14T03:59:45Z")

</div>

Hi, everyone. I got a error in es log: \[2019-10-14T11:34:20,210\]\[ERROR\]\[o.e.x.m.c.c.ClusterStatsCollector\] \[node2\] collector \[cluster\_stats\] failed to collect data java.lang.NullPointerException: null at org.elastics…

---

## [Term Vectors within search API](https://discuss.elastic.co/t/term-vectors-within-search-api/203373)

<div class="topic-metadata">

**Author:** [@chandu\_tricon](https://discuss.elastic.co/u/chandu_tricon)\
**Replies:** 0\
**Last updated:** [October 14, 2019, 3:06am UTC](https://discuss.elastic.co/t/term-vectors-within-search-api/203373 "2019-10-14T03:06:49Z")

</div>

I have a scenario where I need to return the position of a word in the field (same as Term Vectors position) within the search results of a keyword. I have couple of questions: Term Vectors API would only work on an I…

---

## [Watcher sending custom payloads](https://discuss.elastic.co/t/watcher-sending-custom-payloads/203214)

<div class="topic-metadata">

**Author:** [@ajhstn](https://discuss.elastic.co/u/ajhstn)\
**Replies:** 2\
**Last updated:** [October 13, 2019, 9:10pm UTC](https://discuss.elastic.co/t/watcher-sending-custom-payloads/203214 "2019-10-13T21:10:36Z")

</div>

Hello, i have the following watcher action, sending to MS Teams, everything works fine. But now i want to add some additional formatting to the payload and need to add keys with the @ symbol. ie: How do i add pl.@type …

---

## [Is it possible to delete a dangling index data directory from a running node?](https://discuss.elastic.co/t/is-it-possible-to-delete-a-dangling-index-data-directory-from-a-running-node/203354)

<div class="topic-metadata">

**Author:** [@bruce289](https://discuss.elastic.co/u/bruce289)\
**Replies:** 6\
**Last updated:** [October 13, 2019, 7:55pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-a-dangling-index-data-directory-from-a-running-node/203354 "2019-10-13T19:55:31Z")

</div>

Hi, I have a number of dangling indices across the cluster which all contain data that is no longer required. Is it safe to simply delete the particular directories under path.data that these dangling indices refer to, …

---

## [Redis connection pool for ingest plugin](https://discuss.elastic.co/t/redis-connection-pool-for-ingest-plugin/203353)

<div class="topic-metadata">

**Author:** [@Babak](https://discuss.elastic.co/u/Babak)\
**Replies:** 0\
**Last updated:** [October 13, 2019, 4:52pm UTC](https://discuss.elastic.co/t/redis-connection-pool-for-ingest-plugin/203353 "2019-10-13T16:52:43Z")

</div>

I want to write elasticsearch ingest plugin to read data from redis cache. Using this tutorial I wrote a simple plugin and tested in elasticsearch. After that for Redis I use jedis connection pool but when I use gradle …

---

## [Licensing Model and Pricing for Elastic search](https://discuss.elastic.co/t/licensing-model-and-pricing-for-elastic-search/202016)

<div class="topic-metadata">

**Author:** [@premreddy](https://discuss.elastic.co/u/premreddy)\
**Replies:** 2\
**Last updated:** [October 13, 2019, 3:51pm UTC](https://discuss.elastic.co/t/licensing-model-and-pricing-for-elastic-search/202016 "2019-10-13T15:51:58Z")

</div>

Hello, Can you please let me know how the Licensing Model of elastic search and Logstash works. We are looking at bundling Elastic search as an Appliance that will be deployed as part of our Product. We need some of Xp…

---

## [Disk quota isolation for elasticsearch](https://discuss.elastic.co/t/disk-quota-isolation-for-elasticsearch/203344)

<div class="topic-metadata">

**Author:** [@shivani\_aggarwal](https://discuss.elastic.co/u/shivani_aggarwal)\
**Replies:** 0\
**Last updated:** [October 13, 2019, 12:55pm UTC](https://discuss.elastic.co/t/disk-quota-isolation-for-elasticsearch/203344 "2019-10-13T12:55:23Z")

</div>

Hi, Can elasticsearch multi-tenancy provide disk quota isolation for individual tenants/users? A single source writing a huge amount of data may cause entire cluster failure and data loss to all the other sources. Is t…

---

## [Index naming after upgrade](https://discuss.elastic.co/t/index-naming-after-upgrade/201116)

<div class="topic-metadata">

**Author:** [@alexclifford](https://discuss.elastic.co/u/alexclifford)\
**Replies:** 1\
**Last updated:** [October 13, 2019, 11:48am UTC](https://discuss.elastic.co/t/index-naming-after-upgrade/201116 "2019-10-13T11:48:54Z")

</div>

I've upgraded from 6.8 to 7.3 on Elastic Cloud (I mainly use APM) but the index names have changed, how do I change them back? Originally I had apm-6.8.3-transaction-2019.09.23 etc, rotating daily. Now I have apm-7.3.2-…

---

## [What is included in the free X-Pack?](https://discuss.elastic.co/t/what-is-included-in-the-free-x-pack/203334)

<div class="topic-metadata">

**Author:** [@trajano](https://discuss.elastic.co/u/trajano)\
**Replies:** 3\
**Last updated:** [October 13, 2019, 6:44am UTC](https://discuss.elastic.co/t/what-is-included-in-the-free-x-pack/203334 "2019-10-13T06:44:56Z")

</div>

I am reading through https://www.elastic.co/what-is/open-x-pack but I don't see ILM specifically mentioned. Just wanted to confirm whether it is too new a feature and it came out after or if it is actually not available…

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

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