# Elasticsearch

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

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

**Page:** 1154

---

## [Function Score Query JAVA (java highlevel client)](https://discuss.elastic.co/t/function-score-query-java-java-highlevel-client/199847)

<div class="topic-metadata">

**Author:** [@Ewoks](https://discuss.elastic.co/u/Ewoks)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 3:39pm UTC](https://discuss.elastic.co/t/function-score-query-java-java-highlevel-client/199847 "2019-09-17T15:39:22Z")

</div>

How to implement this simple example with Java HighLevel client: https://www.elastic.co/guide/en/elasticsearch/reference/6.8/query-dsl-function-score-query.html Documentation should have at least these simple examples …

---

## [Elastic search range query not working](https://discuss.elastic.co/t/elastic-search-range-query-not-working/199831)

<div class="topic-metadata">

**Author:** [@Prasanth\_MP](https://discuss.elastic.co/u/Prasanth_MP)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 3:35pm UTC](https://discuss.elastic.co/t/elastic-search-range-query-not-working/199831 "2019-09-17T15:35:41Z")

</div>

Hi Currently I am having an elastic search index and i am trying to perform a date range query on the documents within that index using java high level rest client library . However it doesn't work as expected. so the fo…

---

## [How to send a text file to elasticsearch with rest api](https://discuss.elastic.co/t/how-to-send-a-text-file-to-elasticsearch-with-rest-api/199745)

<div class="topic-metadata">

**Author:** [@atline](https://discuss.elastic.co/u/atline)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 3:26pm UTC](https://discuss.elastic.co/t/how-to-send-a-text-file-to-elasticsearch-with-rest-api/199745 "2019-09-17T15:26:22Z")

</div>

I have a log file which I want to send to elasticsearch. log.txt: abc de fg The problem is: If I use filebeat, it will treat every line as a document. Of course, I could set some multiline regular expression, but h…

---

## [Java Client or Spring Boot for ElasticSearch 7.3.1](https://discuss.elastic.co/t/java-client-or-spring-boot-for-elasticsearch-7-3-1/199778)

<div class="topic-metadata">

**Author:** [@mark\_sirus](https://discuss.elastic.co/u/mark_sirus)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 2:49pm UTC](https://discuss.elastic.co/t/java-client-or-spring-boot-for-elasticsearch-7-3-1/199778 "2019-09-17T14:49:17Z")

</div>

Hi, I am not able to find a solution to access the elasticsearch 7.3.1 via Java Client. I tried Spring Boot, TransportClient but I always get the version error: java.lang.IllegalStateException: Received message from un…

---

## [Failed to process cluster event (create-index-template) within 30s](https://discuss.elastic.co/t/failed-to-process-cluster-event-create-index-template-within-30s/199486)

<div class="topic-metadata">

**Author:** [@usr20190913](https://discuss.elastic.co/u/usr20190913)\
**Replies:** 23\
**Last updated:** [September 17, 2019, 2:21pm UTC](https://discuss.elastic.co/t/failed-to-process-cluster-event-create-index-template-within-30s/199486 "2019-09-17T14:21:55Z")

</div>

First post. History This is our production instance and it has been down now for 5 days I have inherited a system that has been running for years without issue. The system has not been updated, so I find it very surpr…

---

## [Replacing Cluster Node](https://discuss.elastic.co/t/replacing-cluster-node/199732)

<div class="topic-metadata">

**Author:** [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 2:19pm UTC](https://discuss.elastic.co/t/replacing-cluster-node/199732 "2019-09-17T14:19:07Z")

</div>

I use following which moved all the shard from that node. then shutdown system. setup new system with same name/ip install all require rpms and started node but it is not joining cluster. what am I missing? PUT /\_cl…

---

## [No Results In Execution Output Watcher|Elasticsearch](https://discuss.elastic.co/t/no-results-in-execution-output-watcher-elasticsearch/198539)

<div class="topic-metadata">

**Author:** [@ntran](https://discuss.elastic.co/u/ntran)\
**Replies:** 5\
**Last updated:** [September 17, 2019, 2:10pm UTC](https://discuss.elastic.co/t/no-results-in-execution-output-watcher-elasticsearch/198539 "2019-09-17T14:10:55Z")

</div>

Hi everyone, I was looking at my results from my watcher and while it states execution\_not\_needed, when I look at the execution output, there are no results from my query. Is this normal behaviour? // Execution Output …

---

## [ES Security: What happens if the ssl key and cert of a node is changed and restarted?](https://discuss.elastic.co/t/es-security-what-happens-if-the-ssl-key-and-cert-of-a-node-is-changed-and-restarted/199790)

<div class="topic-metadata">

**Author:** [@7171u](https://discuss.elastic.co/u/7171u)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 1:47pm UTC](https://discuss.elastic.co/t/es-security-what-happens-if-the-ssl-key-and-cert-of-a-node-is-changed-and-restarted/199790 "2019-09-17T13:47:36Z")

</div>

Hi, What will happen if the ssl key and cert of a node is changed and restarted only that node while keeping other nodes in the cluster running. Can other nodes be able to connect to this restarted node? Can the modi…

---

## [Connecting to earlier version installed client, instead of newer one](https://discuss.elastic.co/t/connecting-to-earlier-version-installed-client-instead-of-newer-one/199824)

<div class="topic-metadata">

**Author:** [@xororp](https://discuss.elastic.co/u/xororp)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 1:08pm UTC](https://discuss.elastic.co/t/connecting-to-earlier-version-installed-client-instead-of-newer-one/199824 "2019-09-17T13:08:21Z")

</div>

Earlier version of elasticsearch 1.7.2 was installed by creating elastisearch service, which i stopped. now i installed elasticsearch version 5.6.3 using tar file and it is giving me following error, \[o.e.t.n.Netty4Tran…

---

## [Error in logstash logs: " retrying failed action with response code: 429](https://discuss.elastic.co/t/error-in-logstash-logs-retrying-failed-action-with-response-code-429/199212)

<div class="topic-metadata">

**Author:** [@Ilayda\_Akinalan](https://discuss.elastic.co/u/Ilayda_Akinalan)\
**Replies:** 5\
**Last updated:** [September 17, 2019, 1:04pm UTC](https://discuss.elastic.co/t/error-in-logstash-logs-retrying-failed-action-with-response-code-429/199212 "2019-09-17T13:04:08Z")

</div>

Hi, I keep getting the below error in my logstash logs - im assuming the problem is with elasticsearch rather than logstash itself. My understanding of this is that elasticsearch cannot cope with the amount of data that…

---

## [Elasticsearch ILM pattern suffix](https://discuss.elastic.co/t/elasticsearch-ilm-pattern-suffix/199822)

<div class="topic-metadata">

**Author:** [@stevesimpson](https://discuss.elastic.co/u/stevesimpson)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 1:03pm UTC](https://discuss.elastic.co/t/elasticsearch-ilm-pattern-suffix/199822 "2019-09-17T13:03:53Z")

</div>

Hi, I'd like to find a way to "reset" the ILM pattern suffix number. My indexes are written as follows: filebeat-2019.09.16-000034 filebeat-2019.09.16-000035 filebeat-2019.09.16-000036 filebeat-2019.09.16-000037 filebe…

---

## [Error in loading rules to Elastalert](https://discuss.elastic.co/t/error-in-loading-rules-to-elastalert/199817)

<div class="topic-metadata">

**Author:** [@Maheswari](https://discuss.elastic.co/u/Maheswari)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 12:11pm UTC](https://discuss.elastic.co/t/error-in-loading-rules-to-elastalert/199817 "2019-09-17T12:11:50Z")

</div>

I am try to get alerts using elastalert feature. I have used the following command elastalert --verbose --config /temp/elastalert/config.yaml.example Here is the following output INFO:elastalert:Starting up INFO:…

---

## [Elastic search fails to index the records once it reaches 10000](https://discuss.elastic.co/t/elastic-search-fails-to-index-the-records-once-it-reaches-10000/199603)

<div class="topic-metadata">

**Author:** [@Nimisha\_Salian](https://discuss.elastic.co/u/Nimisha_Salian)\
**Replies:** 6\
**Last updated:** [September 17, 2019, 10:41am UTC](https://discuss.elastic.co/t/elastic-search-fails-to-index-the-records-once-it-reaches-10000/199603 "2019-09-17T10:41:11Z")

</div>

Hello, I'm new to elastic search so pardon me if you think this question is silly. So i'm facing issues while adding the records to my index. As soon as 10000 records are added to the index, my index doesn't take the r…

---

## [Geo\_point index create in Elasticsearch](https://discuss.elastic.co/t/geo-point-index-create-in-elasticsearch/199029)

<div class="topic-metadata">

**Author:** [@ashok9177](https://discuss.elastic.co/u/ashok9177)\
**Replies:** 10\
**Last updated:** [September 17, 2019, 9:37am UTC](https://discuss.elastic.co/t/geo-point-index-create-in-elasticsearch/199029 "2019-09-17T09:37:59Z")

</div>

Hi All, Below it the my logstash output conf file, as per the conf new Index will create on daily basis. how can I create these all indexes with geo\_type ? output { elasticsearch { hosts =\> \["localhost"\] user =\> 'e…

---

## [Suggestion on Elasticsearch scaling and performance for log management](https://discuss.elastic.co/t/suggestion-on-elasticsearch-scaling-and-performance-for-log-management/199548)

<div class="topic-metadata">

**Author:** [@Blason](https://discuss.elastic.co/u/Blason)\
**Replies:** 8\
**Last updated:** [September 17, 2019, 8:44am UTC](https://discuss.elastic.co/t/suggestion-on-elasticsearch-scaling-and-performance-for-log-management/199548 "2019-09-17T08:44:08Z")

</div>

Hi Folks, I know this is a very vague question and might have answered a couple of times before, but wanted another pair of eyes to look at and vet? I am planning to build log management/Security Analytics solution and…

---

## [Regarding official GoLang client of elasticsearch](https://discuss.elastic.co/t/regarding-official-golang-client-of-elasticsearch/199788)

<div class="topic-metadata">

**Author:** [@MKU](https://discuss.elastic.co/u/MKU)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 8:34am UTC](https://discuss.elastic.co/t/regarding-official-golang-client-of-elasticsearch/199788 "2019-09-17T08:34:21Z")

</div>

I was using olivere Elasticsearch-golang client for my project. But i came across https://www.elastic.co/guide/en/elasticsearch/client/go-api/current/index.html . Here is an example of code: https://github.com/elasti…

---

## [All shards failed-503error](https://discuss.elastic.co/t/all-shards-failed-503error/199779)

<div class="topic-metadata">

**Author:** [@linsijia1002](https://discuss.elastic.co/u/linsijia1002)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 7:58am UTC](https://discuss.elastic.co/t/all-shards-failed-503error/199779 "2019-09-17T07:58:40Z")

</div>

elk version:5.6.11 Discover: Request to Elasticsearch failed: {"error":{"root\_cause":,"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":},"status":503} …

---

## [Elasticsearch node consuming almost 100% memory](https://discuss.elastic.co/t/elasticsearch-node-consuming-almost-100-memory/199762)

<div class="topic-metadata">

**Author:** [@n3RDY](https://discuss.elastic.co/u/n3RDY)\
**Replies:** 2\
**Last updated:** [September 17, 2019, 7:23am UTC](https://discuss.elastic.co/t/elasticsearch-node-consuming-almost-100-memory/199762 "2019-09-17T07:23:08Z")

</div>

Hi team, I am using 3 elastic search node with graylog which is running in separate host container. today I was checking some grafana board which is implemented to check elastisearch performance then I found elastisearc…

---

## [Best JVM settings for Elastic cluster](https://discuss.elastic.co/t/best-jvm-settings-for-elastic-cluster/199767)

<div class="topic-metadata">

**Author:** [@Chel](https://discuss.elastic.co/u/Chel)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 7:22am UTC](https://discuss.elastic.co/t/best-jvm-settings-for-elastic-cluster/199767 "2019-09-17T07:22:10Z")

</div>

Hi , Would like to know the best JVM settings for Elastic. As per Elastic 32GB max RAM and enabling memory lock and disable swapping is mentioned for tuning. Do we need to consider any other parameters for Elastic JVM …

---

## [Missing data in cluster](https://discuss.elastic.co/t/missing-data-in-cluster/199757)

<div class="topic-metadata">

**Author:** [@theaxe](https://discuss.elastic.co/u/theaxe)\
**Replies:** 4\
**Last updated:** [September 17, 2019, 7:17am UTC](https://discuss.elastic.co/t/missing-data-in-cluster/199757 "2019-09-17T07:17:37Z")

</div>

Hi everyone In a cluster of 3 running es 2.4, from time to time randomly I have missing data, data appears at first, but then disappears. Server load seems alright. The environment is redis, mysql es and php attached…

---

## [Error handling in ES](https://discuss.elastic.co/t/error-handling-in-es/199025)

<div class="topic-metadata">

**Author:** [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Replies:** 4\
**Last updated:** [September 17, 2019, 7:06am UTC](https://discuss.elastic.co/t/error-handling-in-es/199025 "2019-09-17T07:06:16Z")

</div>

Hello, Can anyone help me in this? I am using jdbc input plugin to fetch data and create indexes in ES. If that fails in between, how we will be identify that? how to handle such scenarios in ES? Thanks and Regards, …

---

## [Show fields with zero value in last](https://discuss.elastic.co/t/show-fields-with-zero-value-in-last/199764)

<div class="topic-metadata">

**Author:** [@sinscary](https://discuss.elastic.co/u/sinscary)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 6:51am UTC](https://discuss.elastic.co/t/show-fields-with-zero-value-in-last/199764 "2019-09-17T06:51:46Z")

</div>

Hi, I have documents with the price field. I am sorting the documents by price. There are few documents which have price value zero. Problem is when I sort the documents with price field, it shows documents with zero fie…

---

## [Auto Fuzziness should be configurable](https://discuss.elastic.co/t/auto-fuzziness-should-be-configurable/199752)

<div class="topic-metadata">

**Author:** [@ashit\_pupu](https://discuss.elastic.co/u/ashit_pupu)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 6:00am UTC](https://discuss.elastic.co/t/auto-fuzziness-should-be-configurable/199752 "2019-09-17T06:00:24Z")

</div>

Hi Currently in ES we have AUTO in fuzziness which basically restricts any token less than 3 to be exact match, token length in between 4-5 to have a match with fuzziness 1 and above 6 to have a match with fuzziness 2. …

---

## [Delete all the documents in the specified index using java](https://discuss.elastic.co/t/delete-all-the-documents-in-the-specified-index-using-java/199756)

<div class="topic-metadata">

**Author:** [@Velliyangiri](https://discuss.elastic.co/u/Velliyangiri)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 5:45am UTC](https://discuss.elastic.co/t/delete-all-the-documents-in-the-specified-index-using-java/199756 "2019-09-17T05:45:37Z")

</div>

RestHighLevelClient to delete all the documents in the specified index..How is it possible ?and give me the exact solution .

---

## [Curl -X GET http://localhost:9200 is working BUT not http//127.0.0.1:9200](https://discuss.elastic.co/t/curl-x-get-http-localhost-9200-is-working-but-not-http-127-0-0-1-9200/199758)

<div class="topic-metadata">

**Author:** [@elmismo999](https://discuss.elastic.co/u/elmismo999)\
**Replies:** 2\
**Last updated:** [September 17, 2019, 5:43am UTC](https://discuss.elastic.co/t/curl-x-get-http-localhost-9200-is-working-but-not-http-127-0-0-1-9200/199758 "2019-09-17T05:43:22Z")

</div>

Hello, I have installed Elasticsearch on Hortonworks Sandbox with HDP 2.2.4.2 YES I could start elastic search YES curl is working \[alumno@sandbox ~\]$ curl -X GET http://localhost:9200 { "name" : "sandbox.hortonwo…

---

## [Java to delete all the documents in the Elastic search using json queries](https://discuss.elastic.co/t/java-to-delete-all-the-documents-in-the-elastic-search-using-json-queries/199625)

<div class="topic-metadata">

**Author:** [@Velliyangiri](https://discuss.elastic.co/u/Velliyangiri)\
**Replies:** 4\
**Last updated:** [September 17, 2019, 5:41am UTC](https://discuss.elastic.co/t/java-to-delete-all-the-documents-in-the-elastic-search-using-json-queries/199625 "2019-09-17T05:41:29Z")

</div>

Give me the code snippet for elastic search 7.3.0 to delete all the records in the index using match all json query in a java code.

---

## [Index Templates and Rollover](https://discuss.elastic.co/t/index-templates-and-rollover/198966)

<div class="topic-metadata">

**Author:** [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Replies:** 3\
**Last updated:** [September 17, 2019, 4:59am UTC](https://discuss.elastic.co/t/index-templates-and-rollover/198966 "2019-09-17T04:59:11Z")

</div>

I am trying to understand how ILM and Templates work. I have setup a ILM where if an index gets bigger than 50GB it should auto roll over. Lets say the policy is called "rollover1-policy" I can attach this policy to an…

---

## [ValuesSourceType in ValuesSourceAggregationBuilder constructors](https://discuss.elastic.co/t/valuessourcetype-in-valuessourceaggregationbuilder-constructors/199208)

<div class="topic-metadata">

**Author:** [@Deb](https://discuss.elastic.co/u/Deb)\
**Replies:** 6\
**Last updated:** [September 17, 2019, 3:29am UTC](https://discuss.elastic.co/t/valuessourcetype-in-valuessourceaggregationbuilder-constructors/199208 "2019-09-17T03:29:07Z")

</div>

Can someone explain me what does ValuesSourceType fields denote in ValuesSourceAggreationBuilder constructors? ValuesSourceAggregationBuilder(StreamInput in, ValuesSourceType valuesSourceType, ValueType targetValueType…

---

## [Cluster is not running and master is not discovered](https://discuss.elastic.co/t/cluster-is-not-running-and-master-is-not-discovered/199695)

<div class="topic-metadata">

**Author:** [@decibel83](https://discuss.elastic.co/u/decibel83)\
**Replies:** 4\
**Last updated:** [September 17, 2019, 2:53am UTC](https://discuss.elastic.co/t/cluster-is-not-running-and-master-is-not-discovered/199695 "2019-09-17T02:53:04Z")

</div>

I'm running an Elasticsearch 7.3.2 cluster, which was recently bootstrapped with 3 nodes: elastic1.domain.com elastic2.domain.com elastic3.domain.com The cluster was running well until yesterday when I needed to make …

---

## [Determine Analyzer For a Field In Scripted Engine](https://discuss.elastic.co/t/determine-analyzer-for-a-field-in-scripted-engine/199739)

<div class="topic-metadata">

**Author:** [@Joshua\_Reback](https://discuss.elastic.co/u/Joshua_Reback)\
**Replies:** 0\
**Last updated:** [September 17, 2019, 12:10am UTC](https://discuss.elastic.co/t/determine-analyzer-for-a-field-in-scripted-engine/199739 "2019-09-17T00:10:31Z")

</div>

I'm trying to write a ScriptedEngine because I want to directly access some Lucene-level info (term frequency, position of term in the matched document, etc). In the ScriptedEngine, I want to analyze the query term using…

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

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