# Elasticsearch

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

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

**Page:** 1257

---

## [Update value in elastic](https://discuss.elastic.co/t/update-value-in-elastic/186710)

<div class="topic-metadata">

**Author:** [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Replies:** 10\
**Last updated:** [June 20, 2019, 6:53pm UTC](https://discuss.elastic.co/t/update-value-in-elastic/186710 "2019-06-20T18:53:55Z")

</div>

I want to write a query and update a field, my index already has all of listed field para, mytime, yourtime, someonestime by this logic if \[para="T'\] { mytime=yourtime } else { mytime=someonestime } is this pos…

---

## [ES6 - range query on float in not exact](https://discuss.elastic.co/t/es6-range-query-on-float-in-not-exact/186740)

<div class="topic-metadata">

**Author:** [@theonlyalterego](https://discuss.elastic.co/u/theonlyalterego)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 6:51pm UTC](https://discuss.elastic.co/t/es6-range-query-on-float-in-not-exact/186740 "2019-06-20T18:51:36Z")

</div>

My problem is when running the below range query against a float I am getting a value outside the range. specifically the value 518832000000 is greater than the "LTE" value of 518831999999. MAPPING "birthDate": { …

---

## [Unable to set password for elastic (7.1.1)](https://discuss.elastic.co/t/unable-to-set-password-for-elastic-7-1-1/186160)

<div class="topic-metadata">

**Author:** [@ryh](https://discuss.elastic.co/u/ryh)\
**Replies:** 5\
**Last updated:** [June 20, 2019, 6:22pm UTC](https://discuss.elastic.co/t/unable-to-set-password-for-elastic-7-1-1/186160 "2019-06-20T18:22:45Z")

</div>

Hi All, I'm trying to set a default password for the elastic user through Docker. But my ELASTIC\_PASSWORD key isn't working. Here's my docker-compose file. version: '3' services: elasticsearch: hostname: elastics…

---

## [Include\_type\_name deprecation when making Index Templates in V7.x](https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735)

<div class="topic-metadata">

**Author:** [@Vincent\_Stevenson](https://discuss.elastic.co/u/Vincent_Stevenson)\
**Replies:** 2\
**Last updated:** [June 20, 2019, 5:40pm UTC](https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735 "2019-06-20T17:40:12Z")

</div>

Hi, We are defining mappings within index templates in Elastic. In V6.x, I could PUT the following JSON to make a template: Now when I try to create the same exact template in V7.x, I get the error message: { "erro…

---

## [Tshark output to ElasticSearch](https://discuss.elastic.co/t/tshark-output-to-elasticsearch/186736)

<div class="topic-metadata">

**Author:** [@cks](https://discuss.elastic.co/u/cks)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 5:25pm UTC](https://discuss.elastic.co/t/tshark-output-to-elasticsearch/186736 "2019-06-20T17:25:35Z")

</div>

ES 7.1.1/centos7, Tshark 2.6 I am trying to ingest tshark data (json format) into Elastic using logstash. I am using tshark 2.6.6. however I understand version 3.0 has ability to generate mapping for elastic search Trie…

---

## [Create index fails using 'PUT' over Java's HttpURLConnection](https://discuss.elastic.co/t/create-index-fails-using-put-over-javas-httpurlconnection/180849)

<div class="topic-metadata">

**Author:** [@n2nelastic](https://discuss.elastic.co/u/n2nelastic)\
**Replies:** 26\
**Last updated:** [June 20, 2019, 4:17pm UTC](https://discuss.elastic.co/t/create-index-fails-using-put-over-javas-httpurlconnection/180849 "2019-06-20T16:17:54Z")

</div>

I'm using Java and send a 'PUT' request to create a new index over an HttpURLConnection. The url is: http://localhost:9200/myIndexName I've used 2 content-types: text/plain and application/json I consistently get a 40…

---

## [How to setup X- PACK security feature for ES 7.1.0 installed from ES Helm chart](https://discuss.elastic.co/t/how-to-setup-x-pack-security-feature-for-es-7-1-0-installed-from-es-helm-chart/184189)

<div class="topic-metadata">

**Author:** [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Replies:** 7\
**Last updated:** [June 20, 2019, 3:22pm UTC](https://discuss.elastic.co/t/how-to-setup-x-pack-security-feature-for-es-7-1-0-installed-from-es-helm-chart/184189 "2019-06-20T15:22:40Z")

</div>

Hi All, I am trying to install elasticsearch 7 using helm on kubernetes.. Below is the helm chart of elasticsearch I am using, However now I am able to setup the elasticsearch and kibana and its running fine. Now I w…

---

## [Multi-Bucket Scoring Machine Learning](https://discuss.elastic.co/t/multi-bucket-scoring-machine-learning/186277)

<div class="topic-metadata">

**Author:** [@Ryan\_Boch](https://discuss.elastic.co/u/Ryan_Boch)\
**Replies:** 6\
**Last updated:** [June 20, 2019, 3:20pm UTC](https://discuss.elastic.co/t/multi-bucket-scoring-machine-learning/186277 "2019-06-20T15:20:06Z")

</div>

Multi-Bucket scoring is a bit confusing. I've read through the blog, but questions remain. How is the multi-bucket score calculated? Does the model go backwards and recalculate multi-bucket scores as more data is process…

---

## [Analyser not found](https://discuss.elastic.co/t/analyser-not-found/186261)

<div class="topic-metadata">

**Author:** [@ronyarmon](https://discuss.elastic.co/u/ronyarmon)\
**Replies:** 10\
**Last updated:** [June 20, 2019, 3:03pm UTC](https://discuss.elastic.co/t/analyser-not-found/186261 "2019-06-20T15:03:14Z")

</div>

Hello, I'm running a search engine with Elasticsearch 6.5 using flask (Python) where documents were indexed with a synonym analyzer, but when installing the application on another server I cannot connect to the synonym f…

---

## [Termvector differences between artificial document and indexed document](https://discuss.elastic.co/t/termvector-differences-between-artificial-document-and-indexed-document/186700)

<div class="topic-metadata">

**Author:** [@Matteo\_Grolla](https://discuss.elastic.co/u/Matteo_Grolla)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 1:57pm UTC](https://discuss.elastic.co/t/termvector-differences-between-artificial-document-and-indexed-document/186700 "2019-06-20T13:57:00Z")

</div>

Hi, we're using the termvectors api and moved from sending the id of an indexed document to sending an artificial document. We thought we have the same result but noticed that if the artificial document has terms that …

---

## [Passing JavaScript Object to ElasticSearch query](https://discuss.elastic.co/t/passing-javascript-object-to-elasticsearch-query/186673)

<div class="topic-metadata">

**Author:** [@hiimcarsten](https://discuss.elastic.co/u/hiimcarsten)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 12:07pm UTC](https://discuss.elastic.co/t/passing-javascript-object-to-elasticsearch-query/186673 "2019-06-20T12:07:08Z")

</div>

Solved: you can just pass a JavaScript object. Not sure what my mistake was but it's working now. Hi Everyone, Summary: Can't figure out how to pass real-time data with JavaScript objects to ElasticSearch query. Con…

---

## [How to change single-node-cluster to 3 node cluster?](https://discuss.elastic.co/t/how-to-change-single-node-cluster-to-3-node-cluster/186633)

<div class="topic-metadata">

**Author:** [@asp](https://discuss.elastic.co/u/asp)\
**Replies:** 2\
**Last updated:** [June 20, 2019, 1:32pm UTC](https://discuss.elastic.co/t/how-to-change-single-node-cluster-to-3-node-cluster/186633 "2019-06-20T13:32:58Z")

</div>

Hi, If I decide to start with a single node ES cluster (version 7.1.1) where I set discovery.type to single-node. What is the path to go for migrate this cluster to a 3 node cluster? All data of the cluster needs to be…

---

## [Connection Refused when trying to connect using REST template client from outside](https://discuss.elastic.co/t/connection-refused-when-trying-to-connect-using-rest-template-client-from-outside/185396)

<div class="topic-metadata">

**Author:** [@priyankajn](https://discuss.elastic.co/u/priyankajn)\
**Replies:** 13\
**Last updated:** [June 20, 2019, 1:23pm UTC](https://discuss.elastic.co/t/connection-refused-when-trying-to-connect-using-rest-template-client-from-outside/185396 "2019-06-20T13:23:37Z")

</div>

Hi, I have elastic search cluster of 2 nodes and trying to call the REST API from a spring boot application using a rest client. It's giving me connection refused error every time. It works when I set the network.host: 0…

---

## [Elastic 7.x CreateIndexRequest Deprecated](https://discuss.elastic.co/t/elastic-7-x-createindexrequest-deprecated/182029)

<div class="topic-metadata">

**Author:** [@questar](https://discuss.elastic.co/u/questar)\
**Replies:** 7\
**Last updated:** [June 20, 2019, 1:20pm UTC](https://discuss.elastic.co/t/elastic-7-x-createindexrequest-deprecated/182029 "2019-06-20T13:20:43Z")

</div>

This Elastic test example below generates a deprecation warning in 7.x up thru 7.1. It is documented at: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-create-index.html When bro…

---

## [Trouble while using PHP to extract data from Elasticsearch, Logstash](https://discuss.elastic.co/t/trouble-while-using-php-to-extract-data-from-elasticsearch-logstash/186674)

<div class="topic-metadata">

**Author:** [@ShashankAC](https://discuss.elastic.co/u/ShashankAC)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 12:12pm UTC](https://discuss.elastic.co/t/trouble-while-using-php-to-extract-data-from-elasticsearch-logstash/186674 "2019-06-20T12:12:04Z")

</div>

Hi there, I am new to ELK, I first tried to migrate data from MySQL to Elasticsearch using python using the tutorial in the below link. It worked. Later, I tried to do it with Logstash, the data is migrated, but my P…

---

## [Post data from saved search to an index](https://discuss.elastic.co/t/post-data-from-saved-search-to-an-index/186670)

<div class="topic-metadata">

**Author:** [@Bharath\_Kumar\_R](https://discuss.elastic.co/u/Bharath_Kumar_R)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 11:49am UTC](https://discuss.elastic.co/t/post-data-from-saved-search-to-an-index/186670 "2019-06-20T11:49:44Z")

</div>

Is it possible to copy data from an saved search to an index?

---

## [Are there any plans to add lucene FixBrokenOffsetsFilter to Elasticsearch Token Filters?](https://discuss.elastic.co/t/are-there-any-plans-to-add-lucene-fixbrokenoffsetsfilter-to-elasticsearch-token-filters/186317)

<div class="topic-metadata">

**Author:** [@DenisMartyanov](https://discuss.elastic.co/u/DenisMartyanov)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 11:45am UTC](https://discuss.elastic.co/t/are-there-any-plans-to-add-lucene-fixbrokenoffsetsfilter-to-elasticsearch-token-filters/186317 "2019-06-20T11:45:35Z")

</div>

Starting from 7.0 Lucene check if offsets in token stream are broken and throws exception if they are. It was added https://issues.apache.org/jira/browse/LUCENE-7626 It causes a lot of issues with combination of word de…

---

## [Reindex 5.4.0 to 7.1.1](https://discuss.elastic.co/t/reindex-5-4-0-to-7-1-1/186512)

<div class="topic-metadata">

**Author:** [@Nick\_Carn](https://discuss.elastic.co/u/Nick_Carn)\
**Replies:** 3\
**Last updated:** [June 20, 2019, 11:34am UTC](https://discuss.elastic.co/t/reindex-5-4-0-to-7-1-1/186512 "2019-06-20T11:34:39Z")

</div>

Hi there, I'm reindexing from remote. I have two slightly different document types (not es types). One i can reindex without problems, the other i get the error below. I can create a document manually from the \_source…

---

## [Ingest Node Processors](https://discuss.elastic.co/t/ingest-node-processors/186528)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 11:10am UTC](https://discuss.elastic.co/t/ingest-node-processors/186528 "2019-06-20T11:10:54Z")

</div>

Hi, Could someone show an example of how I could use the 'if' parameter to detect a certain type of log and so pass it through a child pipeline please? Regards, D

---

## [Why translog always initialized?](https://discuss.elastic.co/t/why-translog-always-initialized/186665)

<div class="topic-metadata">

**Author:** [@worapojc](https://discuss.elastic.co/u/worapojc)\
**Replies:** 0\
**Last updated:** [June 20, 2019, 11:10am UTC](https://discuss.elastic.co/t/why-translog-always-initialized/186665 "2019-06-20T11:10:29Z")

</div>

Hi Elasticsearch team, Environment Elasticsearch OSS 6.7.2 3 Master Nodes 3 Ingest Nodes 9 Hot-data nodes 6 Warm-data nodes My cluster is running but the state is always yellow. There are unassigned shards and they …

---

## [Tokenizer pattern with special character not working](https://discuss.elastic.co/t/tokenizer-pattern-with-special-character-not-working/186579)

<div class="topic-metadata">

**Author:** [@arunkvinam](https://discuss.elastic.co/u/arunkvinam)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 11:02am UTC](https://discuss.elastic.co/t/tokenizer-pattern-with-special-character-not-working/186579 "2019-06-20T11:02:05Z")

</div>

'index' =\> 'contact', 'body' =\> \[ 'settings' =\> \[ 'number\_of\_shards' =\> 3, 'number\_of\_replicas' =\> 2, …

---

## [BulkProcessor: internalAdd method](https://discuss.elastic.co/t/bulkprocessor-internaladd-method/186428)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 6\
**Last updated:** [June 20, 2019, 11:00am UTC](https://discuss.elastic.co/t/bulkprocessor-internaladd-method/186428 "2019-06-20T11:00:14Z")

</div>

We are trying to put millions of documents through BulkProcessor into ES. We have 10threads which read 10 files and adds a IndexRequest to BulkProcessor. final BiConsumer\<BulkRequest, ActionListener\<BulkResponse\>\> bulk…

---

## [Watcher: \[parse\_exception\] could not parse action \[slack\_test/actions\]. unknown action type \[create-jira-issue\]](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-slack-test-actions-unknown-action-type-create-jira-issue/186621)

<div class="topic-metadata">

**Author:** [@manju134](https://discuss.elastic.co/u/manju134)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 10:59am UTC](https://discuss.elastic.co/t/watcher-parse-exception-could-not-parse-action-slack-test-actions-unknown-action-type-create-jira-issue/186621 "2019-06-20T10:59:03Z")

</div>

Hi All, Below is the code for the watcher i created in kibana. watcher name - slack\_test { "trigger": { "schedule": { "interval": "10m" } }, "input": { "http": { "request": { "sche…

---

## [\[cluster\_block\_exception\] - Disk allocation and usage help!](https://discuss.elastic.co/t/cluster-block-exception-disk-allocation-and-usage-help/186654)

<div class="topic-metadata">

**Author:** [@rickwest](https://discuss.elastic.co/u/rickwest)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 10:54am UTC](https://discuss.elastic.co/t/cluster-block-exception-disk-allocation-and-usage-help/186654 "2019-06-20T10:54:25Z")

</div>

Morning all, New Elasticsearch user here and trying to integrate it into a project that I'm working on. Currently just working locally with Elasticsearch using Ubuntu 18.04. I have been working for the past week or so,…

---

## [Watcher email specific field of all hits from the results](https://discuss.elastic.co/t/watcher-email-specific-field-of-all-hits-from-the-results/186489)

<div class="topic-metadata">

**Author:** [@Arnav\_Sengupta](https://discuss.elastic.co/u/Arnav_Sengupta)\
**Replies:** 4\
**Last updated:** [June 20, 2019, 10:52am UTC](https://discuss.elastic.co/t/watcher-email-specific-field-of-all-hits-from-the-results/186489 "2019-06-20T10:52:44Z")

</div>

I have the following input for my watcher "input": { "search": { "request": { "search\_type": "query\_then\_fetch", "indices": \[ "ccwhaproxy-\*" \], "types": \[\], "body": { "query": { …

---

## [Index format change daily to weekly](https://discuss.elastic.co/t/index-format-change-daily-to-weekly/186656)

<div class="topic-metadata">

**Author:** [@NAHA](https://discuss.elastic.co/u/NAHA)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 10:32am UTC](https://discuss.elastic.co/t/index-format-change-daily-to-weekly/186656 "2019-06-20T10:32:02Z")

</div>

Hi , I am currently send logs from NLog to Elasticsearch. So , my index format default seems like this - \> " logstash-yyyy.MM.dd" I want to change to weekly , My Nlog config file like this: \<target xsi:type="Elas…

---

## [Rolling upgrade problem from 6.8 to 7.1.1](https://discuss.elastic.co/t/rolling-upgrade-problem-from-6-8-to-7-1-1/186571)

<div class="topic-metadata">

**Author:** [@Peter\_LEE](https://discuss.elastic.co/u/Peter_LEE)\
**Replies:** 17\
**Last updated:** [June 20, 2019, 10:28am UTC](https://discuss.elastic.co/t/rolling-upgrade-problem-from-6-8-to-7-1-1/186571 "2019-06-20T10:28:25Z")

</div>

Hello, I have four ES systems( Let's assume that each of the four node names is A, B, C, and D). A, B, C, and D is master and data node. Last week I did rolling upgrade all of ES System from 6.3 to 6.8. It was perfect…

---

## [Deleted data used in model?](https://discuss.elastic.co/t/deleted-data-used-in-model/186488)

<div class="topic-metadata">

**Author:** [@Bharath\_Kumar\_R](https://discuss.elastic.co/u/Bharath_Kumar_R)\
**Replies:** 3\
**Last updated:** [June 20, 2019, 10:26am UTC](https://discuss.elastic.co/t/deleted-data-used-in-model/186488 "2019-06-20T10:26:33Z")

</div>

Consider I have created a job today. We will be storing data for only 60 days. On the 61st day, when data is fed to the job, will the job create a new model with the newly fed data or will the job store the past historic…

---

## [Node previously joined cluster. After esrally, master not discovered yet](https://discuss.elastic.co/t/node-previously-joined-cluster-after-esrally-master-not-discovered-yet/186650)

<div class="topic-metadata">

**Author:** [@anon17386273](https://discuss.elastic.co/u/anon17386273)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 10:25am UTC](https://discuss.elastic.co/t/node-previously-joined-cluster-after-esrally-master-not-discovered-yet/186650 "2019-06-20T10:25:29Z")

</div>

I have 4 machines, each running 3 ES instances. (1 hot, 1 warm, 1 cold) Each instance is tied to a few data.path (Eg. Hot pointing to "/ssd1,/ssd2", warm pointing to "/hdd1, /hdd2", cold pointing to "/hdd3, /hdd4"). …

---

## [Joda date time](https://discuss.elastic.co/t/joda-date-time/186653)

<div class="topic-metadata">

**Author:** [@saranjeet](https://discuss.elastic.co/u/saranjeet)\
**Replies:** 1\
**Last updated:** [June 20, 2019, 10:22am UTC](https://discuss.elastic.co/t/joda-date-time/186653 "2019-06-20T10:22:31Z")

</div>

{ "from": 0, "size": 10000, "query": { "bool": { "must": \[ { "match\_all": { "boost": 1 } }, { "bool": { "must": \[ …

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

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