# Elasticsearch

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

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

**Page:** 1831

---

## [Double datatypes values returned as 0 rather than 0.0 in Elastic Search Results](https://discuss.elastic.co/t/double-datatypes-values-returned-as-0-rather-than-0-0-in-elastic-search-results/114893)

<div class="topic-metadata">

**Author:** [@Niranjan\_Velakanti](https://discuss.elastic.co/u/Niranjan_Velakanti)\
**Replies:** 16\
**Last updated:** [January 11, 2018, 9:22pm UTC](https://discuss.elastic.co/t/double-datatypes-values-returned-as-0-rather-than-0-0-in-elastic-search-results/114893 "2018-01-11T21:22:12Z")

</div>

Hi We are in a process of migrating ES from 1.5.2 to 6.1.1 and we hit a problem. We have an index where one of the properties is of type "double". The value for the property in the documents loaded into the index is …

---

## [Performance comparisons of aggregations of fields in nested documents vs at root level?](https://discuss.elastic.co/t/performance-comparisons-of-aggregations-of-fields-in-nested-documents-vs-at-root-level/115173)

<div class="topic-metadata">

**Author:** [@Devgruel](https://discuss.elastic.co/u/Devgruel)\
**Replies:** 0\
**Last updated:** [January 11, 2018, 9:03pm UTC](https://discuss.elastic.co/t/performance-comparisons-of-aggregations-of-fields-in-nested-documents-vs-at-root-level/115173 "2018-01-11T21:03:55Z")

</div>

I am interested in letting users perform aggregations on an arbitrary time range of past data. These aggregations will include averages, percentiles, and terms aggregations with multiple sub-aggregation-levels. The data …

---

## [Search impacts on ingest causing gap in data](https://discuss.elastic.co/t/search-impacts-on-ingest-causing-gap-in-data/115169)

<div class="topic-metadata">

**Author:** [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Replies:** 0\
**Last updated:** [January 11, 2018, 8:07pm UTC](https://discuss.elastic.co/t/search-impacts-on-ingest-causing-gap-in-data/115169 "2018-01-11T20:07:54Z")

</div>

Hello, I'm having some problems with some queries, even simple ones, that impact the ingest on my elastic cluster and leave some gaps in the data. Currently I have three elastic nodes, each one has 8 cores and 28 GB of…

---

## [X-Pack Weekly Indices rather then daily](https://discuss.elastic.co/t/x-pack-weekly-indices-rather-then-daily/114910)

<div class="topic-metadata">

**Author:** [@MPurcell](https://discuss.elastic.co/u/MPurcell)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 7:41pm UTC](https://discuss.elastic.co/t/x-pack-weekly-indices-rather-then-daily/114910 "2018-01-11T19:41:22Z")

</div>

Hello, all. I have x-pack basic installed on one of my clusters. I'm looking to change the daily indices that are created into weekly. Is this possible? I know there are settings I can insert into the kibana.yml file to …

---

## [Cluster upgrade stuck](https://discuss.elastic.co/t/cluster-upgrade-stuck/115159)

<div class="topic-metadata">

**Author:** [@acchaulk](https://discuss.elastic.co/u/acchaulk)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 7:40pm UTC](https://discuss.elastic.co/t/cluster-upgrade-stuck/115159 "2018-01-11T19:40:43Z")

</div>

Hello, I have an elastic.co cluster that is stuck, saying A change is already being applied to this cluster. Wait until it is done before changing again. Is there any way that I can push it along? Thanks

---

## [Apply script on aggregation bucket](https://discuss.elastic.co/t/apply-script-on-aggregation-bucket/115160)

<div class="topic-metadata">

**Author:** [@shivam](https://discuss.elastic.co/u/shivam)\
**Replies:** 0\
**Last updated:** [January 11, 2018, 7:35pm UTC](https://discuss.elastic.co/t/apply-script-on-aggregation-bucket/115160 "2018-01-11T19:35:43Z")

</div>

Hello, I have a query like below { "size" : 0, "query" : { "bool":{ "filter":\[{ "range": { "TXN\_DATE": { "gte": "20171226","lte": "20171231" …

---

## [Security Technical Implementation Guide (STIG)](https://discuss.elastic.co/t/security-technical-implementation-guide-stig/90472)

<div class="topic-metadata">

**Author:** [@SendMcjak](https://discuss.elastic.co/u/SendMcjak)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 7:32pm UTC](https://discuss.elastic.co/t/security-technical-implementation-guide-stig/90472 "2018-01-11T19:32:28Z")

</div>

Is there a STIG available for Elasticsearch?

---

## [Ingest pipeline seems to freeze during bulk import](https://discuss.elastic.co/t/ingest-pipeline-seems-to-freeze-during-bulk-import/115152)

<div class="topic-metadata">

**Author:** [@dheuvels](https://discuss.elastic.co/u/dheuvels)\
**Replies:** 3\
**Last updated:** [January 11, 2018, 7:06pm UTC](https://discuss.elastic.co/t/ingest-pipeline-seems-to-freeze-during-bulk-import/115152 "2018-01-11T19:06:00Z")

</div>

Hi all, I am using filebeat with ingest pipelines and I suspect that one of them stalls the ingest node from time to time. When the pipeline runs under load, the bulk threadpool fills up and starts rejecting requests. …

---

## [Issue with custom settings with my plugin in 6.x](https://discuss.elastic.co/t/issue-with-custom-settings-with-my-plugin-in-6-x/114883)

<div class="topic-metadata">

**Author:** [@andywilliams](https://discuss.elastic.co/u/andywilliams)\
**Replies:** 2\
**Last updated:** [January 11, 2018, 6:38pm UTC](https://discuss.elastic.co/t/issue-with-custom-settings-with-my-plugin-in-6-x/114883 "2018-01-11T18:38:15Z")

</div>

I'm having an issue with an elastic search plugin I'm trying to write...basically I need my own settings (like passed in as System props or defined in elasticsearch.yml)...originally I started on an earlier version of el…

---

## [Path\_hierarchy aggregation for specific depth](https://discuss.elastic.co/t/path-hierarchy-aggregation-for-specific-depth/115151)

<div class="topic-metadata">

**Author:** [@apa512](https://discuss.elastic.co/u/apa512)\
**Replies:** 0\
**Last updated:** [January 11, 2018, 5:46pm UTC](https://discuss.elastic.co/t/path-hierarchy-aggregation-for-specific-depth/115151 "2018-01-11T17:46:18Z")

</div>

I'm using the path\_hierarchy tokenizer to index file system paths and it works perfectly for querying. However, I'm also interested in finding all possible paths for a certain depth. My approach so far has been to use …

---

## [Access Query Metadata within an Aggregation](https://discuss.elastic.co/t/access-query-metadata-within-an-aggregation/115149)

<div class="topic-metadata">

**Author:** [@emmerich](https://discuss.elastic.co/u/emmerich)\
**Replies:** 0\
**Last updated:** [January 11, 2018, 5:23pm UTC](https://discuss.elastic.co/t/access-query-metadata-within-an-aggregation/115149 "2018-01-11T17:23:24Z")

</div>

I'm running a search and aggregating the results using a top\_hit aggregation with a custom sort based on a script. In this script, I want to aggregate differently depending on which queries in the search were matched. F…

---

## [Access XPack user's username from a plugin](https://discuss.elastic.co/t/access-xpack-users-username-from-a-plugin/114969)

<div class="topic-metadata">

**Author:** [@mostdispleased](https://discuss.elastic.co/u/mostdispleased)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 5:22pm UTC](https://discuss.elastic.co/t/access-xpack-users-username-from-a-plugin/114969 "2018-01-11T17:22:00Z")

</div>

We have XPack installed on ES / Kibana 5.5.1. Is it possible from within a plugin to access the current Kibana user's username, and optionally if the user is viewing a dashboard to retrieve the dashboard name (not the ha…

---

## [Using \`ctx\` to access source field](https://discuss.elastic.co/t/using-ctx-to-access-source-field/115129)

<div class="topic-metadata">

**Author:** [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Replies:** 5\
**Last updated:** [January 11, 2018, 5:05pm UTC](https://discuss.elastic.co/t/using-ctx-to-access-source-field/115129 "2018-01-11T17:05:13Z")

</div>

What does ctx stand for? I can't find it in the docs.

---

## [Windows Service Memory Limitations version 6.1.1](https://discuss.elastic.co/t/windows-service-memory-limitations-version-6-1-1/113351)

<div class="topic-metadata">

**Author:** [@tiago.ramalho](https://discuss.elastic.co/u/tiago.ramalho)\
**Replies:** 6\
**Last updated:** [January 11, 2018, 4:11pm UTC](https://discuss.elastic.co/t/windows-service-memory-limitations-version-6-1-1/113351 "2018-01-11T16:11:31Z")

</div>

Hi there, The question is probably pretty obvious but I just can’t find it… After installing the windows service (both the msi and zip, via sc.exe) I can’t just the jvm.options to anything above -Xmx1G… If I do (-Xmx4G,…

---

## [What's going on with my query?](https://discuss.elastic.co/t/whats-going-on-with-my-query/114782)

<div class="topic-metadata">

**Author:** [@Hein\_Htet](https://discuss.elastic.co/u/Hein_Htet)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 3:53pm UTC](https://discuss.elastic.co/t/whats-going-on-with-my-query/114782 "2018-01-11T15:53:55Z")

</div>

Failed to filters and retrieve it. Please kindly reply me i am new to elasticsearch {"query":{"multi\_match":{"query":"anchovy","fields":\["title^4","description^3","shop\_name^2","category.name"\]}},"filter":{"and":\[{"rang…

---

## [ElasticSearch has an initializing primary](https://discuss.elastic.co/t/elasticsearch-has-an-initializing-primary/115069)

<div class="topic-metadata">

**Author:** [@0NE](https://discuss.elastic.co/u/0NE)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 3:35pm UTC](https://discuss.elastic.co/t/elasticsearch-has-an-initializing-primary/115069 "2018-01-11T15:35:11Z")

</div>

Looking into marvel and the one if the indices is showing red with a warning sign that says has an initializing primary. Is this somthing I should worry about? When I do: \_cluster/health?pretty or \_cat/shards I do not…

---

## [\_grokparsefailure, \_geoip\_lookup\_failure with \_reindex](https://discuss.elastic.co/t/grokparsefailure-geoip-lookup-failure-with-reindex/115095)

<div class="topic-metadata">

**Author:** [@Soufiane\_Zamouri](https://discuss.elastic.co/u/Soufiane_Zamouri)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 3:17pm UTC](https://discuss.elastic.co/t/grokparsefailure-geoip-lookup-failure-with-reindex/115095 "2018-01-11T15:17:21Z")

</div>

Hello, after migrate my indeces with an \_reindex with this script : for i in cat index\_list.txt do echo $i curl -XPOST \[DESTINATION\]:9200/\_reindex?pretty -d '{ "source": { "remote": { "host": "http://\[SOURCE\]:9200" …

---

## [How to query only numeric values in a String field?](https://discuss.elastic.co/t/how-to-query-only-numeric-values-in-a-string-field/115066)

<div class="topic-metadata">

**Author:** [@cab93](https://discuss.elastic.co/u/cab93)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 3:15pm UTC](https://discuss.elastic.co/t/how-to-query-only-numeric-values-in-a-string-field/115066 "2018-01-11T15:15:54Z")

</div>

Hi there, I'm looking for a way to filter my query results. \[image\] I need to exclude all those results that are not only numbers. Is there a way to this in "post production"? I'm using elastic as a database and cann…

---

## [How does reallocation work?](https://discuss.elastic.co/t/how-does-reallocation-work/115077)

<div class="topic-metadata">

**Author:** [@bruce88](https://discuss.elastic.co/u/bruce88)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-does-reallocation-work/115077 "2018-01-11T15:07:44Z")

</div>

As we know, ES cluster will do reallocation when nodes add/remove. How does reallocation work? During reallocation, can we still query data and inject new data? Will query or new injection block the reallocation?

---

## [Geoip distance query](https://discuss.elastic.co/t/geoip-distance-query/114983)

<div class="topic-metadata">

**Author:** [@bm1391](https://discuss.elastic.co/u/bm1391)\
**Replies:** 6\
**Last updated:** [January 11, 2018, 3:07pm UTC](https://discuss.elastic.co/t/geoip-distance-query/114983 "2018-01-11T15:07:34Z")

</div>

Hello all, Ive been taking a look at the geoip distance query and it seems to be working fine. However, I'm looking for help to only return the results that are not within my distance query. So in this case, any results…

---

## [How to test application with multiple mapping types after their deprecation?](https://discuss.elastic.co/t/how-to-test-application-with-multiple-mapping-types-after-their-deprecation/113740)

<div class="topic-metadata">

**Author:** [@Kornelia\_Watson](https://discuss.elastic.co/u/Kornelia_Watson)\
**Replies:** 8\
**Last updated:** [January 11, 2018, 2:50pm UTC](https://discuss.elastic.co/t/how-to-test-application-with-multiple-mapping-types-after-their-deprecation/113740 "2018-01-11T14:50:06Z")

</div>

Hi, We have some ruby scripts that aggregate and re-index data in ES. Whenever we make changes to these scripts we first run them locally to make sure we didn't break anything and that data is correctly indexed. I somet…

---

## [Modify the documents while reindexing](https://discuss.elastic.co/t/modify-the-documents-while-reindexing/115096)

<div class="topic-metadata">

**Author:** [@Abhishekh](https://discuss.elastic.co/u/Abhishekh)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 2:43pm UTC](https://discuss.elastic.co/t/modify-the-documents-while-reindexing/115096 "2018-01-11T14:43:08Z")

</div>

Hi, Can we modify the documents while reindexing ? Example: Suppose a document at source index contains a field "user" = "gmail" and while reindexing from source to destination shall we change the "user" = "facebook" at…

---

## [Elasticsearch.esplugin: Replace/Change/Disable integTestCluster#wait Task](https://discuss.elastic.co/t/elasticsearch-esplugin-replace-change-disable-integtestcluster-wait-task/115006)

<div class="topic-metadata">

**Author:** [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Replies:** 5\
**Last updated:** [January 11, 2018, 2:31pm UTC](https://discuss.elastic.co/t/elasticsearch-esplugin-replace-change-disable-integtestcluster-wait-task/115006 "2018-01-11T14:31:48Z")

</div>

I am trying to use elasticsearch.esplugin for integration tests on my plugin (Have already Set those up for Maven: david.pilato.fr/blog/2016/10/18/elasticsearch-real-integration-tests-updated-for-ga/) but as soon as I us…

---

## [Why is rollover not automatic and field based?](https://discuss.elastic.co/t/why-is-rollover-not-automatic-and-field-based/114807)

<div class="topic-metadata">

**Author:** [@Rahul\_Midha](https://discuss.elastic.co/u/Rahul_Midha)\
**Replies:** 9\
**Last updated:** [January 11, 2018, 2:03pm UTC](https://discuss.elastic.co/t/why-is-rollover-not-automatic-and-field-based/114807 "2018-01-11T14:03:02Z")

</div>

Hi, I was just going through a closed issue which is of my interest. Reference link: https://github.com/elastic/elasticsearch/issues/22392 We are actually planning to write some data to Elasticsearch in a time based m…

---

## [Elasticsearch-6.1.1 failed to load plugin class \[org.elasticsearch.xpack.XPackPlugin\]](https://discuss.elastic.co/t/elasticsearch-6-1-1-failed-to-load-plugin-class-org-elasticsearch-xpack-xpackplugin/114667)

<div class="topic-metadata">

**Author:** [@shaonbean](https://discuss.elastic.co/u/shaonbean)\
**Replies:** 3\
**Last updated:** [January 11, 2018, 1:50pm UTC](https://discuss.elastic.co/t/elasticsearch-6-1-1-failed-to-load-plugin-class-org-elasticsearch-xpack-xpackplugin/114667 "2018-01-11T13:50:12Z")

</div>

1、env：centos6.9 + elastic stask 6.1.x yum install elasticsearch/filebeat/kibana is ok, but I follow https://www.elastic.co/guide/en/elasticsearch/reference/6.1/installing-xpack-es.html install x-pack restart elastics…

---

## [Any place to get more details about upgrading from Es 2.x to ES 6.x?](https://discuss.elastic.co/t/any-place-to-get-more-details-about-upgrading-from-es-2-x-to-es-6-x/114956)

<div class="topic-metadata">

**Author:** [@Kevin\_Bourne](https://discuss.elastic.co/u/Kevin_Bourne)\
**Replies:** 3\
**Last updated:** [January 11, 2018, 1:40pm UTC](https://discuss.elastic.co/t/any-place-to-get-more-details-about-upgrading-from-es-2-x-to-es-6-x/114956 "2018-01-11T13:40:38Z")

</div>

I have read through much of the documentation about migrating from ES 2.x to ES 6.x. Specifically first migrating to ES 5.6.x and then migrating to ES 6.x. Unfortunately I have been unable to find finer grained details s…

---

## [Adding an integer value with the existing \_id while doing reindex](https://discuss.elastic.co/t/adding-an-integer-value-with-the-existing-id-while-doing-reindex/115086)

<div class="topic-metadata">

**Author:** [@Abhishekh](https://discuss.elastic.co/u/Abhishekh)\
**Replies:** 0\
**Last updated:** [January 11, 2018, 12:31pm UTC](https://discuss.elastic.co/t/adding-an-integer-value-with-the-existing-id-while-doing-reindex/115086 "2018-01-11T12:31:20Z")

</div>

HI, I would like to reindex with following scenario: /source/type/1 to /destination/type/ ((1\<\<56) + \_id). So if the \_id in source index is \_id=10 then at destination index same document should be at 72057594037927940…

---

## [Add geo data to the index](https://discuss.elastic.co/t/add-geo-data-to-the-index/115082)

<div class="topic-metadata">

**Author:** [@MichaelN](https://discuss.elastic.co/u/MichaelN)\
**Replies:** 0\
**Last updated:** [January 11, 2018, 12:04pm UTC](https://discuss.elastic.co/t/add-geo-data-to-the-index/115082 "2018-01-11T12:04:24Z")

</div>

Hello All I want to add some random geo data to the sample index (Shakespeare) in order to use it in some visualization. How can I do it? Thanks Michael

---

## [Elasticsearch 6.x too\_many\_clauses error](https://discuss.elastic.co/t/elasticsearch-6-x-too-many-clauses-error/115017)

<div class="topic-metadata">

**Author:** [@jatinseth2007](https://discuss.elastic.co/u/jatinseth2007)\
**Replies:** 1\
**Last updated:** [January 11, 2018, 12:06pm UTC](https://discuss.elastic.co/t/elasticsearch-6-x-too-many-clauses-error/115017 "2018-01-11T12:06:37Z")

</div>

I am running a elastic search query which is attached via image with this topic, It's giving me too\_many\_clauses error, My question is would I have to increase the limit for maxClauseCount or am I doing anything wrong in…

---

## [Query with Date filter](https://discuss.elastic.co/t/query-with-date-filter/114718)

<div class="topic-metadata">

**Author:** [@Robert\_Naccache](https://discuss.elastic.co/u/Robert_Naccache)\
**Replies:** 2\
**Last updated:** [January 11, 2018, 9:42am UTC](https://discuss.elastic.co/t/query-with-date-filter/114718 "2018-01-11T09:42:47Z")

</div>

Hello, I'm trying to return documents for the month of December that have a time stamp between 8AM to 4PM of every day. I currently have a timestamp field which is a date/time field (in the form 2017-12-17T22:00:00.355…

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

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