# Elasticsearch

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

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

**Page:** 1823

---

## [Java RestHighLevelClient put mapping manually](https://discuss.elastic.co/t/java-resthighlevelclient-put-mapping-manually/116091)

<div class="topic-metadata">

**Author:** [@Onoxider](https://discuss.elastic.co/u/Onoxider)\
**Replies:** 9\
**Last updated:** [January 19, 2018, 10:49am UTC](https://discuss.elastic.co/t/java-resthighlevelclient-put-mapping-manually/116091 "2018-01-19T10:49:45Z")

</div>

Hello, is there any way to put mapping with RestHighLevelClient? I know that it's possible with TransportClient via this Doc page: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indic…

---

## [Slice the aggregation](https://discuss.elastic.co/t/slice-the-aggregation/116160)

<div class="topic-metadata">

**Author:** [@dheeran](https://discuss.elastic.co/u/dheeran)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 10:49am UTC](https://discuss.elastic.co/t/slice-the-aggregation/116160 "2018-01-19T10:49:04Z")

</div>

Hi guys, I want to paginate the aggregation, so I decided to use partition filter for my case. Is it the right decision? How to assign "num\_partitions " dynamically using "cardinality" in a single query?

---

## [Issue in elasticdump](https://discuss.elastic.co/t/issue-in-elasticdump/116211)

<div class="topic-metadata">

**Author:** [@kabali12345](https://discuss.elastic.co/u/kabali12345)\
**Replies:** 0\
**Last updated:** [January 19, 2018, 10:27am UTC](https://discuss.elastic.co/t/issue-in-elasticdump/116211 "2018-01-19T10:27:19Z")

</div>

Hi all.... I am trying to Import and Export Visualizations and Dashboards with Elasticdump in kibana-6 elasticdump \\ --input=http://localhost:9200/.kibana \\ --headers='{"Content-Type": "application/json"}' \\ …

---

## [5.6.6-alpine image does not contain /etc/elasticsearch folder](https://discuss.elastic.co/t/5-6-6-alpine-image-does-not-contain-etc-elasticsearch-folder/116207)

<div class="topic-metadata">

**Author:** [@vsevolodk](https://discuss.elastic.co/u/vsevolodk)\
**Replies:** 0\
**Last updated:** [January 19, 2018, 10:21am UTC](https://discuss.elastic.co/t/5-6-6-alpine-image-does-not-contain-etc-elasticsearch-folder/116207 "2018-01-19T10:21:05Z")

</div>

Hello. Please tell why 5.6.6-alpine image does not contain folder /etc/elasticsearch? 5.6.6 image contains this folder.

---

## [Custom dynamic mapping for date through java](https://discuss.elastic.co/t/custom-dynamic-mapping-for-date-through-java/116180)

<div class="topic-metadata">

**Author:** [@avinashmisra](https://discuss.elastic.co/u/avinashmisra)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 10:17am UTC](https://discuss.elastic.co/t/custom-dynamic-mapping-for-date-through-java/116180 "2018-01-19T10:17:25Z")

</div>

Hi, I am working on custom dynamic date mapping and was able to create that through java. Currently issue that I am facing is, while doing search on that data, it takes some time to come for the first time. This was no…

---

## [Why doesn't discovery.zen.master\_election.ignore\_non\_master\_pings default to true?](https://discuss.elastic.co/t/why-doesnt-discovery-zen-master-election-ignore-non-master-pings-default-to-true/115733)

<div class="topic-metadata">

**Author:** [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 9:56am UTC](https://discuss.elastic.co/t/why-doesnt-discovery-zen-master-election-ignore-non-master-pings-default-to-true/115733 "2018-01-19T09:56:33Z")

</div>

Is there a reason why discovery.zen.master\_election.ignore\_non\_master\_pings defaults to false and isn't filtering non-master pings by default? Seems like setting it to true can relieve some pressure from masters which i…

---

## [Disable index.translog.flush.threshold\_ops](https://discuss.elastic.co/t/disable-index-translog-flush-threshold-ops/115579)

<div class="topic-metadata">

**Author:** [@Omar\_Abu\_Ajamieh](https://discuss.elastic.co/u/Omar_Abu_Ajamieh)\
**Replies:** 2\
**Last updated:** [January 19, 2018, 9:50am UTC](https://discuss.elastic.co/t/disable-index-translog-flush-threshold-ops/115579 "2018-01-19T09:50:11Z")

</div>

Hi Guys, I'm trying to upgrade our elasticsearch cluster from 2.4 to 5.6 and i'm using the elasticsearch migration helper v2.04 and it returned a red alerts on all the indices that there is a replaced settings which in…

---

## [Elastic Stack on Raspberry Pi 3](https://discuss.elastic.co/t/elastic-stack-on-raspberry-pi-3/116200)

<div class="topic-metadata">

**Author:** [@tomx1](https://discuss.elastic.co/u/tomx1)\
**Replies:** 0\
**Last updated:** [January 19, 2018, 9:34am UTC](https://discuss.elastic.co/t/elastic-stack-on-raspberry-pi-3/116200 "2018-01-19T09:34:32Z")

</div>

I am thinking about installing the Elastic Stack on a Raspberry Pi 3 for a quite little private project. In fact this Installation would not store more than ~1.500 Documents a day for not longer than 6 months. So i ask …

---

## [ElasticSearch - change index everyday](https://discuss.elastic.co/t/elasticsearch-change-index-everyday/116076)

<div class="topic-metadata">

**Author:** [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Replies:** 2\
**Last updated:** [January 19, 2018, 9:18am UTC](https://discuss.elastic.co/t/elasticsearch-change-index-everyday/116076 "2018-01-19T09:18:08Z")

</div>

I use ElasticSearch 6.1 and I want automatically change my index for metrics data everyday. This changed index can include current data or just increased number. So, for some metrics in one day it can be "metrics-2018…

---

## [Range value type int or float,result different](https://discuss.elastic.co/t/range-value-type-int-or-float-result-different/116175)

<div class="topic-metadata">

**Author:** [@githubyyf](https://discuss.elastic.co/u/githubyyf)\
**Replies:** 9\
**Last updated:** [January 19, 2018, 8:35am UTC](https://discuss.elastic.co/t/range-value-type-int-or-float-result-different/116175 "2018-01-19T08:35:50Z")

</div>

1.range value type float code: GET /shops/baseShops/\_search?\_source=true&size=10 {"query":{"match\_all":{}},"post\_filter":{"bool":{"must":\[\[{"term":{"company\_id":75}}\],\[{"term":{"manager\_id":"3685"}}\],\[{"range":{"out\_d…

---

## [Role to view both aggregate and user data](https://discuss.elastic.co/t/role-to-view-both-aggregate-and-user-data/115661)

<div class="topic-metadata">

**Author:** [@Matthew\_Field](https://discuss.elastic.co/u/Matthew_Field)\
**Replies:** 2\
**Last updated:** [January 19, 2018, 7:54am UTC](https://discuss.elastic.co/t/role-to-view-both-aggregate-and-user-data/115661 "2018-01-19T07:54:49Z")

</div>

I have a use case which requires a user to be able to see their own documents and compare with trends in aggregate data of competitors documents. I can that I can configure X-pack to enable a user to see only their own …

---

## [Difference between 'rebalance.enable' and 'allocation.enable'](https://discuss.elastic.co/t/difference-between-rebalance-enable-and-allocation-enable/115994)

<div class="topic-metadata">

**Author:** [@Fhoenix](https://discuss.elastic.co/u/Fhoenix)\
**Replies:** 3\
**Last updated:** [January 19, 2018, 7:44am UTC](https://discuss.elastic.co/t/difference-between-rebalance-enable-and-allocation-enable/115994 "2018-01-19T07:44:44Z")

</div>

I was looking for a setting to stop the big old shards that contain data from moving, when a new node is added. I found on this page https://www.elastic.co/guide/en/elasticsearch/reference/current/shards-allocation.html …

---

## [Rally Summary Report and Kibana](https://discuss.elastic.co/t/rally-summary-report-and-kibana/116129)

<div class="topic-metadata">

**Author:** [@Alp1](https://discuss.elastic.co/u/Alp1)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 7:21am UTC](https://discuss.elastic.co/t/rally-summary-report-and-kibana/116129 "2018-01-19T07:21:24Z")

</div>

Hi I had run rally benchmarking for one search operation on existing index and got below results : Lap Metric Task Value Unit All Indexing time 274.278 min All Merge time 398.326 min All Refresh time 183…

---

## [After use Elastic 6.1, I can not import index-pattern/dashboard/visualization automatically like 6.0 and previous version](https://discuss.elastic.co/t/after-use-elastic-6-1-i-can-not-import-index-pattern-dashboard-visualization-automatically-like-6-0-and-previous-version/115688)

<div class="topic-metadata">

**Author:** [@supergunme](https://discuss.elastic.co/u/supergunme)\
**Replies:** 3\
**Last updated:** [January 19, 2018, 6:51am UTC](https://discuss.elastic.co/t/after-use-elastic-6-1-i-can-not-import-index-pattern-dashboard-visualization-automatically-like-6-0-and-previous-version/115688 "2018-01-19T06:51:43Z")

</div>

Hi guys, I encountered an issue that previously I used python to import/export index-pattern and other saved objects automatically. Even there were some changes in each version, but mostly the script worked fine. However…

---

## [How to get ampersand as value](https://discuss.elastic.co/t/how-to-get-ampersand-as-value/115968)

<div class="topic-metadata">

**Author:** [@Sharon\_wsf](https://discuss.elastic.co/u/Sharon_wsf)\
**Replies:** 17\
**Last updated:** [January 19, 2018, 6:00am UTC](https://discuss.elastic.co/t/how-to-get-ampersand-as-value/115968 "2018-01-19T06:00:24Z")

</div>

hi Team, below is my query for searching http://localhost:9200/news//\_search { "query": { "bool": { "must": \[{ "multi\_match": { "query": "T&L" , "fields": \[ "stkno", "tag" ,"content" ,"htext" \] ,"operator": "an…

---

## [ElasticSearch \_optimize not working](https://discuss.elastic.co/t/elasticsearch-optimize-not-working/116159)

<div class="topic-metadata">

**Author:** [@gautam\_gro](https://discuss.elastic.co/u/gautam_gro)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 5:58am UTC](https://discuss.elastic.co/t/elasticsearch-optimize-not-working/116159 "2018-01-19T05:58:02Z")

</div>

I am unable to call \_optimize api as per documentation of elastic search. Error "Request Body is required" What do we need to send in Request Body? I have tried calling api using Curl and fiddler both. Please provide…

---

## [NEST Library Error - sort field descriptor does not contain a definition for \<property type\> dot net core (2.0)](https://discuss.elastic.co/t/nest-library-error-sort-field-descriptor-does-not-contain-a-definition-for-property-type-dot-net-core-2-0/115974)

<div class="topic-metadata">

**Author:** [@rakesh1](https://discuss.elastic.co/u/rakesh1)\
**Replies:** 15\
**Last updated:** [January 19, 2018, 5:40am UTC](https://discuss.elastic.co/t/nest-library-error-sort-field-descriptor-does-not-contain-a-definition-for-property-type-dot-net-core-2-0/115974 "2018-01-19T05:40:56Z")

</div>

Hi, The following section is giving an compilation error in dot net core (2.0) - vs2017, although the same is working fine in dot net 4.5.1 - vs2015. Error in line - sortDesc = s =\> s.Field(f =\> f.Year, sort.Direction…

---

## [Cannot upgrade 6.1.0 to 6.1.2](https://discuss.elastic.co/t/cannot-upgrade-6-1-0-to-6-1-2/116140)

<div class="topic-metadata">

**Author:** [@sdauletau](https://discuss.elastic.co/u/sdauletau)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 5:06am UTC](https://discuss.elastic.co/t/cannot-upgrade-6-1-0-to-6-1-2/116140 "2018-01-19T05:06:08Z")

</div>

We have elasticsearch 6.1.0 with custom default similarity. Trying to upgrade from 6.1.0 to 6.1.2 and getting error when starting elasticsearch. Caused by: java.lang.IllegalArgumentException: Unknown Similarity type \[C…

---

## [Snort Integration With Elastic Stack](https://discuss.elastic.co/t/snort-integration-with-elastic-stack/116158)

<div class="topic-metadata">

**Author:** [@Krunal\_kalaria](https://discuss.elastic.co/u/Krunal_kalaria)\
**Replies:** 0\
**Last updated:** [January 19, 2018, 4:37am UTC](https://discuss.elastic.co/t/snort-integration-with-elastic-stack/116158 "2018-01-19T04:37:55Z")

</div>

Hello Team, I want to integrate Snort IDS with Elastic Stack if any documentation is their for this integration please suggest me. Thnks & Regards, Krunal K.

---

## [Any possibility to have es.resource with alias name](https://discuss.elastic.co/t/any-possibility-to-have-es-resource-with-alias-name/115123)

<div class="topic-metadata">

**Author:** [@dearsaran](https://discuss.elastic.co/u/dearsaran)\
**Replies:** 2\
**Last updated:** [January 19, 2018, 4:05am UTC](https://discuss.elastic.co/t/any-possibility-to-have-es-resource-with-alias-name/115123 "2018-01-19T04:05:28Z")

</div>

Hi All, Is there any way I can user Alias name in es.resource while creating EXTERNAL table in HIVE using TBLPROPERTIES. I've 2 different indexes in Elasticsearch and alias will be switched between stage and active ind…

---

## [Elasticsearch process on ubuntu 16.04 stops - no error log](https://discuss.elastic.co/t/elasticsearch-process-on-ubuntu-16-04-stops-no-error-log/116154)

<div class="topic-metadata">

**Author:** [@morphers82](https://discuss.elastic.co/u/morphers82)\
**Replies:** 0\
**Last updated:** [January 19, 2018, 3:34am UTC](https://discuss.elastic.co/t/elasticsearch-process-on-ubuntu-16-04-stops-no-error-log/116154 "2018-01-19T03:34:04Z")

</div>

I have multiple elasticsearch instances on a server. everyone once in a while (day or two) one of those instances just disconnects from the cluster. there is nothing in the error log to indicate what is happening. The…

---

## [Sample Dashboard Display Issues](https://discuss.elastic.co/t/sample-dashboard-display-issues/115771)

<div class="topic-metadata">

**Author:** [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 3:02am UTC](https://discuss.elastic.co/t/sample-dashboard-display-issues/115771 "2018-01-19T03:02:56Z")

</div>

Recently setup an ELK Stack and am having issues after I began feeding it MetricBeat and WinlogBeat data from five servers. When pulling up MetricBeat's sample Host or Overview dashboards I receive one of two types of e…

---

## [How to interpret gc log messages](https://discuss.elastic.co/t/how-to-interpret-gc-log-messages/116148)

<div class="topic-metadata">

**Author:** [@mario12](https://discuss.elastic.co/u/mario12)\
**Replies:** 0\
**Last updated:** [January 19, 2018, 2:15am UTC](https://discuss.elastic.co/t/how-to-interpret-gc-log-messages/116148 "2018-01-19T02:15:48Z")

</div>

\[gc\]\[young\]\[6769933\]\[90456\] duration \[816ms\], collections \[1\]/\[1s\], total \[816ms\]/\[1h\], memory \[18.6gb\]-\>\[19.8gb\]/\[29.6gb\], all\_pools {\[young\] \[1.7mb\]-\>\[436mb\]/\[865.3mb\]}{\[survivor\] \[108.1mb\]-\>\[108.1mb\]/\[108.1mb\]}{\[old\] …

---

## [Feedback about Short Tutorial](https://discuss.elastic.co/t/feedback-about-short-tutorial/116139)

<div class="topic-metadata">

**Author:** [@victorsmelo](https://discuss.elastic.co/u/victorsmelo)\
**Replies:** 2\
**Last updated:** [January 19, 2018, 1:31am UTC](https://discuss.elastic.co/t/feedback-about-short-tutorial/116139 "2018-01-19T01:31:55Z")

</div>

Hey folks! I'm new here. I've started learning about Elasticsearch and Kibana this week. I've decided to write a Medium story with an introduction for it, using my point of view according to some tutorials I saw. I mad…

---

## [Append on update](https://discuss.elastic.co/t/append-on-update/116142)

<div class="topic-metadata">

**Author:** [@Ranieri\_Mazili\_de\_Ol](https://discuss.elastic.co/u/Ranieri_Mazili_de_Ol)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 12:00am UTC](https://discuss.elastic.co/t/append-on-update/116142 "2018-01-19T00:00:51Z")

</div>

Hello, I have the following document that's created as a new document. http://localhost:9200/ibmbpm/doc/task2?pretty { "lastUpdate" : "2018-01-14T14:40:20.452-02:00", "tasks" : { "1" : { "lastUpdate" : "2018-01-1…

---

## [Force merge is not merging all the segments](https://discuss.elastic.co/t/force-merge-is-not-merging-all-the-segments/115966)

<div class="topic-metadata">

**Author:** [@elasticdude](https://discuss.elastic.co/u/elasticdude)\
**Replies:** 1\
**Last updated:** [January 18, 2018, 10:02pm UTC](https://discuss.elastic.co/t/force-merge-is-not-merging-all-the-segments/115966 "2018-01-18T22:02:29Z")

</div>

Our cluster is configured as follows (This is a AWS managed Elasticservice) 8 data nodes 8 Shards 1 Replica shard Here is an example of index: green open service-logs-2017-12-10 ouyQ9Ew2SQQ 8 1 348663916 12687396 …

---

## [Using puppet for elastic upgrade to 5.x](https://discuss.elastic.co/t/using-puppet-for-elastic-upgrade-to-5-x/116108)

<div class="topic-metadata">

**Author:** [@Sa1](https://discuss.elastic.co/u/Sa1)\
**Replies:** 1\
**Last updated:** [January 18, 2018, 9:10pm UTC](https://discuss.elastic.co/t/using-puppet-for-elastic-upgrade-to-5-x/116108 "2018-01-18T21:10:34Z")

</div>

sorry for being ignorant .How puppet will help for elastic upgrade from 2,x to 5.x? i know puppet can be used to automate large scale elastic deployments. from upgrade point of view how can i use puppet.can some one th…

---

## [Dynamic template](https://discuss.elastic.co/t/dynamic-template/116000)

<div class="topic-metadata">

**Author:** [@piingluo](https://discuss.elastic.co/u/piingluo)\
**Replies:** 5\
**Last updated:** [January 18, 2018, 8:19pm UTC](https://discuss.elastic.co/t/dynamic-template/116000 "2018-01-18T20:19:32Z")

</div>

my dynamic template , as follow: "dynamic\_templates": \[ { "strings\_as\_keyword": { "match\_mapping\_type": "string", "match": "\*", "unmatch": \["message","\*id"\], "mapping": { "type": "keyword" } } }, { "messag…

---

## [What is the recommended practice for \`\_meta\` in ES6?](https://discuss.elastic.co/t/what-is-the-recommended-practice-for-meta-in-es6/116128)

<div class="topic-metadata">

**Author:** [@Pisush](https://discuss.elastic.co/u/Pisush)\
**Replies:** 0\
**Last updated:** [January 18, 2018, 7:49pm UTC](https://discuss.elastic.co/t/what-is-the-recommended-practice-for-meta-in-es6/116128 "2018-01-18T19:49:41Z")

</div>

\_meta is storing metadata associated with a mapping type. With the removal of mapping type in ES6 - what is the recommended practice for it? just make it store metadata associated with the index? the right location wil…

---

## [Does Snapshot/Restore to a different target cluster retain system indices?](https://discuss.elastic.co/t/does-snapshot-restore-to-a-different-target-cluster-retain-system-indices/115775)

<div class="topic-metadata">

**Author:** [@Senor](https://discuss.elastic.co/u/Senor)\
**Replies:** 2\
**Last updated:** [January 18, 2018, 7:46pm UTC](https://discuss.elastic.co/t/does-snapshot-restore-to-a-different-target-cluster-retain-system-indices/115775 "2018-01-18T19:46:30Z")

</div>

As the title states, if I were to perform a snapshot on one cluster and restore it to another target cluster, will it retain the .\* system indices? In particular, .security, .kibana, .monitoring, .watcher-history and so …

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

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