# Elasticsearch

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

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

**Page:** 1070

---

## [How to define the mapping](https://discuss.elastic.co/t/how-to-define-the-mapping/211646)

<div class="topic-metadata">

**Author:** [@kguru08](https://discuss.elastic.co/u/kguru08)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 12:27pm UTC](https://discuss.elastic.co/t/how-to-define-the-mapping/211646 "2019-12-12T12:27:53Z")

</div>

Hi, Please find the below structure of my JSON, { "book": "testing\_mine", "res\_info": { "en": { "author": "guru" }, "jp": { "author": "達人" }, "tamil": { "author": "குரு" } } } I need to create a mapping f…

---

## [Failed to complete action: delete\_indices. \<class 'KeyError'\>: 'indices'](https://discuss.elastic.co/t/failed-to-complete-action-delete-indices-class-keyerror-indices/211151)

<div class="topic-metadata">

**Author:** [@vt.gerard](https://discuss.elastic.co/u/vt.gerard)\
**Replies:** 15\
**Last updated:** [December 12, 2019, 12:18pm UTC](https://discuss.elastic.co/t/failed-to-complete-action-delete-indices-class-keyerror-indices/211151 "2019-12-12T12:18:38Z")

</div>

Hello. First of all thanks to the community who helped me so far with the forum and documentation, to use Elasticsearch & co. I now use Curator as well and I have quite a severe issue I can't resolve. Elasticsearch: 6.…

---

## [Cannot find document with id given in error message](https://discuss.elastic.co/t/cannot-find-document-with-id-given-in-error-message/211630)

<div class="topic-metadata">

**Author:** [@pgeurts](https://discuss.elastic.co/u/pgeurts)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 11:08am UTC](https://discuss.elastic.co/t/cannot-find-document-with-id-given-in-error-message/211630 "2019-12-12T11:08:42Z")

</div>

Hello , I'm getting the following error: function score query returned an invalid score: -0.18613358 for doc: 142179 Searched everywhere for that document, but all my documents have an id starting with SUP. Anyone kn…

---

## [Generating extra-fields to my results based on query](https://discuss.elastic.co/t/generating-extra-fields-to-my-results-based-on-query/211491)

<div class="topic-metadata">

**Author:** [@ovinz](https://discuss.elastic.co/u/ovinz)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 10:56am UTC](https://discuss.elastic.co/t/generating-extra-fields-to-my-results-based-on-query/211491 "2019-12-12T10:56:35Z")

</div>

Hi everyone, I’m discovering ElasticSearch and I really don’t know how to find this kind of feature in the ES documentation. My goal is to add extra-fields to the result of a query ; the extra-fields being themselves a…

---

## [Combining Two Aggregations](https://discuss.elastic.co/t/combining-two-aggregations/211624)

<div class="topic-metadata">

**Author:** [@Calvin-J-Scott](https://discuss.elastic.co/u/Calvin-J-Scott)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 10:53am UTC](https://discuss.elastic.co/t/combining-two-aggregations/211624 "2019-12-12T10:53:21Z")

</div>

Problem I am currently trying to combine two aggregations into a single aggregation response either directly in ElasticSearch if it allows or In Java using the elastic aggregations as a map. Elastic Approach Mapping "…

---

## [Search API with elastic search in .Net core Micro-services](https://discuss.elastic.co/t/search-api-with-elastic-search-in-net-core-micro-services/211414)

<div class="topic-metadata">

**Author:** [@Croos](https://discuss.elastic.co/u/Croos)\
**Replies:** 4\
**Last updated:** [December 12, 2019, 9:49am UTC](https://discuss.elastic.co/t/search-api-with-elastic-search-in-net-core-micro-services/211414 "2019-12-12T09:49:46Z")

</div>

I'm developing a microservice solution for an E-commerce application. I like to use the Elasticsearch for searching the items in different databases like the product from MongoDB, Vendors from SqlDB. I need a clear idea …

---

## [OIDC implicit mode unable to generate Elastic Access Token](https://discuss.elastic.co/t/oidc-implicit-mode-unable-to-generate-elastic-access-token/211506)

<div class="topic-metadata">

**Author:** [@barneyn](https://discuss.elastic.co/u/barneyn)\
**Replies:** 1\
**Last updated:** [December 12, 2019, 9:22am UTC](https://discuss.elastic.co/t/oidc-implicit-mode-unable-to-generate-elastic-access-token/211506 "2019-12-12T09:22:43Z")

</div>

Hello, I am trying to use Keycloak as an OIDC provider in order to query Elastic. The flow will be... Log into the UI using Keycloak to obtain an id token. Pass this token to the API via a bearer header (spring boot …

---

## [Help with terminate\_after returns more results than must](https://discuss.elastic.co/t/help-with-terminate-after-returns-more-results-than-must/211595)

<div class="topic-metadata">

**Author:** [@AndriyImp](https://discuss.elastic.co/u/AndriyImp)\
**Replies:** 4\
**Last updated:** [December 12, 2019, 9:16am UTC](https://discuss.elastic.co/t/help-with-terminate-after-returns-more-results-than-must/211595 "2019-12-12T09:16:26Z")

</div>

Hi All! I have strange result when make my query request - on local all ok and works like expected, but on AWS haves issue - i set terminate\_after but it not works like expected, see attached screen. data = response\[…

---

## [Date parsing with am:pm](https://discuss.elastic.co/t/date-parsing-with-am-pm/211593)

<div class="topic-metadata">

**Author:** [@kate1](https://discuss.elastic.co/u/kate1)\
**Replies:** 1\
**Last updated:** [December 12, 2019, 9:08am UTC](https://discuss.elastic.co/t/date-parsing-with-am-pm/211593 "2019-12-12T09:08:40Z")

</div>

The date in my logs looks like that: \[121019\_032434068\] its mean 10 december 2019 15:24:34.068 I tried to parse it like that: date { match =\> \[ "timestamp" , "YYYY-MM-dd hh:mm:ss.SSS a" \] …

---

## [How to organize elasticsearch indexes?](https://discuss.elastic.co/t/how-to-organize-elasticsearch-indexes/211598)

<div class="topic-metadata">

**Author:** [@tortillla](https://discuss.elastic.co/u/tortillla)\
**Replies:** 1\
**Last updated:** [December 12, 2019, 9:04am UTC](https://discuss.elastic.co/t/how-to-organize-elasticsearch-indexes/211598 "2019-12-12T09:04:45Z")

</div>

I have data coming from many identical devices (the data is generated in the same way, follows the same schema, etc.). Each device has a special ID. I want to see my data in Elasticsearch/Kibana per each device. Am I und…

---

## [Elasticsearch Avg Aggregation Discrepancy](https://discuss.elastic.co/t/elasticsearch-avg-aggregation-discrepancy/211594)

<div class="topic-metadata">

**Author:** [@Ruby\_Shrestha](https://discuss.elastic.co/u/Ruby_Shrestha)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 8:29am UTC](https://discuss.elastic.co/t/elasticsearch-avg-aggregation-discrepancy/211594 "2019-12-12T08:29:12Z")

</div>

Elasticsearch average metric aggregation sometimes shows multiple decimal places while it sometimes shows accurate decimal places. For these 4 values: 1.57, 15.73, 23.22 and 2.42. Average should be 10.735. But, ES Aver…

---

## [After turn-off circuit-break option , and then happens traffic error!](https://discuss.elastic.co/t/after-turn-off-circuit-break-option-and-then-happens-traffic-error/211590)

<div class="topic-metadata">

**Author:** [@HYO-SOON\_KIM](https://discuss.elastic.co/u/HYO-SOON_KIM)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 8:15am UTC](https://discuss.elastic.co/t/after-turn-off-circuit-break-option-and-then-happens-traffic-error/211590 "2019-12-12T08:15:34Z")

</div>

Hi. We met the below erros ! { "error": "Too Many Requests", "message": "\[circuit\_breaking\_exception\] \[parent\] Data too large, data for \[\<http\_request\>\] would be \[6032703456/5.6gb\], which is larger than the limit of …

---

## [Issue with path.repo while starting Elasticsearch as a service](https://discuss.elastic.co/t/issue-with-path-repo-while-starting-elasticsearch-as-a-service/211572)

<div class="topic-metadata">

**Author:** [@vishuk619](https://discuss.elastic.co/u/vishuk619)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 6:37am UTC](https://discuss.elastic.co/t/issue-with-path-repo-while-starting-elasticsearch-as-a-service/211572 "2019-12-12T06:37:34Z")

</div>

Describe the feature : Elasticsearch service doesn't get started if path.repo contains a repository path that needs credentials. Elasticsearch version ( bin/elasticsearch --version ): 6.5.4 Plugins installed : \[Search…

---

## [Reset the version value of a document](https://discuss.elastic.co/t/reset-the-version-value-of-a-document/211404)

<div class="topic-metadata">

**Author:** [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Replies:** 2\
**Last updated:** [December 12, 2019, 1:19am UTC](https://discuss.elastic.co/t/reset-the-version-value-of-a-document/211404 "2019-12-12T01:19:01Z")

</div>

Hi, I want to reset the version value of a document I read about in this blog on how to: and at this end it's written: For most practical use cases, 60 second is enough for the system to catch up and for delayed req…

---

## [Recomendations, 3 elastic docker nodes on a VM](https://discuss.elastic.co/t/recomendations-3-elastic-docker-nodes-on-a-vm/211492)

<div class="topic-metadata">

**Author:** [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Replies:** 1\
**Last updated:** [December 11, 2019, 11:29pm UTC](https://discuss.elastic.co/t/recomendations-3-elastic-docker-nodes-on-a-vm/211492 "2019-12-11T23:29:18Z")

</div>

Hi, I have 3 virtual machines, one will be use by logstash, another by kibana, and the third one, the more resourcefull one, will be use by elastic, I was thinking to install elastic on docker in this machine, to create …

---

## [Scroll parameter to get all the values from ES indices](https://discuss.elastic.co/t/scroll-parameter-to-get-all-the-values-from-es-indices/211135)

<div class="topic-metadata">

**Author:** [@Blason](https://discuss.elastic.co/u/Blason)\
**Replies:** 3\
**Last updated:** [December 11, 2019, 9:43pm UTC](https://discuss.elastic.co/t/scroll-parameter-to-get-all-the-values-from-es-indices/211135 "2019-12-11T21:43:52Z")

</div>

Hi Folks, I am running this query to get the IP addresses from ES indices however I noticed that I am unable to get all the src\_ips and then found the scroll parameter. Can someone please confirm if scroll API will hel…

---

## [Use regex to search the text containing dash or minus sign](https://discuss.elastic.co/t/use-regex-to-search-the-text-containing-dash-or-minus-sign/211519)

<div class="topic-metadata">

**Author:** [@Mihir\_Kothari](https://discuss.elastic.co/u/Mihir_Kothari)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 7:52pm UTC](https://discuss.elastic.co/t/use-regex-to-search-the-text-containing-dash-or-minus-sign/211519 "2019-12-11T19:52:33Z")

</div>

Hi, We have Elasticsearch 6.5. I am using it to search a index using regex and it is working for most of the case. { "query": { "bool": { "must": \[ { "match": { "field1:field2" : "Complete" } }, …

---

## [Facing issue while configuring ssl for elastic search](https://discuss.elastic.co/t/facing-issue-while-configuring-ssl-for-elastic-search/210914)

<div class="topic-metadata">

**Author:** [@ampotdar](https://discuss.elastic.co/u/ampotdar)\
**Replies:** 3\
**Last updated:** [December 11, 2019, 5:16pm UTC](https://discuss.elastic.co/t/facing-issue-while-configuring-ssl-for-elastic-search/210914 "2019-12-11T17:16:22Z")

</div>

Hi I'm facing issues while configuring ssl certificate with elasticsearch in elasticsearch.yml. when it is working fine for Kibana. When using self signed certificate it is asking for username and password while browsin…

---

## [ES: reindexing exceptions](https://discuss.elastic.co/t/es-reindexing-exceptions/211497)

<div class="topic-metadata">

**Author:** [@mouli\_v](https://discuss.elastic.co/u/mouli_v)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 4:29pm UTC](https://discuss.elastic.co/t/es-reindexing-exceptions/211497 "2019-12-11T16:29:33Z")

</div>

Hi There, I am trying to reindex from a remote cluster, I see below exceptions. Can someone help me in fixing it. "index" : "comments", "type" : "search\_by\_query", "id" : "AWZxGty-wYpUZq\_Q6kW1", …

---

## [\`.keyword\`counting against maximum number of fields?](https://discuss.elastic.co/t/keyword-counting-against-maximum-number-of-fields/209304)

<div class="topic-metadata">

**Author:** [@widhalmt](https://discuss.elastic.co/u/widhalmt)\
**Replies:** 1\
**Last updated:** [December 11, 2019, 4:05pm UTC](https://discuss.elastic.co/t/keyword-counting-against-maximum-number-of-fields/209304 "2019-12-11T16:05:47Z")

</div>

Hi, I just wanted to ask if the the double indexed versions of string fields (as text and as keyword) do they count as 2 fields against the maximum count of fields which defaults to 1000? So, if I just have events cont…

---

## [Logstash retrying failed action ... "reason"=\>"action \[indices:admin/create\] is unauthorized for user logstash\_writer](https://discuss.elastic.co/t/logstash-retrying-failed-action-reason-action-indices-admin-create-is-unauthorized-for-user-logstash-writer/211469)

<div class="topic-metadata">

**Author:** [@leprovokateur](https://discuss.elastic.co/u/leprovokateur)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 1:22pm UTC](https://discuss.elastic.co/t/logstash-retrying-failed-action-reason-action-indices-admin-create-is-unauthorized-for-user-logstash-writer/211469 "2019-12-11T13:22:30Z")

</div>

Hi, I have the following lines in my logstash logs: Dec 11 14:09:01 EAGLEEYE-A3001 logstash: \[2019-12-11T14:09:01,149\]\[INFO \]\[logstash.outputs.elasticsearch\] retrying failed action with response code: 403 ({"type"=\>"se…

---

## [Elasticsearch REST API layer is not available. Forcefully terminated cluster](https://discuss.elastic.co/t/elasticsearch-rest-api-layer-is-not-available-forcefully-terminated-cluster/209239)

<div class="topic-metadata">

**Author:** [@vishal\_viswanathan](https://discuss.elastic.co/u/vishal_viswanathan)\
**Replies:** 16\
**Last updated:** [December 11, 2019, 3:43pm UTC](https://discuss.elastic.co/t/elasticsearch-rest-api-layer-is-not-available-forcefully-terminated-cluster/209239 "2019-12-11T15:43:24Z")

</div>

Hello Getting the below error while running rally If they are absent, running this track will fail or lead to unexpected results. \[ERROR\] Cannot race. Could not launch cluster Elasticsearch REST API layer is not avail…

---

## [Elastic Search via python gives wrong count](https://discuss.elastic.co/t/elastic-search-via-python-gives-wrong-count/211173)

<div class="topic-metadata">

**Author:** [@forabraham](https://discuss.elastic.co/u/forabraham)\
**Replies:** 2\
**Last updated:** [December 11, 2019, 3:09pm UTC](https://discuss.elastic.co/t/elastic-search-via-python-gives-wrong-count/211173 "2019-12-11T15:09:08Z")

</div>

I’m new to python and I need to get connect to “Kibana” via python. we’re using Kibana 7.4.1. Requirement is to get the just the count (hits). Due to some restriction I need to use Python 3.6 only. I’ve added the “Elast…

---

## [View in Console not Working](https://discuss.elastic.co/t/view-in-console-not-working/211345)

<div class="topic-metadata">

**Author:** [@spottedmahn](https://discuss.elastic.co/u/spottedmahn)\
**Replies:** 7\
**Last updated:** [December 11, 2019, 2:29pm UTC](https://discuss.elastic.co/t/view-in-console-not-working/211345 "2019-12-11T14:29:57Z")

</div>

Where are we supposed to log feedback/issues about the doc pages? Example doc page. I would assume there is a category/tag(s) for this, no? When I click "View in Console" on any of the examples here, I get: Notic…

---

## [Cat API stuck if some data nodes are overloaded](https://discuss.elastic.co/t/cat-api-stuck-if-some-data-nodes-are-overloaded/209986)

<div class="topic-metadata">

**Author:** [@entrop](https://discuss.elastic.co/u/entrop)\
**Replies:** 5\
**Last updated:** [December 11, 2019, 12:17pm UTC](https://discuss.elastic.co/t/cat-api-stuck-if-some-data-nodes-are-overloaded/209986 "2019-12-11T12:17:35Z")

</div>

Hi! I am driving a very huge elasticsearch cluster (jdk13, elasticsearch 6.8.5) with ~200tb of data and a lot of nodes spread over several DC. We index about logs ~6-7 tb daily. To be short: curl -X GET "master.elasti…

---

## [Inserting JArray data into Elastic in C#](https://discuss.elastic.co/t/inserting-jarray-data-into-elastic-in-c/211463)

<div class="topic-metadata">

**Author:** [@Ayyappa\_P](https://discuss.elastic.co/u/Ayyappa_P)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 12:16pm UTC](https://discuss.elastic.co/t/inserting-jarray-data-into-elastic-in-c/211463 "2019-12-11T12:16:58Z")

</div>

Hi, I have different JSON Array types, which have Unique JObject types. The structure is like the following. "Fruit": \[ { "Name": "Mango", "Color": "Yellow", "Size": "Large" }, …

---

## [Sending logs to Elastic cloud using C# Logger](https://discuss.elastic.co/t/sending-logs-to-elastic-cloud-using-c-logger/211438)

<div class="topic-metadata">

**Author:** [@Mohamad-Sobhie](https://discuss.elastic.co/u/Mohamad-Sobhie)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 9:21am UTC](https://discuss.elastic.co/t/sending-logs-to-elastic-cloud-using-c-logger/211438 "2019-12-11T09:21:33Z")

</div>

I am using this library https://github.com/serilog/serilog-sinks-elasticsearch to send logs to my Elastic cloud node. I am trying to include the authentication in my code but it's not working. var logger = n…

---

## [ELASCITSEARCH PROCESS DIES](https://discuss.elastic.co/t/elascitsearch-process-dies/211136)

<div class="topic-metadata">

**Author:** [@Anderson\_Oliveira](https://discuss.elastic.co/u/Anderson_Oliveira)\
**Replies:** 6\
**Last updated:** [December 11, 2019, 11:26am UTC](https://discuss.elastic.co/t/elascitsearch-process-dies/211136 "2019-12-11T11:26:23Z")

</div>

I have an cluster with 5 nodes of elasticsearch, all nodes with same RAM 8GB, but elasticsearch process only stay up when i set heap with -Xms1g -Xmx1g, if i set -Xms4g -Xmx4g after some time elasticsearch dies, w…

---

## [How to overcome missing language analyzers?](https://discuss.elastic.co/t/how-to-overcome-missing-language-analyzers/211437)

<div class="topic-metadata">

**Author:** [@ssklavos](https://discuss.elastic.co/u/ssklavos)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 9:08am UTC](https://discuss.elastic.co/t/how-to-overcome-missing-language-analyzers/211437 "2019-12-11T09:08:46Z")

</div>

What is the general approach/best practice when an analyzer is missing? We need to provide support for functionalities like stemming and there is a range of languages missing. I suppose this should be a common issue and…

---

## [How to make a deepcopy BoolQueryBuilder](https://discuss.elastic.co/t/how-to-make-a-deepcopy-boolquerybuilder/211411)

<div class="topic-metadata">

**Author:** [@401825317](https://discuss.elastic.co/u/401825317)\
**Replies:** 4\
**Last updated:** [December 11, 2019, 6:19am UTC](https://discuss.elastic.co/t/how-to-make-a-deepcopy-boolquerybuilder/211411 "2019-12-11T06:19:49Z")

</div>

How to copy BoolQueryBuilder in depth??

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

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