# Elasticsearch

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

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

**Page:** 869

---

## [Fuzziness with Keyword and Text fields](https://discuss.elastic.co/t/fuzziness-with-keyword-and-text-fields/240266)

<div class="topic-metadata">

**Author:** [@psramkumar](https://discuss.elastic.co/u/psramkumar)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 9:07am UTC](https://discuss.elastic.co/t/fuzziness-with-keyword-and-text-fields/240266 "2020-07-08T09:07:52Z")

</div>

"When querying text or keyword fields, fuzziness is interpreted as a Levenshtein Edit Distance" Based on the above statement from Fuzziness Document, the query should work the same for both fields. Please correc…

---

## [Boolean Query returns wrong results](https://discuss.elastic.co/t/boolean-query-returns-wrong-results/240177)

<div class="topic-metadata">

**Author:** [@buka\_bidzina](https://discuss.elastic.co/u/buka_bidzina)\
**Replies:** 12\
**Last updated:** [July 8, 2020, 7:12am UTC](https://discuss.elastic.co/t/boolean-query-returns-wrong-results/240177 "2020-07-08T07:12:08Z")

</div>

Mapping PUT index PUT /index/\_mapping { "properties": { "categories": { "type": "nested", "properties": { "id": { "type": "integer" } } }, "deleted": { "…

---

## [(429) Too Many Requests during indexing pdf](https://discuss.elastic.co/t/429-too-many-requests-during-indexing-pdf/240279)

<div class="topic-metadata">

**Author:** [@LKL](https://discuss.elastic.co/u/LKL)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 7:09am UTC](https://discuss.elastic.co/t/429-too-many-requests-during-indexing-pdf/240279 "2020-07-08T07:09:58Z")

</div>

Hello, we have around 20000 products in 25 different languages. Each language has an own index (products\_en, products\_fr, ...) when 1000 product data (code, name, description) per language is gathered, we send for ever…

---

## [Max\_inner\_result\_window](https://discuss.elastic.co/t/max-inner-result-window/240273)

<div class="topic-metadata">

**Author:** [@nitin7](https://discuss.elastic.co/u/nitin7)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 6:39am UTC](https://discuss.elastic.co/t/max-inner-result-window/240273 "2020-07-08T06:39:37Z")

</div>

Is there any guideline on setting max\_inner\_result\_window. I've nested field inside of nested, which can be more than 1000 deep. The default parameter for inner window is 100. Is it OK to set it to \>1000 or there's any …

---

## [Bucket sort by a scripted metric](https://discuss.elastic.co/t/bucket-sort-by-a-scripted-metric/240261)

<div class="topic-metadata">

**Author:** [@Kun\_Liu1](https://discuss.elastic.co/u/Kun_Liu1)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 5:22am UTC](https://discuss.elastic.co/t/bucket-sort-by-a-scripted-metric/240261 "2020-07-08T05:22:39Z")

</div>

HI everyone, I'm currently on elasticsearch 7.4. We have some complicated elasticsearch queries. I have an issue when sorting top 10 terms for some nested field by scripted metric. Here is the query I'm having issue. …

---

## [Aggregation query syntax - assistance needed](https://discuss.elastic.co/t/aggregation-query-syntax-assistance-needed/240270)

<div class="topic-metadata">

**Author:** [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 6:14am UTC](https://discuss.elastic.co/t/aggregation-query-syntax-assistance-needed/240270 "2020-07-08T06:14:09Z")

</div>

Hello I am trying to get docs that answer the query. But, also want to get 1 doc of each type. For example, retrieve all the hostnames that have diskspace\_usage \> 0.3 With the following I am getting the correct resul…

---

## [How to get query result without doc field(\_index, \_id...)](https://discuss.elastic.co/t/how-to-get-query-result-without-doc-field-index-id/240245)

<div class="topic-metadata">

**Author:** [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 6:03am UTC](https://discuss.elastic.co/t/how-to-get-query-result-without-doc-field-index-id/240245 "2020-07-08T06:03:05Z")

</div>

how to get query result without doc field? doc field: \_index, \_type, \_id, \_score...

---

## [Fetch data using elasticsearch\_dsl python lib](https://discuss.elastic.co/t/fetch-data-using-elasticsearch-dsl-python-lib/240257)

<div class="topic-metadata">

**Author:** [@qxlsz](https://discuss.elastic.co/u/qxlsz)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 4:32am UTC](https://discuss.elastic.co/t/fetch-data-using-elasticsearch-dsl-python-lib/240257 "2020-07-08T04:32:20Z")

</div>

Hello, I've attached the screenshot below I am trying to use elasticsearch\_dsl python library. i've indexed the columns which i need so i can query My aim is , for a given snapshot the keys which i am interested …

---

## [Connection reset by peer in 6.8.2 ES with 6.8.10 java client](https://discuss.elastic.co/t/connection-reset-by-peer-in-6-8-2-es-with-6-8-10-java-client/240262)

<div class="topic-metadata">

**Author:** [@deepak\_upadhyay](https://discuss.elastic.co/u/deepak_upadhyay)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 5:22am UTC](https://discuss.elastic.co/t/connection-reset-by-peer-in-6-8-2-es-with-6-8-10-java-client/240262 "2020-07-08T05:22:58Z")

</div>

Often we are seeing "Connection reset by Peer" after migrating to ES 6.8.2. But often there is Connection reset by Peer exception thrown by Elasticsearch rest client. Any solution or how can we debug this issue ?

---

## [New to Painless, can someone please help?](https://discuss.elastic.co/t/new-to-painless-can-someone-please-help/238384)

<div class="topic-metadata">

**Author:** [@wardallen](https://discuss.elastic.co/u/wardallen)\
**Replies:** 7\
**Last updated:** [July 8, 2020, 5:37am UTC](https://discuss.elastic.co/t/new-to-painless-can-someone-please-help/238384 "2020-07-08T05:37:35Z")

</div>

I'm brand new to painless, so please forgive me if I'm asking a dumb question here. I have an index that has events with many fields in them, and need to calculate a field based on values found in others, and include th…

---

## [Please help me with how to search Elastic](https://discuss.elastic.co/t/please-help-me-with-how-to-search-elastic/239732)

<div class="topic-metadata">

**Author:** [@111349](https://discuss.elastic.co/u/111349)\
**Replies:** 9\
**Last updated:** [July 8, 2020, 4:25am UTC](https://discuss.elastic.co/t/please-help-me-with-how-to-search-elastic/239732 "2020-07-08T04:25:24Z")

</div>

I am requesting a search on Elastic through the Java Elastic API. Among them, I use queryStringQueryBuilder. Let's say the field name I have in elastic is fruit. Each field has a value of a-apple, b-apple, and c-apple…

---

## [Sort aggregation buckets based on Keyword field/Scripted Non Metric Field](https://discuss.elastic.co/t/sort-aggregation-buckets-based-on-keyword-field-scripted-non-metric-field/240246)

<div class="topic-metadata">

**Author:** [@Seetha93](https://discuss.elastic.co/u/Seetha93)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 2:04am UTC](https://discuss.elastic.co/t/sort-aggregation-buckets-based-on-keyword-field-scripted-non-metric-field/240246 "2020-07-08T02:04:26Z")

</div>

Hi I have docs with string and numeric fields. And I do aggs in the following manner: { "from": 0, "size": 0, "timeout": "60s", "query": { "bool": { "must": \[ { "terms": { …

---

## [Can search queries be performed when updating a mapping](https://discuss.elastic.co/t/can-search-queries-be-performed-when-updating-a-mapping/239831)

<div class="topic-metadata">

**Author:** [@Alexander\_Koval](https://discuss.elastic.co/u/Alexander_Koval)\
**Replies:** 5\
**Last updated:** [July 8, 2020, 1:04am UTC](https://discuss.elastic.co/t/can-search-queries-be-performed-when-updating-a-mapping/239831 "2020-07-08T01:04:24Z")

</div>

I write a plugin for Elasticsearch and I need to know, can search queries and mapping updates run concurrently?

---

## [Aggregation on terms and find min value of script results](https://discuss.elastic.co/t/aggregation-on-terms-and-find-min-value-of-script-results/240214)

<div class="topic-metadata">

**Author:** [@Akihito\_Kanbara](https://discuss.elastic.co/u/Akihito_Kanbara)\
**Replies:** 3\
**Last updated:** [July 8, 2020, 12:54am UTC](https://discuss.elastic.co/t/aggregation-on-terms-and-find-min-value-of-script-results/240214 "2020-07-08T00:54:45Z")

</div>

Hi, I have a use case need to first groupBy "user" and do some calculation and find the min value of the results. What I am doing is: GET test/\_search { "size": 0, "aggs": { "throughput": { "terms": { …

---

## [Elastic Search Pagination](https://discuss.elastic.co/t/elastic-search-pagination/240141)

<div class="topic-metadata">

**Author:** [@ankitkothana](https://discuss.elastic.co/u/ankitkothana)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 12:36am UTC](https://discuss.elastic.co/t/elastic-search-pagination/240141 "2020-07-08T00:36:11Z")

</div>

I am using elastic search with composite aggregation for pagination. Response does provide me an after\_key attribute for getting to next page. Is there any way/attribute for getting to previous page from current page? I…

---

## [Shipping logs to s3 after end of index lifecycle](https://discuss.elastic.co/t/shipping-logs-to-s3-after-end-of-index-lifecycle/240238)

<div class="topic-metadata">

**Author:** [@ramiriskis](https://discuss.elastic.co/u/ramiriskis)\
**Replies:** 4\
**Last updated:** [July 8, 2020, 12:18am UTC](https://discuss.elastic.co/t/shipping-logs-to-s3-after-end-of-index-lifecycle/240238 "2020-07-08T00:18:25Z")

</div>

Hi! My team has a managed elastic instance and we are currently shipping our logs to it. The created indices go through the log life cycle process (hot, warm, cold) as specified in the docs. My issue is that instead of …

---

## [Whitespace tokenizer](https://discuss.elastic.co/t/whitespace-tokenizer/240165)

<div class="topic-metadata">

**Author:** [@anthony\_bliecq](https://discuss.elastic.co/u/anthony_bliecq)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 1:07pm UTC](https://discuss.elastic.co/t/whitespace-tokenizer/240165 "2020-07-07T13:07:27Z")

</div>

Hi, I'm actually using standard tokenizer wich contains whitespace tokenizer. The problem is that i want to separate a sentence by tokens with whitespace but i also want the entire sentence as token. How is this possib…

---

## [The difference between saved object export and snapshot](https://discuss.elastic.co/t/the-difference-between-saved-object-export-and-snapshot/240175)

<div class="topic-metadata">

**Author:** [@iammanmale](https://discuss.elastic.co/u/iammanmale)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 11:20pm UTC](https://discuss.elastic.co/t/the-difference-between-saved-object-export-and-snapshot/240175 "2020-07-07T23:20:53Z")

</div>

I would like to know if i don't need to keep the data in Elastic Stack but I do need to keep those application configuration, mapping, searches, dashboard, visualization . Do I need to take snapshot ? Or or just export…

---

## [Kubernetes hosting](https://discuss.elastic.co/t/kubernetes-hosting/240183)

<div class="topic-metadata">

**Author:** [@thokar](https://discuss.elastic.co/u/thokar)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 3:12pm UTC](https://discuss.elastic.co/t/kubernetes-hosting/240183 "2020-07-07T15:12:03Z")

</div>

I am unsure if it is officially supported to host elastic on kubernetes like AKS. When i scale the replicas up or down, or roleout a restart for example (for extending volume sizes, the nodes fail to join back to the cl…

---

## [How to get aggregations with buckets of zero count only for the filter provided](https://discuss.elastic.co/t/how-to-get-aggregations-with-buckets-of-zero-count-only-for-the-filter-provided/238861)

<div class="topic-metadata">

**Author:** [@kiranvpawar](https://discuss.elastic.co/u/kiranvpawar)\
**Replies:** 0\
**Last updated:** [June 26, 2020, 12:57pm UTC](https://discuss.elastic.co/t/how-to-get-aggregations-with-buckets-of-zero-count-only-for-the-filter-provided/238861 "2020-06-26T12:57:59Z")

</div>

Elastic search aggregation using min\_doc\_count=0 returns all the buckets which are not related to query results or hits or provided filter within the query. It is correct based on documentation provided by Elastic Search…

---

## [Howto highlight results in a generic fashion](https://discuss.elastic.co/t/howto-highlight-results-in-a-generic-fashion/240132)

<div class="topic-metadata">

**Author:** [@DaveG](https://discuss.elastic.co/u/DaveG)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 9:24am UTC](https://discuss.elastic.co/t/howto-highlight-results-in-a-generic-fashion/240132 "2020-07-07T09:24:10Z")

</div>

Hi All, I have a requirement to highlight any searched field and update it in the returned source, this will be shown in a fielded HTML UI with the highlights shown per-field. I see a number of posts such as: Is there …

---

## [Elastic Search/Kibana Alias basics/roll over/delete after 90 days](https://discuss.elastic.co/t/elastic-search-kibana-alias-basics-roll-over-delete-after-90-days/240032)

<div class="topic-metadata">

**Author:** [@stcdarrell](https://discuss.elastic.co/u/stcdarrell)\
**Replies:** 3\
**Last updated:** [July 7, 2020, 9:59pm UTC](https://discuss.elastic.co/t/elastic-search-kibana-alias-basics-roll-over-delete-after-90-days/240032 "2020-07-07T21:59:29Z")

</div>

i've been using ES for about 2 yrs, never need to really store anything long term, so alias's and rollovers were never needed. I understand the concept, but cant seem to find any good resources in a walk-through or best …

---

## [Getting error when trying to add or install repository-s3 plugin](https://discuss.elastic.co/t/getting-error-when-trying-to-add-or-install-repository-s3-plugin/240219)

<div class="topic-metadata">

**Author:** [@FREDDIE2020](https://discuss.elastic.co/u/FREDDIE2020)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 8:18pm UTC](https://discuss.elastic.co/t/getting-error-when-trying-to-add-or-install-repository-s3-plugin/240219 "2020-07-07T20:18:54Z")

</div>

Hello, Trying to add a plugin called repository-s3 to my image or manually trying to install on pods and both fail with same error: Exception in thread “main” javax.net.ssl.SSLException: Connection reset at java.base/…

---

## [Search with multiple conditions](https://discuss.elastic.co/t/search-with-multiple-conditions/240144)

<div class="topic-metadata">

**Author:** [@mdiakhate](https://discuss.elastic.co/u/mdiakhate)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 7:15pm UTC](https://discuss.elastic.co/t/search-with-multiple-conditions/240144 "2020-07-07T19:15:34Z")

</div>

Hello, I have a very simple problem that I would like to translate into an ES search. I have different items with 2 fields : registration\_label which is a string and is\_optam is a bool. My query in SQL would be someth…

---

## [Slow snapshot to HDFS](https://discuss.elastic.co/t/slow-snapshot-to-hdfs/240208)

<div class="topic-metadata">

**Author:** [@theDor](https://discuss.elastic.co/u/theDor)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 7:07pm UTC](https://discuss.elastic.co/t/slow-snapshot-to-hdfs/240208 "2020-07-07T19:07:44Z")

</div>

Hello there, i tried today to backup my 1TB cluster to the HDFS for future snapshot on way bigger clusters (tons of TB). but the process was very slow (more then an hour for 1TB, while on local FS it tooks 5 - 10 Minut…

---

## [Elasticsearch exception: Root mapping definition has unsupported parameters](https://discuss.elastic.co/t/elasticsearch-exception-root-mapping-definition-has-unsupported-parameters/234630)

<div class="topic-metadata">

**Author:** [@Cat](https://discuss.elastic.co/u/Cat)\
**Replies:** 7\
**Last updated:** [July 7, 2020, 5:50pm UTC](https://discuss.elastic.co/t/elasticsearch-exception-root-mapping-definition-has-unsupported-parameters/234630 "2020-07-07T17:50:27Z")

</div>

When I used curl to create my template, it works fine. But when I used High Level REST it gave me the exception: org.elasticsearch.ElasticsearchException: Elasticsearch exception \[type=mapper\_parsing\_exception, reason=…

---

## [Elasticsearch aggregation performance](https://discuss.elastic.co/t/elasticsearch-aggregation-performance/240044)

<div class="topic-metadata">

**Author:** [@lschmid](https://discuss.elastic.co/u/lschmid)\
**Replies:** 2\
**Last updated:** [July 7, 2020, 5:17pm UTC](https://discuss.elastic.co/t/elasticsearch-aggregation-performance/240044 "2020-07-07T17:17:33Z")

</div>

Hi, I am trying to test aggregation performance across different ES topologies. The first time running it takes about 26 seconds, and all subsequent runs takes less than a second. I would like to compare performance for…

---

## [Distribute primary shards among newly added data nodes](https://discuss.elastic.co/t/distribute-primary-shards-among-newly-added-data-nodes/240187)

<div class="topic-metadata">

**Author:** [@Ankur\_Mahajan](https://discuss.elastic.co/u/Ankur_Mahajan)\
**Replies:** 3\
**Last updated:** [July 7, 2020, 4:30pm UTC](https://discuss.elastic.co/t/distribute-primary-shards-among-newly-added-data-nodes/240187 "2020-07-07T16:30:35Z")

</div>

I am looking for a way to automatically distribute Elasticsearch's primary shards among the newly added data nodes. I know a way to achieve this is by re-indexing after the new nodes are added. Is there any internal con…

---

## [Unable to grok ingest pipeline for Caddy log (even after running in grok debugger)](https://discuss.elastic.co/t/unable-to-grok-ingest-pipeline-for-caddy-log-even-after-running-in-grok-debugger/240168)

<div class="topic-metadata">

**Author:** [@OliPicard](https://discuss.elastic.co/u/OliPicard)\
**Replies:** 2\
**Last updated:** [July 7, 2020, 3:22pm UTC](https://discuss.elastic.co/t/unable-to-grok-ingest-pipeline-for-caddy-log-even-after-running-in-grok-debugger/240168 "2020-07-07T15:22:06Z")

</div>

Dear Elastic, I am having problems processing this grok into the ingest pipeline. PUT \_ingest/pipeline/parse\_caddy { "description": "parsing fields from Caddy", "processors": \[ { "grok" : { "field…

---

## [Rollup vs Continuous Transform for historical data](https://discuss.elastic.co/t/rollup-vs-continuous-transform-for-historical-data/240178)

<div class="topic-metadata">

**Author:** [@Vlad\_K](https://discuss.elastic.co/u/Vlad_K)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 3:09pm UTC](https://discuss.elastic.co/t/rollup-vs-continuous-transform-for-historical-data/240178 "2020-07-07T15:09:48Z")

</div>

Are there any reasons to pick one over another to store historical data? As far as i can see rollups have limited ability for searching and aggregations (no filtered aggregations, etc.) while transformed index doesn't h…

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

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