# Elasticsearch

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

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

**Page:** 1658

---

## [Aggregation statistic on the fields](https://discuss.elastic.co/t/aggregation-statistic-on-the-fields/135441)

<div class="topic-metadata">

**Author:** [@panfng](https://discuss.elastic.co/u/panfng)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 11:56pm UTC](https://discuss.elastic.co/t/aggregation-statistic-on-the-fields/135441 "2018-06-11T23:56:18Z")

</div>

Say I have a list of documents returned for a certain search query. The documents can have different dynamic fields(defined using dynamic template) is there a way to give me top 10 dynamic fields(based on product count…

---

## [Query on date issue](https://discuss.elastic.co/t/query-on-date-issue/135433)

<div class="topic-metadata">

**Author:** [@Derrick](https://discuss.elastic.co/u/Derrick)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 8:47pm UTC](https://discuss.elastic.co/t/query-on-date-issue/135433 "2018-06-11T20:47:14Z")

</div>

Hi, I am experiencing an issue when query on date field. when indexing, I use North American/New York timezone, and query it with same timezone, but I still missing some records. anyone knows how to query on date file? …

---

## [How do I use a not-analyzed string field as an aggregation bucket?](https://discuss.elastic.co/t/how-do-i-use-a-not-analyzed-string-field-as-an-aggregation-bucket/134858)

<div class="topic-metadata">

**Author:** [@jong](https://discuss.elastic.co/u/jong)\
**Replies:** 1\
**Last updated:** [June 11, 2018, 7:54pm UTC](https://discuss.elastic.co/t/how-do-i-use-a-not-analyzed-string-field-as-an-aggregation-bucket/134858 "2018-06-11T19:54:28Z")

</div>

My mappings: config = { "mappings": { my\_doc\_type: { "dynamic": False, "properties": { "timestamp\_start": { "type": "date" }, …

---

## [Geo\_shape query: LineString: Intersects](https://discuss.elastic.co/t/geo-shape-query-linestring-intersects/135415)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 6:15pm UTC](https://discuss.elastic.co/t/geo-shape-query-linestring-intersects/135415 "2018-06-11T18:15:14Z")

</div>

I need to check if my linestring or part of my linestring falls within or intersects my circle with a given radius. Mapping: Its a lineString type with two coordinates (start and end). Say a long road, "geometry": { …

---

## [Question based on Suggestors in elasticsearch](https://discuss.elastic.co/t/question-based-on-suggestors-in-elasticsearch/135405)

<div class="topic-metadata">

**Author:** [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 4:18pm UTC](https://discuss.elastic.co/t/question-based-on-suggestors-in-elasticsearch/135405 "2018-06-11T16:18:44Z")

</div>

Hi all my requirement is when user types anything we need to get suggest based on the user entered.Can we have global suggestor like if user enter number then number-suggestor or user enters text then text-suggestor.

---

## [TermsQuery sine ES6.0 - with scoring](https://discuss.elastic.co/t/termsquery-sine-es6-0-with-scoring/135366)

<div class="topic-metadata">

**Author:** [@Jse](https://discuss.elastic.co/u/Jse)\
**Replies:** 2\
**Last updated:** [June 11, 2018, 3:53pm UTC](https://discuss.elastic.co/t/termsquery-sine-es6-0-with-scoring/135366 "2018-06-11T15:53:19Z")

</div>

Hi, I would like to ask for help about a behavior change between 5.6 and 6.0 ES version With ES 5.6, when I use a TermsQuery (without constant\_score) a score is computed Since 6.0 the score is not computed (even with…

---

## [Calculated field not working](https://discuss.elastic.co/t/calculated-field-not-working/134863)

<div class="topic-metadata">

**Author:** [@Zareh\_Vazquez](https://discuss.elastic.co/u/Zareh_Vazquez)\
**Replies:** 1\
**Last updated:** [June 11, 2018, 3:46pm UTC](https://discuss.elastic.co/t/calculated-field-not-working/134863 "2018-06-11T15:46:34Z")

</div>

Hi all, I am trying to create a simple calculated field by a simple subtraction of two fields within the same index. My query looks something like this: { "\_source": { "includes": \[ "realTimestamp", "clientDelay", "…

---

## [Bulk Payload Sizes](https://discuss.elastic.co/t/bulk-payload-sizes/134762)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 7\
**Last updated:** [June 11, 2018, 3:16pm UTC](https://discuss.elastic.co/t/bulk-payload-sizes/134762 "2018-06-11T15:16:47Z")

</div>

Hi, Is there a way that I can track the size of the bulk ingestion payloads hitting elasticsearch? Regards, D

---

## [How to better search across dozens or hundred fields?](https://discuss.elastic.co/t/how-to-better-search-across-dozens-or-hundred-fields/135391)

<div class="topic-metadata">

**Author:** [@rosenfeld](https://discuss.elastic.co/u/rosenfeld)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 2:42pm UTC](https://discuss.elastic.co/t/how-to-better-search-across-dozens-or-hundred-fields/135391 "2018-06-11T14:42:35Z")

</div>

Hi, this is my first time here (it's also my first time using this tool, as I'm usually communicating through a mailing list). I'm a beginner with regards to full-text search engines in general. I've used Solr for some y…

---

## [Documents of the same type stored in different indexes](https://discuss.elastic.co/t/documents-of-the-same-type-stored-in-different-indexes/135386)

<div class="topic-metadata">

**Author:** [@marpa](https://discuss.elastic.co/u/marpa)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 2:32pm UTC](https://discuss.elastic.co/t/documents-of-the-same-type-stored-in-different-indexes/135386 "2018-06-11T14:32:20Z")

</div>

Hi all, imagine we want to index products and each product belongs to a country. Also imagine our application only retrieves the products for the county the user belongs to. In this case would it be better to have one…

---

## [Unit elasticsearch.service entered failed state](https://discuss.elastic.co/t/unit-elasticsearch-service-entered-failed-state/135380)

<div class="topic-metadata">

**Author:** [@nageswar](https://discuss.elastic.co/u/nageswar)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 2:16pm UTC](https://discuss.elastic.co/t/unit-elasticsearch-service-entered-failed-state/135380 "2018-06-11T14:16:00Z")

</div>

we have installed Elasticsearch, kibana and Logstash in redhat server. All are 6.2 version. It is almost 3 months over. Now we are facing some issue that elasticsearch is going to failed state as below. ● elasticsear…

---

## [Curator: Too many Forcemerge Tasks](https://discuss.elastic.co/t/curator-too-many-forcemerge-tasks/135328)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 5\
**Last updated:** [June 11, 2018, 1:42pm UTC](https://discuss.elastic.co/t/curator-too-many-forcemerge-tasks/135328 "2018-06-11T13:42:05Z")

</div>

Hi, I have enabled forcemerge management via curator and it is causing us an issue. That is, after enabling it late on Thursday we now have 1400+ running tasks. This is not a large cluster and so is causing widespread i…

---

## [Elasticsearch 5.6 - Query Return Wrong Data](https://discuss.elastic.co/t/elasticsearch-5-6-query-return-wrong-data/134878)

<div class="topic-metadata">

**Author:** [@alon.eldi](https://discuss.elastic.co/u/alon.eldi)\
**Replies:** 1\
**Last updated:** [June 11, 2018, 1:09pm UTC](https://discuss.elastic.co/t/elasticsearch-5-6-query-return-wrong-data/134878 "2018-06-11T13:09:56Z")

</div>

Hi , We have EasticSearch Index which store nested json data . Its ES 5.6 we exceeded the default limitaton of number of fields and nested fields so our mapping contain : "mapping": { "nested\_fields": { "limit": "20…

---

## [Compare packet with previous packet](https://discuss.elastic.co/t/compare-packet-with-previous-packet/135362)

<div class="topic-metadata">

**Author:** [@anush\_jayan](https://discuss.elastic.co/u/anush_jayan)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 12:38pm UTC](https://discuss.elastic.co/t/compare-packet-with-previous-packet/135362 "2018-06-11T12:38:56Z")

</div>

how can i compare a packet with previous packet and get the difference between the two so that i know the packet is delayed by how much time and do the analysis

---

## [Hot warm architecture](https://discuss.elastic.co/t/hot-warm-architecture/135217)

<div class="topic-metadata">

**Author:** [@br14nb0](https://discuss.elastic.co/u/br14nb0)\
**Replies:** 3\
**Last updated:** [June 11, 2018, 12:18pm UTC](https://discuss.elastic.co/t/hot-warm-architecture/135217 "2018-06-11T12:18:37Z")

</div>

I checked out the Hot warm architecture, so I have some questions. Can Hot or Warm node is an eligible master-data node ? I intend to implement it with 4 nodes, including 2 Hot nodes as eligible master-data note and 2 …

---

## [How to do bulk insert of data from a file in fiddler?](https://discuss.elastic.co/t/how-to-do-bulk-insert-of-data-from-a-file-in-fiddler/135352)

<div class="topic-metadata">

**Author:** [@Sheela](https://discuss.elastic.co/u/Sheela)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 11:41am UTC](https://discuss.elastic.co/t/how-to-do-bulk-insert-of-data-from-a-file-in-fiddler/135352 "2018-06-11T11:41:49Z")

</div>

Am using Fiddler to work with Elasticsearch and need to do bulk insert of data from a file using fiddler. Please suggest

---

## [Elasticsearch-php + AWS Elasticsearch](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419)

<div class="topic-metadata">

**Author:** [@vojtamares](https://discuss.elastic.co/u/vojtamares)\
**Replies:** 9\
**Last updated:** [June 11, 2018, 10:50am UTC](https://discuss.elastic.co/t/elasticsearch-php-aws-elasticsearch/133419 "2018-06-11T10:50:18Z")

</div>

Hi! I am considering moving our elasticsearch to AWS (it is much easier to maintain - since I don't have to maintain it at all). I have a PHP application and for connection to elastic I am using elastic/elasticsearch-p…

---

## [Can we use \_score value in script\_fields in elasticsearch 6.2?](https://discuss.elastic.co/t/can-we-use-score-value-in-script-fields-in-elasticsearch-6-2/135323)

<div class="topic-metadata">

**Author:** [@Suyog\_Kale](https://discuss.elastic.co/u/Suyog_Kale)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 9:44am UTC](https://discuss.elastic.co/t/can-we-use-score-value-in-script-fields-in-elasticsearch-6-2/135323 "2018-06-11T09:44:33Z")

</div>

Using: Elasticsearch 6.2 Default script: painless Can we use \_score value in script\_fields Below query always returns 0 value for custom\_score { "query": { "match\_all": {} }, "script\_fields": { "custom\_score": { …

---

## [Compile or rpm](https://discuss.elastic.co/t/compile-or-rpm/135313)

<div class="topic-metadata">

**Author:** [@kottapar](https://discuss.elastic.co/u/kottapar)\
**Replies:** 1\
**Last updated:** [June 11, 2018, 9:30am UTC](https://discuss.elastic.co/t/compile-or-rpm/135313 "2018-06-11T09:30:04Z")

</div>

Is there a perceptible improvement in the performance of the ELK cluster if it is installed by compiling instead of installing via rpm? I thought it shouldn't make any difference whether I compile it from a archive or f…

---

## [Above average](https://discuss.elastic.co/t/above-average/135010)

<div class="topic-metadata">

**Author:** [@himberjack](https://discuss.elastic.co/u/himberjack)\
**Replies:** 3\
**Last updated:** [June 11, 2018, 8:49am UTC](https://discuss.elastic.co/t/above-average/135010 "2018-06-11T08:49:48Z")

</div>

Hi, We have simple keywords in our docs with dates. We would like to get all terms that were in a range of dates (14 days) that are above their monthly average of occurrences. Is that possible? How

---

## [How to access max\_score from function score logic?](https://discuss.elastic.co/t/how-to-access-max-score-from-function-score-logic/135310)

<div class="topic-metadata">

**Author:** [@Dhiwakar\_Kusuma](https://discuss.elastic.co/u/Dhiwakar_Kusuma)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 8:30am UTC](https://discuss.elastic.co/t/how-to-access-max-score-from-function-score-logic/135310 "2018-06-11T08:30:36Z")

</div>

Is there a way to access max\_score ... I'm trying to do something like below. GET my\_index/\_search { "query": { "function\_score": { ..... } }, "script\_score": { "script": { "lang": "expression", "source": "\_sc…

---

## [Defining analyzers globally](https://discuss.elastic.co/t/defining-analyzers-globally/135306)

<div class="topic-metadata">

**Author:** [@ftds](https://discuss.elastic.co/u/ftds)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 8:17am UTC](https://discuss.elastic.co/t/defining-analyzers-globally/135306 "2018-06-11T08:17:59Z")

</div>

We have created our own custom analyzer definition based on our application-wide needs. This new analyzer is needed in different indexes. Each index has its own template (mapping, settings, etc.). To provide the analyse…

---

## [Nested documents in ingest pipeline processor](https://discuss.elastic.co/t/nested-documents-in-ingest-pipeline-processor/135305)

<div class="topic-metadata">

**Author:** [@gourmax](https://discuss.elastic.co/u/gourmax)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 8:09am UTC](https://discuss.elastic.co/t/nested-documents-in-ingest-pipeline-processor/135305 "2018-06-11T08:09:37Z")

</div>

I'm trying to use a pipeline gsub processor for a nested document before indexing my all document. Here is my simulation, but it doesn't work. Is there any way to process a nested document ? I don't understand why the …

---

## [Elasticsearch 6.2.4 nodes can’t discover each other in AWS](https://discuss.elastic.co/t/elasticsearch-6-2-4-nodes-can-t-discover-each-other-in-aws/135156)

<div class="topic-metadata">

**Author:** [@rebaliaGamer](https://discuss.elastic.co/u/rebaliaGamer)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 1:47pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-4-nodes-can-t-discover-each-other-in-aws/135156 "2018-06-08T13:47:16Z")

</div>

Hello. I am having a hard time with getting my ES nodes to discover each other. Problem I am getting the same error (with different ip) on each node: \[...\]\[INFO \]\[o.e.d.z.ZenDiscovery \] \[node-1\] failed to sen…

---

## [Unmapped sort. Why is type needed?](https://discuss.elastic.co/t/unmapped-sort-why-is-type-needed/135298)

<div class="topic-metadata">

**Author:** [@amarques](https://discuss.elastic.co/u/amarques)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 6:39am UTC](https://discuss.elastic.co/t/unmapped-sort-why-is-type-needed/135298 "2018-06-11T06:39:18Z")

</div>

Hi, I have one problem regarding dynamic fields and sorts and after reading about the "unmapped\_type" parameter I'm not so sure I've understood how it works, as I don't see why it is necessary to specify the field type,…

---

## [Issue while running ElasticSearch 6.2.4](https://discuss.elastic.co/t/issue-while-running-elasticsearch-6-2-4/134760)

<div class="topic-metadata">

**Author:** [@bandarujyothi](https://discuss.elastic.co/u/bandarujyothi)\
**Replies:** 2\
**Last updated:** [June 11, 2018, 6:33am UTC](https://discuss.elastic.co/t/issue-while-running-elasticsearch-6-2-4/134760 "2018-06-11T06:33:10Z")

</div>

I have installed 6.2.4. When I am trying to run Elasticsearch service through command prompt I am getting below error Message. Although we have verified our java version it is pointed to the Server VM. \[2018-06-05T17:1…

---

## [Cache Impacts Performance](https://discuss.elastic.co/t/cache-impacts-performance/133610)

<div class="topic-metadata">

**Author:** [@panda2004](https://discuss.elastic.co/u/panda2004)\
**Replies:** 2\
**Last updated:** [June 11, 2018, 6:31am UTC](https://discuss.elastic.co/t/cache-impacts-performance/133610 "2018-06-11T06:31:22Z")

</div>

Hello, We launched our product 10 months ago. Now it's time for us to expand, serve more customers and as a result move to a bigger cluster. Therefore, nowadays we are making some kind of sizing procedure. Our sizing p…

---

## [Access Source While Making Search Script](https://discuss.elastic.co/t/access-source-while-making-search-script/135294)

<div class="topic-metadata">

**Author:** [@panda2004](https://discuss.elastic.co/u/panda2004)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 6:25am UTC](https://discuss.elastic.co/t/access-source-while-making-search-script/135294 "2018-06-11T06:25:10Z")

</div>

Hey, Is there a way to access ctx.\_source while making a query/aggregation? I can see here that it isn't supported in painless (it's only supported while updating by painless). However, according to this, groovy isn't m…

---

## [Single machine, millions of data, search is very slow](https://discuss.elastic.co/t/single-machine-millions-of-data-search-is-very-slow/135212)

<div class="topic-metadata">

**Author:** [@hubiao](https://discuss.elastic.co/u/hubiao)\
**Replies:** 13\
**Last updated:** [June 11, 2018, 6:16am UTC](https://discuss.elastic.co/t/single-machine-millions-of-data-search-is-very-slow/135212 "2018-06-11T06:16:42Z")

</div>

Environmental Science： Window R2 64 JDK 1.8 ElasticSearch5.5.0 300 million data, 20G index. elasticsearch.yml The configuration is as follows Cluster.name: bropen Node.name: node-1 Transport.tcp.port: 9300 Http.port: …

---

## [Best strategy to handle dot in field names](https://discuss.elastic.co/t/best-strategy-to-handle-dot-in-field-names/135293)

<div class="topic-metadata">

**Author:** [@gauravbhatt13](https://discuss.elastic.co/u/gauravbhatt13)\
**Replies:** 0\
**Last updated:** [June 11, 2018, 6:15am UTC](https://discuss.elastic.co/t/best-strategy-to-handle-dot-in-field-names/135293 "2018-06-11T06:15:18Z")

</div>

We are migrating from ES 2.4 to ES 6.x. In our initial tests we found that we have suppressed 'dot in field name' error in 2.4 by allowing them. Now we have indices with dot in field names and also the scenario where we …

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

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