# Elasticsearch

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

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

**Page:** 1427

---

## [Can't search for field from list of objects](https://discuss.elastic.co/t/cant-search-for-field-from-list-of-objects/163923)

<div class="topic-metadata">

**Author:** [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Replies:** 3\
**Last updated:** [January 14, 2019, 4:29pm UTC](https://discuss.elastic.co/t/cant-search-for-field-from-list-of-objects/163923 "2019-01-14T16:29:10Z")

</div>

I have such data in Elastic: { "\_index": "portal-smm-provider", "\_type": "portal-smm-provider", "\_id": "5c38b3e552faff0008e50557", "\_version": 1, "\_score": 2, "\_source": { "id": "5c38b3e552faff0008e50557…

---

## [Disable "cluster.routing.allocation.same\_shard.host: true" for a particular index](https://discuss.elastic.co/t/disable-cluster-routing-allocation-same-shard-host-true-for-a-particular-index/164172)

<div class="topic-metadata">

**Author:** [@Sylmarch](https://discuss.elastic.co/u/Sylmarch)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 4:22pm UTC](https://discuss.elastic.co/t/disable-cluster-routing-allocation-same-shard-host-true-for-a-particular-index/164172 "2019-01-14T16:22:48Z")

</div>

I have a cluster of 3 big physical machines (i.e. with a lot of RAM) so I'm hosting multiple nodes on each physical host. So, I define a node attribute named shard\_allocation on each node whose value is the hostname of …

---

## [MatchPhrasePrefixQuery with hyphen](https://discuss.elastic.co/t/matchphraseprefixquery-with-hyphen/164170)

<div class="topic-metadata">

**Author:** [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 4:17pm UTC](https://discuss.elastic.co/t/matchphraseprefixquery-with-hyphen/164170 "2019-01-14T16:17:11Z")

</div>

I want to create a query that will find by part of word any document in elastic (no matter in what field). My template: PUT \_template/portal-smm-provider { "index\_patterns": "portal-smm-provider", "settings": { "n…

---

## [How to provide more score when the "terms" query has multiple match?](https://discuss.elastic.co/t/how-to-provide-more-score-when-the-terms-query-has-multiple-match/164168)

<div class="topic-metadata">

**Author:** [@uranran15](https://discuss.elastic.co/u/uranran15)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 3:46pm UTC](https://discuss.elastic.co/t/how-to-provide-more-score-when-the-terms-query-has-multiple-match/164168 "2019-01-14T15:46:55Z")

</div>

Hello, I started to elasticsearch few weeks ago and I encountered some difficulty finding the appropriate query for the results I am looking for. Currently, by running the query written below, all documents (except for \_…

---

## [Bug in aggregation result when using shards](https://discuss.elastic.co/t/bug-in-aggregation-result-when-using-shards/164161)

<div class="topic-metadata">

**Author:** [@physicalattraction](https://discuss.elastic.co/u/physicalattraction)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 3:42pm UTC](https://discuss.elastic.co/t/bug-in-aggregation-result-when-using-shards/164161 "2019-01-14T15:42:29Z")

</div>

We have found a reproducible issue that an aggregation gives not the correct results when using sharding. Reproduction (The Python script below can be used for steps 1 and 2): Create an index with 5 shards with the gi…

---

## [Filter context and Build Scorers](https://discuss.elastic.co/t/filter-context-and-build-scorers/160725)

<div class="topic-metadata">

**Author:** [@mzerez](https://discuss.elastic.co/u/mzerez)\
**Replies:** 6\
**Last updated:** [January 14, 2019, 3:09pm UTC](https://discuss.elastic.co/t/filter-context-and-build-scorers/160725 "2019-01-14T15:09:31Z")

</div>

We are running some rather large queries (thousands of terms) and they take dozens of seconds. Using the Profile API we can see scorers are built - even though we are running the large queries in a filter context. Can s…

---

## [Elasticsearch is not indexing from S3](https://discuss.elastic.co/t/elasticsearch-is-not-indexing-from-s3/164152)

<div class="topic-metadata">

**Author:** [@saravanan21](https://discuss.elastic.co/u/saravanan21)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 2:18pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-indexing-from-s3/164152 "2019-01-14T14:18:16Z")

</div>

Hi there, I am running ELK and here is what my logstash configuration.. input { s3 { access\_key\_id =\> "" bucket =\> "bucketname" region =\> "eu-central-1" secret\_access\_key =\> "\*" prefix =\> "feed" type =\> "s3" } …

---

## [Elasticsearch - Is there any certain number for mapping explosion](https://discuss.elastic.co/t/elasticsearch-is-there-any-certain-number-for-mapping-explosion/164148)

<div class="topic-metadata">

**Author:** [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 2:16pm UTC](https://discuss.elastic.co/t/elasticsearch-is-there-any-certain-number-for-mapping-explosion/164148 "2019-01-14T14:16:57Z")

</div>

Hi, I have a doubt over number of fields in Elastic. Since elastic keeps a default limit of 1000, can I ensure that less than 1000 fields will definitely not lead to a mapping explosion? Also, is there a certain numbe…

---

## [Elasticsearch update Query using script with params](https://discuss.elastic.co/t/elasticsearch-update-query-using-script-with-params/164051)

<div class="topic-metadata">

**Author:** [@Mohamed](https://discuss.elastic.co/u/Mohamed)\
**Replies:** 0\
**Last updated:** [January 13, 2019, 7:08pm UTC](https://discuss.elastic.co/t/elasticsearch-update-query-using-script-with-params/164051 "2019-01-13T19:08:55Z")

</div>

Hello, I want to make partial updates by adding an element in my users list: "users" : \[ { "password" : "pwd", "level" : "admin", "user\_name" : "XX", …

---

## [Elastic Mapping explosion](https://discuss.elastic.co/t/elastic-mapping-explosion/162647)

<div class="topic-metadata">

**Author:** [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Replies:** 11\
**Last updated:** [January 14, 2019, 1:43pm UTC](https://discuss.elastic.co/t/elastic-mapping-explosion/162647 "2019-01-14T13:43:27Z")

</div>

Hi, I have few questions related to number of fields present in mapping and addition of new fields dynamically. What can be the causes of mapping explosions? Is it the high number of fields(in my case more than 1000 f…

---

## [Reason behind Mapping Explosion in Elasticsearch](https://discuss.elastic.co/t/reason-behind-mapping-explosion-in-elasticsearch/164150)

<div class="topic-metadata">

**Author:** [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 2:03pm UTC](https://discuss.elastic.co/t/reason-behind-mapping-explosion-in-elasticsearch/164150 "2019-01-14T14:03:31Z")

</div>

What actually leads to mapping explosion? With 32 GB RAM and over 2000 fields why Elastic needs that much memory that it can lead to mapping explosion. What relationship with memory this number of fields has which leads …

---

## [Ngram score and length](https://discuss.elastic.co/t/ngram-score-and-length/163697)

<div class="topic-metadata">

**Author:** [@Destroy666](https://discuss.elastic.co/u/Destroy666)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 1:54pm UTC](https://discuss.elastic.co/t/ngram-score-and-length/163697 "2019-01-14T13:54:58Z")

</div>

Hi, I noticed that when using the following: analysis: filter: ngram: type: nGram min\_gram: 2 max\_gram: 32 …

---

## [PainlessScript runtime error](https://discuss.elastic.co/t/painlessscript-runtime-error/164115)

<div class="topic-metadata">

**Author:** [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 12:39pm UTC](https://discuss.elastic.co/t/painlessscript-runtime-error/164115 "2019-01-14T12:39:59Z")

</div>

I am using Elasticsearch 6.5.1. After I started trial license, and ran bin/elasticsearch, it successfully started. But one minute later, it popped up error " ExecutableScriptTransform\] \[\*\*\*\*\*\*\] failed to execute \[scr…

---

## [Node lock error in elasticsearch](https://discuss.elastic.co/t/node-lock-error-in-elasticsearch/164133)

<div class="topic-metadata">

**Author:** [@natey](https://discuss.elastic.co/u/natey)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 11:53am UTC](https://discuss.elastic.co/t/node-lock-error-in-elasticsearch/164133 "2019-01-14T11:53:32Z")

</div>

I installed ES 5.1.1 on cluster of 3 nodes , while kept almost all configurations as default. when trying to upgrade ES to 5.5.0 I get this WARN: \[WARN \]\[o.e.b.ElasticsearchUncaughtExceptionHandler\] uncaught exception…

---

## [Elastic search data pull endpoint data availibility issue](https://discuss.elastic.co/t/elastic-search-data-pull-endpoint-data-availibility-issue/164108)

<div class="topic-metadata">

**Author:** [@Irti](https://discuss.elastic.co/u/Irti)\
**Replies:** 2\
**Last updated:** [January 14, 2019, 12:16pm UTC](https://discuss.elastic.co/t/elastic-search-data-pull-endpoint-data-availibility-issue/164108 "2019-01-14T12:16:48Z")

</div>

Hello everyone, I have deployed elastic search on a ubuntu machine, I am making curl calls to push and pull the data back using these calls, LOGS Request curl -X POST "localhost:9200/twitter1/\_doc/1" -H 'Content-Type…

---

## [Using Elasticsearch scroll api for every request using rest api](https://discuss.elastic.co/t/using-elasticsearch-scroll-api-for-every-request-using-rest-api/163856)

<div class="topic-metadata">

**Author:** [@prasad.ram1431](https://discuss.elastic.co/u/prasad.ram1431)\
**Replies:** 6\
**Last updated:** [January 14, 2019, 12:16pm UTC](https://discuss.elastic.co/t/using-elasticsearch-scroll-api-for-every-request-using-rest-api/163856 "2019-01-14T12:16:04Z")

</div>

Hi All, I have a scenario for using Elasticsearch Scroll API. Please find the below details, I have implemented ES scroll api in our application. I am able to get the unique records for each request using rest api by …

---

## [Aliase creation timeout, when node leaves cluster - ES 2.4.6](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987)

<div class="topic-metadata">

**Author:** [@jigish\_thakar](https://discuss.elastic.co/u/jigish_thakar)\
**Replies:** 4\
**Last updated:** [January 14, 2019, 11:36am UTC](https://discuss.elastic.co/t/aliase-creation-timeout-when-node-leaves-cluster-es-2-4-6/163987 "2019-01-14T11:36:27Z")

</div>

Hi All, We are running ES 2.4.6 (very old version! I know) cluster with 10 data nodes - i3.2xlarge each. And UI build for this cluster, creates alias for a session with provided search criteria. Now issue is, when we …

---

## [java.lang.NoClassDefFoundError: org/elasticsearch/transport/client/PreBuiltTransportClient](https://discuss.elastic.co/t/java-lang-noclassdeffounderror-org-elasticsearch-transport-client-prebuilttransportclient/164126)

<div class="topic-metadata">

**Author:** [@Shyju\_M](https://discuss.elastic.co/u/Shyju_M)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 10:34am UTC](https://discuss.elastic.co/t/java-lang-noclassdeffounderror-org-elasticsearch-transport-client-prebuilttransportclient/164126 "2019-01-14T10:34:23Z")

</div>

I have created the below sample JAVA spring boot maven application with elasticsearch which is working perfectly. I have tried to integrate the same to an existing project using the jar files but it is throwing the ex…

---

## [Should "NaN" string be in a float field?](https://discuss.elastic.co/t/should-nan-string-be-in-a-float-field/164121)

<div class="topic-metadata">

**Author:** [@DidierB](https://discuss.elastic.co/u/DidierB)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 9:57am UTC](https://discuss.elastic.co/t/should-nan-string-be-in-a-float-field/164121 "2019-01-14T09:57:42Z")

</div>

Hello, I collect information on metrics on my Elasticsearchs. I've seen the following return of API \_health (v5.5.0): Mon Jan 14 10:46:52 CET 2019 { "cluster\_name" : "my cluster", "status" : "red", "timed\_out" : fa…

---

## [What's the default analyze type for my custom mappings](https://discuss.elastic.co/t/whats-the-default-analyze-type-for-my-custom-mappings/164119)

<div class="topic-metadata">

**Author:** [@ea6bdb5e93c55c655ec0](https://discuss.elastic.co/u/ea6bdb5e93c55c655ec0)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 9:47am UTC](https://discuss.elastic.co/t/whats-the-default-analyze-type-for-my-custom-mappings/164119 "2019-01-14T09:47:41Z")

</div>

hi all, here is my custom mappings PUT /viewhistory { "mappings": { "user": { "properties": { "@timestamp": { "type": "date" }, "@version": { "type":…

---

## [No indexes created in Elasticsearch](https://discuss.elastic.co/t/no-indexes-created-in-elasticsearch/161046)

<div class="topic-metadata">

**Author:** [@chaire](https://discuss.elastic.co/u/chaire)\
**Replies:** 13\
**Last updated:** [January 14, 2019, 9:29am UTC](https://discuss.elastic.co/t/no-indexes-created-in-elasticsearch/161046 "2019-01-14T09:29:00Z")

</div>

Hello. I'm using Elastic Stack 6.5 on my Windows 7. My workaround is Filebeat -\> Logstash -\> Elasticsearch -\> Kibana. I run them and they look like working just fine as there's no error occurred. But there's no indexes/i…

---

## [Is it possible to point out to a synonm file outside a docker image](https://discuss.elastic.co/t/is-it-possible-to-point-out-to-a-synonm-file-outside-a-docker-image/161719)

<div class="topic-metadata">

**Author:** [@Bilal](https://discuss.elastic.co/u/Bilal)\
**Replies:** 1\
**Last updated:** [January 2, 2019, 10:24am UTC](https://discuss.elastic.co/t/is-it-possible-to-point-out-to-a-synonm-file-outside-a-docker-image/161719 "2019-01-02T10:24:36Z")

</div>

I think my question is composed of two parts: Is there a way for elasticsearch (using synonyms\_path parameter) to point out to an external synonym files ? If yes, how can we do that using an elasticserch installed …

---

## [Split Index Help Required](https://discuss.elastic.co/t/split-index-help-required/163978)

<div class="topic-metadata">

**Author:** [@nuwancs](https://discuss.elastic.co/u/nuwancs)\
**Replies:** 5\
**Last updated:** [January 14, 2019, 9:13am UTC](https://discuss.elastic.co/t/split-index-help-required/163978 "2019-01-14T09:13:35Z")

</div>

I am trying to reindex my index with following commands. And I get an error. source - transactions-reindexed-2018.12.03-01 PUT t2 { "settings": { "index.number\_of\_shards" : 5, "index.number\_of\_routi…

---

## [Set max\_result\_window through NEST](https://discuss.elastic.co/t/set-max-result-window-through-nest/163590)

<div class="topic-metadata">

**Author:** [@Joao\_Neto](https://discuss.elastic.co/u/Joao_Neto)\
**Replies:** 2\
**Last updated:** [January 14, 2019, 8:48am UTC](https://discuss.elastic.co/t/set-max-result-window-through-nest/163590 "2019-01-14T08:48:05Z")

</div>

Hello Is it possible to set or update the max\_result\_window through the NEST API?

---

## [How to Move the logs from Elasticsearch to Amazon time on weekly basis](https://discuss.elastic.co/t/how-to-move-the-logs-from-elasticsearch-to-amazon-time-on-weekly-basis/164083)

<div class="topic-metadata">

**Author:** [@sadiesh](https://discuss.elastic.co/u/sadiesh)\
**Replies:** 3\
**Last updated:** [January 14, 2019, 8:16am UTC](https://discuss.elastic.co/t/how-to-move-the-logs-from-elasticsearch-to-amazon-time-on-weekly-basis/164083 "2019-01-14T08:16:46Z")

</div>

I have to move my week older logs from Elasticsearch to s3 bucket . Please let me know how to do this ?

---

## [Does the score calculation admit a maximum?](https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926)

<div class="topic-metadata">

**Author:** [@a.gabriel](https://discuss.elastic.co/u/a.gabriel)\
**Replies:** 2\
**Last updated:** [January 14, 2019, 8:08am UTC](https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926 "2019-01-14T08:08:44Z")

</div>

Hello the community, I have an index of resumes and I want to compare it to a job offer as query. As long as I understand the tf idf that is behind the scoring does not have maximum, isn't it? When I process the query,…

---

## [How to get each Elasticsearch SearchRequestBuilder object from MultiSearchRequestBuilder object?](https://discuss.elastic.co/t/how-to-get-each-elasticsearch-searchrequestbuilder-object-from-multisearchrequestbuilder-object/164106)

<div class="topic-metadata">

**Author:** [@Yashasvi\_Raj\_Pant](https://discuss.elastic.co/u/Yashasvi_Raj_Pant)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 8:01am UTC](https://discuss.elastic.co/t/how-to-get-each-elasticsearch-searchrequestbuilder-object-from-multisearchrequestbuilder-object/164106 "2019-01-14T08:01:47Z")

</div>

I want to get each SearchRequestBuilder object from MultiSearchRequestBuilder object in the ElasticSearch java API. Is there any way to do so?

---

## [Increasing Field Capacity Effectively](https://discuss.elastic.co/t/increasing-field-capacity-effectively/163782)

<div class="topic-metadata">

**Author:** [@kuthaygumus](https://discuss.elastic.co/u/kuthaygumus)\
**Replies:** 0\
**Last updated:** [January 10, 2019, 4:14pm UTC](https://discuss.elastic.co/t/increasing-field-capacity-effectively/163782 "2019-01-10T16:14:32Z")

</div>

Hello, I am running into an issue with the maximum size for a single field/term. I set my fields to "not\_analyzed". As you know, it means, "Index this field so it is searchable, but index the value exactly as specifie…

---

## [Can we match both date range aggregation count and date range query count](https://discuss.elastic.co/t/can-we-match-both-date-range-aggregation-count-and-date-range-query-count/164093)

<div class="topic-metadata">

**Author:** [@prasad.ram1431](https://discuss.elastic.co/u/prasad.ram1431)\
**Replies:** 0\
**Last updated:** [January 14, 2019, 7:16am UTC](https://discuss.elastic.co/t/can-we-match-both-date-range-aggregation-count-and-date-range-query-count/164093 "2019-01-14T07:16:02Z")

</div>

Hi All, I need some clarification, whether I am doing correct or wrong. I have below two queries. Query1: "aggs": { "previous\_aggr": { "nested": { "path": "prevFin" }, "aggs": { "prev\_aggr": { "date\_range": { …

---

## [error":"Content-Type header \[application/x-www-form-urlencoded\] is not supported","status":406](https://discuss.elastic.co/t/error-content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/164059)

<div class="topic-metadata">

**Author:** [@shrwan](https://discuss.elastic.co/u/shrwan)\
**Replies:** 2\
**Last updated:** [January 14, 2019, 6:44am UTC](https://discuss.elastic.co/t/error-content-type-header-application-x-www-form-urlencoded-is-not-supported-status-406/164059 "2019-01-14T06:44:38Z")

</div>

Hi Friends, I am new to elastic search and looking for lep! I am trying to create mapping , buy using the same JSON at URL https://www.elastic.co/blog/analyzing-network-packets-with-wireshark-elasticsearch-and-kibana …

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

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