# Elasticsearch

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

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

**Page:** 1835

---

## [CPU Affinity and Numa](https://discuss.elastic.co/t/cpu-affinity-and-numa/114576)

<div class="topic-metadata">

**Author:** [@morphers82](https://discuss.elastic.co/u/morphers82)\
**Replies:** 0\
**Last updated:** [January 8, 2018, 5:24pm UTC](https://discuss.elastic.co/t/cpu-affinity-and-numa/114576 "2018-01-08T17:24:01Z")

</div>

I am hosting multiple nodes on single servers that include multiple numa nodes. I would like to setup some kind of cpu/core affinity for each elasticsearch process and a better numa policy than the default. I am on ubu…

---

## [Java High Rest Client, how to call CLOSE() waiting for ASYNC request](https://discuss.elastic.co/t/java-high-rest-client-how-to-call-close-waiting-for-async-request/114563)

<div class="topic-metadata">

**Author:** [@michaelsogos](https://discuss.elastic.co/u/michaelsogos)\
**Replies:** 2\
**Last updated:** [January 8, 2018, 5:07pm UTC](https://discuss.elastic.co/t/java-high-rest-client-how-to-call-close-waiting-for-async-request/114563 "2018-01-08T17:07:00Z")

</div>

Dear, How is it possible to wait for ASYNC REQUEST complete before call Close()? We are using Java High Rest Client. Our target is to create one instance of RestHighLevelClient, make many ASYNC requests (using indexAs…

---

## [BalancedShardAllocator Algorithm](https://discuss.elastic.co/t/balancedshardallocator-algorithm/114569)

<div class="topic-metadata">

**Author:** [@vigneshD](https://discuss.elastic.co/u/vigneshD)\
**Replies:** 0\
**Last updated:** [January 8, 2018, 5:01pm UTC](https://discuss.elastic.co/t/balancedshardallocator-algorithm/114569 "2018-01-08T17:01:26Z")

</div>

Hi i am new to elasticsearch , I am interested in understanding the balancedshardallocator algorithm that elasticsearch uses for load balancing.I tried to study from the code provided in github but i am unable to underst…

---

## [Elasticsearch index not visible](https://discuss.elastic.co/t/elasticsearch-index-not-visible/114548)

<div class="topic-metadata">

**Author:** [@rrs](https://discuss.elastic.co/u/rrs)\
**Replies:** 6\
**Last updated:** [January 8, 2018, 4:52pm UTC](https://discuss.elastic.co/t/elasticsearch-index-not-visible/114548 "2018-01-08T16:52:37Z")

</div>

Hi All, I setup ELK stack 5.6.3. The issue is that Elastic nodes in my cluster are creating indexes with defined name, but when we query /\_cat/indices, created indexes are not showing and Kibana dashboard as well. Can y…

---

## [Elasticsearch won't start after upgrade from 2.4.5 to 5.6](https://discuss.elastic.co/t/elasticsearch-wont-start-after-upgrade-from-2-4-5-to-5-6/113507)

<div class="topic-metadata">

**Author:** [@OlympiaLady](https://discuss.elastic.co/u/OlympiaLady)\
**Replies:** 6\
**Last updated:** [January 8, 2018, 4:23pm UTC](https://discuss.elastic.co/t/elasticsearch-wont-start-after-upgrade-from-2-4-5-to-5-6/113507 "2018-01-08T16:23:25Z")

</div>

I am trying to upgrade Elasticsearch from 2.4.5 to 5.6 on the latest Debian. I did the upgrade, and after the upgrade, Elasticsearch would not start. I have no plugins installed, so that is not an issue. I kept my ela…

---

## [Elasticsearch sub-aggregation on bucket script - Categorize bucket script result](https://discuss.elastic.co/t/elasticsearch-sub-aggregation-on-bucket-script-categorize-bucket-script-result/114558)

<div class="topic-metadata">

**Author:** [@nicolas-guerrier](https://discuss.elastic.co/u/nicolas-guerrier)\
**Replies:** 0\
**Last updated:** [January 8, 2018, 4:08pm UTC](https://discuss.elastic.co/t/elasticsearch-sub-aggregation-on-bucket-script-categorize-bucket-script-result/114558 "2018-01-08T16:08:32Z")

</div>

I would like to categorize a bucket script result. If I take the elasticsearch example : POST /sales/\_search { "size": 0, "aggs" : { "sales\_per\_month" : { "date\_histogram" : { …

---

## ['fielddata\_fields' to 'docvalue\_fields' in 6.x problems](https://discuss.elastic.co/t/fielddata-fields-to-docvalue-fields-in-6-x-problems/114375)

<div class="topic-metadata">

**Author:** [@iKishanSojitra](https://discuss.elastic.co/u/iKishanSojitra)\
**Replies:** 3\
**Last updated:** [January 8, 2018, 3:45pm UTC](https://discuss.elastic.co/t/fielddata-fields-to-docvalue-fields-in-6-x-problems/114375 "2018-01-08T15:45:27Z")

</div>

As per log of breaking changes in elasticsearch 6.x, fielddata\_fields is now deprecated. I'm trying to change my NEST DSL query to run it in newer version but I can not find docvalue\_fields in the place of fielddata\_fie…

---

## [Gc takes a lot of time](https://discuss.elastic.co/t/gc-takes-a-lot-of-time/114539)

<div class="topic-metadata">

**Author:** [@gensmusic](https://discuss.elastic.co/u/gensmusic)\
**Replies:** 13\
**Last updated:** [January 8, 2018, 3:13pm UTC](https://discuss.elastic.co/t/gc-takes-a-lot-of-time/114539 "2018-01-08T15:13:59Z")

</div>

we use elasticsearch to store log data. Currently we have 16 data nodes and 3 master. Each data node is 24 core cpu, 2.6Tx12 disk, and 32G memory. We use half of the memory for elasticsearch. We use index name like b…

---

## [Query and Filter context](https://discuss.elastic.co/t/query-and-filter-context/114544)

<div class="topic-metadata">

**Author:** [@vnitdeepak](https://discuss.elastic.co/u/vnitdeepak)\
**Replies:** 1\
**Last updated:** [January 8, 2018, 3:09pm UTC](https://discuss.elastic.co/t/query-and-filter-context/114544 "2018-01-08T15:09:55Z")

</div>

How can I Use same field in query as well as Filter context.

---

## [Mapper\_parsing\_exception with template](https://discuss.elastic.co/t/mapper-parsing-exception-with-template/114534)

<div class="topic-metadata">

**Author:** [@florentmair](https://discuss.elastic.co/u/florentmair)\
**Replies:** 7\
**Last updated:** [January 8, 2018, 2:56pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-with-template/114534 "2018-01-08T14:56:24Z")

</div>

Hello, i am updated my cluster from 5.6.1 to 6.1.1 and i am not able to create new index if i use template My template PUT \_template/tds\_audit { "order": 0, "index\_patterns": "logstash-tds\_audit\*", "setti…

---

## [Error: Failed to decrypt report job data. Please re-generate this report. how? 5.6.4](https://discuss.elastic.co/t/error-failed-to-decrypt-report-job-data-please-re-generate-this-report-how-5-6-4/112768)

<div class="topic-metadata">

**Author:** [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Replies:** 10\
**Last updated:** [January 8, 2018, 2:51pm UTC](https://discuss.elastic.co/t/error-failed-to-decrypt-report-job-data-please-re-generate-this-report-how-5-6-4/112768 "2018-01-08T14:51:00Z")

</div>

Error: Failed to decrypt report job data. Please re-generate this report. how to do about it ? \[image\] the other error. Unhandled rejection Error: You must install fontconfig and freetype for Reporting to work

---

## [Infrastructure for Elastissearch](https://discuss.elastic.co/t/infrastructure-for-elastissearch/114531)

<div class="topic-metadata">

**Author:** [@Myneni](https://discuss.elastic.co/u/Myneni)\
**Replies:** 4\
**Last updated:** [January 8, 2018, 2:49pm UTC](https://discuss.elastic.co/t/infrastructure-for-elastissearch/114531 "2018-01-08T14:49:28Z")

</div>

I'm new to Elastic-search and we have a requirement to implement it for 300 GB SQL Server data which contains documents also. I'm looking what will be the optimal infrastructure (like RAM, Disk Space, no of cores, no of …

---

## [Check if similare documents exists?](https://discuss.elastic.co/t/check-if-similare-documents-exists/114432)

<div class="topic-metadata">

**Author:** [@Antoine94](https://discuss.elastic.co/u/Antoine94)\
**Replies:** 3\
**Last updated:** [January 8, 2018, 2:20pm UTC](https://discuss.elastic.co/t/check-if-similare-documents-exists/114432 "2018-01-08T14:20:25Z")

</div>

Hi, I'm doing some tests with ELK (Latest version), here is my use case: I'm indexing some documents containing phone activity, where I use these fields: SYSTEMA.EndUserName SYSTEMA.EndUserPhoneNumber SYSTEMA.Counter…

---

## [Phrase search](https://discuss.elastic.co/t/phrase-search/114536)

<div class="topic-metadata">

**Author:** [@shiqizheng](https://discuss.elastic.co/u/shiqizheng)\
**Replies:** 0\
**Last updated:** [January 8, 2018, 2:09pm UTC](https://discuss.elastic.co/t/phrase-search/114536 "2018-01-08T14:09:41Z")

</div>

How to do phrase search while preserving synonym matching?

---

## [Search for special characters](https://discuss.elastic.co/t/search-for-special-characters/114495)

<div class="topic-metadata">

**Author:** [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Replies:** 7\
**Last updated:** [January 8, 2018, 1:55pm UTC](https://discuss.elastic.co/t/search-for-special-characters/114495 "2018-01-08T13:55:25Z")

</div>

What is the best combination of token filters+tokenizer+analyzer to search on special characters present in my document?

---

## [Which node will be elected if the cluster have only 2 master eligible node](https://discuss.elastic.co/t/which-node-will-be-elected-if-the-cluster-have-only-2-master-eligible-node/114523)

<div class="topic-metadata">

**Author:** [@Ram\_Prasath](https://discuss.elastic.co/u/Ram_Prasath)\
**Replies:** 2\
**Last updated:** [January 8, 2018, 12:55pm UTC](https://discuss.elastic.co/t/which-node-will-be-elected-if-the-cluster-have-only-2-master-eligible-node/114523 "2018-01-08T12:55:57Z")

</div>

Let us say I have nodes A(Master ) , B(Maser eligible ) & Node C (master eligible ) in a 3 node cluster and for some reason, the Node A is down and a master election is triggered since the quorum is 2 and we have two mas…

---

## [Elasticsearch as data source for Tableau](https://discuss.elastic.co/t/elasticsearch-as-data-source-for-tableau/114521)

<div class="topic-metadata">

**Author:** [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Replies:** 1\
**Last updated:** [January 8, 2018, 12:32pm UTC](https://discuss.elastic.co/t/elasticsearch-as-data-source-for-tableau/114521 "2018-01-08T12:32:42Z")

</div>

Is there a way to read data from Elasticsearch into Tableau?

---

## [Delete a specific type from an index](https://discuss.elastic.co/t/delete-a-specific-type-from-an-index/114499)

<div class="topic-metadata">

**Author:** [@cilzzz](https://discuss.elastic.co/u/cilzzz)\
**Replies:** 2\
**Last updated:** [January 8, 2018, 12:21pm UTC](https://discuss.elastic.co/t/delete-a-specific-type-from-an-index/114499 "2018-01-08T12:21:18Z")

</div>

Hey, I have one index named logstash\_ecps-rct\* and i have many types in it. i want to delete the type: mssql from it so i tried devtools: DELETE logstash-ecps\_rct\*/mssql and i got this error No handler found for uri…

---

## [Compare fields](https://discuss.elastic.co/t/compare-fields/114514)

<div class="topic-metadata">

**Author:** [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Replies:** 7\
**Last updated:** [January 8, 2018, 12:10pm UTC](https://discuss.elastic.co/t/compare-fields/114514 "2018-01-08T12:10:49Z")

</div>

Hi all, So I am trying to compare two fields from a specific progam. I am trying it with this. { "query": { "bool": { "must": \[{ "script": { "script": { "inline": "doc\['email.k…

---

## [XPack Alerting :- Get Nodes Stats and Cluster State APIs in http input plugin](https://discuss.elastic.co/t/xpack-alerting-get-nodes-stats-and-cluster-state-apis-in-http-input-plugin/114500)

<div class="topic-metadata">

**Author:** [@Shivanshu\_Bagga](https://discuss.elastic.co/u/Shivanshu_Bagga)\
**Replies:** 5\
**Last updated:** [January 8, 2018, 11:36am UTC](https://discuss.elastic.co/t/xpack-alerting-get-nodes-stats-and-cluster-state-apis-in-http-input-plugin/114500 "2018-01-08T11:36:53Z")

</div>

Hi, I want to use both Nodes and Cluster State APIs in http input plugin for alerting. { "trigger": { "schedule": { "interval": "10s" } }, "input" : { "http" : { "request" : { "scheme": …

---

## [Watcher: transform](https://discuss.elastic.co/t/watcher-transform/112185)

<div class="topic-metadata">

**Author:** [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Replies:** 9\
**Last updated:** [January 8, 2018, 11:34am UTC](https://discuss.elastic.co/t/watcher-transform/112185 "2018-01-08T11:34:15Z")

</div>

I want to use the transform section in watcher before action and wanted additional field to be added to the current payload. When I use the following painless script before the action I am getting only the epochtime in a…

---

## [Special characters in Slack notifications](https://discuss.elastic.co/t/special-characters-in-slack-notifications/114480)

<div class="topic-metadata">

**Author:** [@TimTim](https://discuss.elastic.co/u/TimTim)\
**Replies:** 2\
**Last updated:** [January 8, 2018, 11:27am UTC](https://discuss.elastic.co/t/special-characters-in-slack-notifications/114480 "2018-01-08T11:27:01Z")

</div>

The notifications to Slack work just fine, but I need some swedish characters in the messages and seem to get converted into something weird: innehåll =\> innehBAD+5ll Using ES 6.1.1. Before we upgraded we had a ES 2.…

---

## [Does Watcher Slack Action support UTF-8?](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731)

<div class="topic-metadata">

**Author:** [@serive](https://discuss.elastic.co/u/serive)\
**Replies:** 3\
**Last updated:** [January 8, 2018, 11:26am UTC](https://discuss.elastic.co/t/does-watcher-slack-action-support-utf-8/112731 "2018-01-08T11:26:55Z")

</div>

Hi, I tried slack action of watcher but Non-ASCII character becomes "?". Elastic stack version: 6.1.0 watcher settings: { "trigger": { "schedule": { "cron": "0 \* \* \* \* ?" } }, "input": { "sear…

---

## [ElasticSearch integration with Webcenter Content](https://discuss.elastic.co/t/elasticsearch-integration-with-webcenter-content/114483)

<div class="topic-metadata">

**Author:** [@prateeklpatel](https://discuss.elastic.co/u/prateeklpatel)\
**Replies:** 5\
**Last updated:** [January 8, 2018, 11:18am UTC](https://discuss.elastic.co/t/elasticsearch-integration-with-webcenter-content/114483 "2018-01-08T11:18:43Z")

</div>

How to integrate elasticsearch with Oracle webcenter content.

---

## [Elasticsearch how to create index template with raw field](https://discuss.elastic.co/t/elasticsearch-how-to-create-index-template-with-raw-field/114253)

<div class="topic-metadata">

**Author:** [@jerrychen](https://discuss.elastic.co/u/jerrychen)\
**Replies:** 3\
**Last updated:** [January 8, 2018, 10:32am UTC](https://discuss.elastic.co/t/elasticsearch-how-to-create-index-template-with-raw-field/114253 "2018-01-08T10:32:52Z")

</div>

Elasticsearch 5.4.0 My logstash will create index by date, I want to create index template,which can auto add raw field not-analyzed. so i can do aggs term by string field. I got some error when create template by kiban…

---

## [Elasticsearch upgrade from v2.3.4 to v6.1.1](https://discuss.elastic.co/t/elasticsearch-upgrade-from-v2-3-4-to-v6-1-1/113040)

<div class="topic-metadata">

**Author:** [@vishal\_kumar](https://discuss.elastic.co/u/vishal_kumar)\
**Replies:** 13\
**Last updated:** [January 8, 2018, 10:21am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-v2-3-4-to-v6-1-1/113040 "2018-01-08T10:21:03Z")

</div>

Hi, I have a setup running elasticsearch v2.3.4, I want to upgrade it to v6.1.1 and I wanted to migrate all my data from v2.3.4 to v6.1.1. I followed all the steps suggested for this. 1st I upgraded by elasticsearch to…

---

## [How to make query on inside document split](https://discuss.elastic.co/t/how-to-make-query-on-inside-document-split/113558)

<div class="topic-metadata">

**Author:** [@anjireddy543](https://discuss.elastic.co/u/anjireddy543)\
**Replies:** 2\
**Last updated:** [January 8, 2018, 9:17am UTC](https://discuss.elastic.co/t/how-to-make-query-on-inside-document-split/113558 "2018-01-08T09:17:18Z")

</div>

Hi, I have a index field Called Test and it contains few documents Doc1:- \<li\>Presidency Towns Insolvency, 1909 &mdash; Section 53, 168\</li\>\<li\>Evidence, 1872 &mdash; Section 45\</li\>\<li\>Negotiable Instruments, 1881 (N…

---

## [How to use aggregations in scroll endpoint](https://discuss.elastic.co/t/how-to-use-aggregations-in-scroll-endpoint/114468)

<div class="topic-metadata">

**Author:** [@eboy](https://discuss.elastic.co/u/eboy)\
**Replies:** 5\
**Last updated:** [January 8, 2018, 9:09am UTC](https://discuss.elastic.co/t/how-to-use-aggregations-in-scroll-endpoint/114468 "2018-01-08T09:09:06Z")

</div>

I can not use aggregation in scroll endpoint; The operation displays the following images: \[2\]\[1\] As shown in image 1, I can only modify "max\_size" at last. But this should not be the ultimate solution, helping.

---

## [Error while sending the report](https://discuss.elastic.co/t/error-while-sending-the-report/113641)

<div class="topic-metadata">

**Author:** [@uvarisubash](https://discuss.elastic.co/u/uvarisubash)\
**Replies:** 5\
**Last updated:** [January 8, 2018, 9:03am UTC](https://discuss.elastic.co/t/error-while-sending-the-report/113641 "2018-01-08T09:03:21Z")

</div>

I am getting an error while setting up email report: Watch\[inlined\] reporting\[error\_report.pdf\] Error when polling pdf from Error message -------------------------------------------------------------------------------…

---

## [Curl Xdelete with ELASTICSEARCH 6.1](https://discuss.elastic.co/t/curl-xdelete-with-elasticsearch-6-1/114461)

<div class="topic-metadata">

**Author:** [@pittoch](https://discuss.elastic.co/u/pittoch)\
**Replies:** 4\
**Last updated:** [January 8, 2018, 8:33am UTC](https://discuss.elastic.co/t/curl-xdelete-with-elasticsearch-6-1/114461 "2018-01-08T08:33:17Z")

</div>

Hello Do you know how I can delete document in one curl command ? I have a index called "myindex". I want to delete all document where the field prediction is like "yes" With Elasticsearch 2.1, I use: curl.exe -XDE…

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

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