# Elasticsearch

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

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

**Page:** 1347

---

## [The forbiddenPatterns task failed - Plugin](https://discuss.elastic.co/t/the-forbiddenpatterns-task-failed-plugin/174830)

<div class="topic-metadata">

**Author:** [@EliuFlorez](https://discuss.elastic.co/u/EliuFlorez)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 10:49am UTC](https://discuss.elastic.co/t/the-forbiddenpatterns-task-failed-plugin/174830 "2019-04-02T10:49:58Z")

</div>

error to run ./gradlew clean build and the lines are blank, there is no code. Then why the error? The :forbiddenPatterns task failed.View task in console log Found invalid patterns: - tab on line 39 of src/test/java/…

---

## [Compare query speeds of two different indices](https://discuss.elastic.co/t/compare-query-speeds-of-two-different-indices/174937)

<div class="topic-metadata">

**Author:** [@Praneet\_Khandelwal](https://discuss.elastic.co/u/Praneet_Khandelwal)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 10:47am UTC](https://discuss.elastic.co/t/compare-query-speeds-of-two-different-indices/174937 "2019-04-02T10:47:54Z")

</div>

I have two separate indices for same data. I would like to compare the querying speed for the two indices using a python script. I am using the 'took' variable in my response as a metric. The thing I want to avoid is th…

---

## [Can I hide or print shorter version of elasticsearch errors and warnings in the log file?](https://discuss.elastic.co/t/can-i-hide-or-print-shorter-version-of-elasticsearch-errors-and-warnings-in-the-log-file/174932)

<div class="topic-metadata">

**Author:** [@yishain11](https://discuss.elastic.co/u/yishain11)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 10:43am UTC](https://discuss.elastic.co/t/can-i-hide-or-print-shorter-version-of-elasticsearch-errors-and-warnings-in-the-log-file/174932 "2019-04-02T10:43:38Z")

</div>

Is there's a way to hide specific error messages in elasticsearch's log? or at least to show a shorter version? I have a cycle of delete by query requests, even is there is no indices currently, so I see the "no such in…

---

## [How to set the limit in for nested aggregations results](https://discuss.elastic.co/t/how-to-set-the-limit-in-for-nested-aggregations-results/174957)

<div class="topic-metadata">

**Author:** [@Aman\_Kumar2](https://discuss.elastic.co/u/Aman_Kumar2)\
**Replies:** 0\
**Last updated:** [April 2, 2019, 9:27am UTC](https://discuss.elastic.co/t/how-to-set-the-limit-in-for-nested-aggregations-results/174957 "2019-04-02T09:27:02Z")

</div>

How can I set the total result limit for my nested aggregations results. I have looked into the composite aggregations but it gives me error as I am using geo\_distance aggregation and composite aggregation doesn't suppor…

---

## [Parent Child - Getting data from child into parent](https://discuss.elastic.co/t/parent-child-getting-data-from-child-into-parent/174953)

<div class="topic-metadata">

**Author:** [@ek9boy](https://discuss.elastic.co/u/ek9boy)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 9:17am UTC](https://discuss.elastic.co/t/parent-child-getting-data-from-child-into-parent/174953 "2019-04-02T09:17:56Z")

</div>

Hi, I have the below issue: Parent File: File\_Id: 009 Source: MP AMT: 2311 Reason\_R: - Time: - Child File: File\_Id: 1232 File\_Id\_link:009 Source: MP AMT: 324 Reason\_R: AAA Time: 9:00 So essentially the par…

---

## [Survey about user experience with Elasticsearch in the cloud](https://discuss.elastic.co/t/survey-about-user-experience-with-elasticsearch-in-the-cloud/174954)

<div class="topic-metadata">

**Author:** [@KevinW](https://discuss.elastic.co/u/KevinW)\
**Replies:** 0\
**Last updated:** [April 2, 2019, 9:17am UTC](https://discuss.elastic.co/t/survey-about-user-experience-with-elasticsearch-in-the-cloud/174954 "2019-04-02T09:17:32Z")

</div>

Hey people, I am working on a thesis for my graduation about Elasticsearch in the cloud and I need your help as I am doing a market research on the services available and what customers think of them and why they choose …

---

## [Unable to establish connection to master when upgrading to 6.7.0](https://discuss.elastic.co/t/unable-to-establish-connection-to-master-when-upgrading-to-6-7-0/174839)

<div class="topic-metadata">

**Author:** [@iremmats](https://discuss.elastic.co/u/iremmats)\
**Replies:** 3\
**Last updated:** [April 2, 2019, 8:51am UTC](https://discuss.elastic.co/t/unable-to-establish-connection-to-master-when-upgrading-to-6-7-0/174839 "2019-04-02T08:51:09Z")

</div>

Background: We had a 7 node cluster running 6.4.2 which we want to upgrade to 6.7.0. Connecting new nodes to this cluster with version 6.7.0 did not work. Connecting nodes of version 6.5.4 and 6.6.2 worked fine. We went …

---

## [Query migration to SQL - simplify query](https://discuss.elastic.co/t/query-migration-to-sql-simplify-query/174550)

<div class="topic-metadata">

**Author:** [@pdd](https://discuss.elastic.co/u/pdd)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 8:01am UTC](https://discuss.elastic.co/t/query-migration-to-sql-simplify-query/174550 "2019-04-02T08:01:03Z")

</div>

As Elasticsearch implements SQL-like queries, i'm trying to migarate existing one using Elasticsearch SQL. Source query: { "query": { "bool": { "must": \[ { "multi\_match": { "q…

---

## [Obtaining matching tokens with \_search](https://discuss.elastic.co/t/obtaining-matching-tokens-with-search/174647)

<div class="topic-metadata">

**Author:** [@fivo](https://discuss.elastic.co/u/fivo)\
**Replies:** 3\
**Last updated:** [April 2, 2019, 7:50am UTC](https://discuss.elastic.co/t/obtaining-matching-tokens-with-search/174647 "2019-04-02T07:50:52Z")

</div>

Suppose I have the following index: PUT test\_index { "settings": { "analysis": { "analyzer": { "my\_analyzer": { "tokenizer": "code\_tokenizer" } }, "tokenizer": { …

---

## [Changing node roles in the future](https://discuss.elastic.co/t/changing-node-roles-in-the-future/174924)

<div class="topic-metadata">

**Author:** [@Anish\_Sujanani](https://discuss.elastic.co/u/Anish_Sujanani)\
**Replies:** 0\
**Last updated:** [April 2, 2019, 7:21am UTC](https://discuss.elastic.co/t/changing-node-roles-in-the-future/174924 "2019-04-02T07:21:44Z")

</div>

Hi everyone, I have a couple of questions about clustering and changing node roles: For all scenarios below, I would first shut down the entire cluster, make changes to the config files for each node and bring the clust…

---

## [No geo search interface in rest-high-level-client](https://discuss.elastic.co/t/no-geo-search-interface-in-rest-high-level-client/174902)

<div class="topic-metadata">

**Author:** [@ea6bdb5e93c55c655ec0](https://discuss.elastic.co/u/ea6bdb5e93c55c655ec0)\
**Replies:** 1\
**Last updated:** [April 2, 2019, 7:02am UTC](https://discuss.elastic.co/t/no-geo-search-interface-in-rest-high-level-client/174902 "2019-04-02T07:02:00Z")

</div>

hi all,i have a question how can i use geo search with RestClient?? no interface find in RestClient,and i use the elasticsearch-rest-high-level-client:6.6.1 can any one help me!

---

## [Retry for java High level rest client. ES version 6.1](https://discuss.elastic.co/t/retry-for-java-high-level-rest-client-es-version-6-1/174240)

<div class="topic-metadata">

**Author:** [@nikuland](https://discuss.elastic.co/u/nikuland)\
**Replies:** 9\
**Last updated:** [April 2, 2019, 7:00am UTC](https://discuss.elastic.co/t/retry-for-java-high-level-rest-client-es-version-6-1/174240 "2019-04-02T07:00:00Z")

</div>

we are using 6.1 ES, and Java High level Rest client. Intermittently we see "Connection reset by Peer" and "Listener timedout after 30000ms". In python there is way to set the max retries for such failures. Is there simi…

---

## [Request Entity Too Large while refresing some indices](https://discuss.elastic.co/t/request-entity-too-large-while-refresing-some-indices/174785)

<div class="topic-metadata">

**Author:** [@shailesh\_thakur](https://discuss.elastic.co/u/shailesh_thakur)\
**Replies:** 4\
**Last updated:** [April 2, 2019, 5:38am UTC](https://discuss.elastic.co/t/request-entity-too-large-while-refresing-some-indices/174785 "2019-04-02T05:38:25Z")

</div>

HI Team i am getting request entity too large when creating index pattern kindly help

---

## [Can't get webhook to work when CURL does](https://discuss.elastic.co/t/cant-get-webhook-to-work-when-curl-does/174896)

<div class="topic-metadata">

**Author:** [@dpresbit](https://discuss.elastic.co/u/dpresbit)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 5:21am UTC](https://discuss.elastic.co/t/cant-get-webhook-to-work-when-curl-does/174896 "2019-04-02T05:21:07Z")

</div>

Trying to get a very simple watcher to execute as a "hello world" test to an external REST API and it does not working. Tried a CURL from the underlying elastic linux host and it works perfectly. Note: Destination RES…

---

## [Elasticsearch search latency with young GC](https://discuss.elastic.co/t/elasticsearch-search-latency-with-young-gc/174897)

<div class="topic-metadata">

**Author:** [@hackerwin7](https://discuss.elastic.co/u/hackerwin7)\
**Replies:** 0\
**Last updated:** [April 2, 2019, 1:54am UTC](https://discuss.elastic.co/t/elasticsearch-search-latency-with-young-gc/174897 "2019-04-02T01:54:47Z")

</div>

version is 6.5.1 When there is a frequently young GC occurred, the search latency raised to 200 ~ 500 ms, however the normal latency is within 100ms. all api is simple search api. there is no even full GC, and the …

---

## [Return unique documents in the hit response using an aggregation](https://discuss.elastic.co/t/return-unique-documents-in-the-hit-response-using-an-aggregation/174878)

<div class="topic-metadata">

**Author:** [@xsaycocie](https://discuss.elastic.co/u/xsaycocie)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 9:15pm UTC](https://discuss.elastic.co/t/return-unique-documents-in-the-hit-response-using-an-aggregation/174878 "2019-04-01T21:15:02Z")

</div>

I have three documents. Document 2 is a new version of document 1. I have no control on updating document 1 because a 3rd party system automatically generates the new document based on an update action on an upstream s…

---

## [How to disable replicas for existing indices](https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888)

<div class="topic-metadata">

**Author:** [@kotarusv](https://discuss.elastic.co/u/kotarusv)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 12:22am UTC](https://discuss.elastic.co/t/how-to-disable-replicas-for-existing-indices/174888 "2019-04-02T00:22:25Z")

</div>

hI we are using elastic search for logging purpose and don't want to have replicas=1 for every primary index. It is ok to have replicas=0 for our environment as logs are not critical. how to disable replicas=0 permanen…

---

## [Azure Template 6.6.1 failing](https://discuss.elastic.co/t/azure-template-6-6-1-failing/173011)

<div class="topic-metadata">

**Author:** [@brock.griffin](https://discuss.elastic.co/u/brock.griffin)\
**Replies:** 4\
**Last updated:** [April 2, 2019, 12:06am UTC](https://discuss.elastic.co/t/azure-template-6-6-1-failing/173011 "2019-04-02T00:06:17Z")

</div>

I am new to Elasticsearch and am setting up a new environment. I read through the posts and it seems my issue may be a bit different. When I deploy the new elasticsearch marketplace template through the UI, I am getting …

---

## [N-Level Category Tree Mapping](https://discuss.elastic.co/t/n-level-category-tree-mapping/174410)

<div class="topic-metadata">

**Author:** [@datslegne217](https://discuss.elastic.co/u/datslegne217)\
**Replies:** 2\
**Last updated:** [April 1, 2019, 9:47pm UTC](https://discuss.elastic.co/t/n-level-category-tree-mapping/174410 "2019-04-01T21:47:43Z")

</div>

I have an ElasticSearch document mapping that is designed to support an n-level category tree, is there an alternate recommendation or best practice to accomplish n-level trees within a mapping structure? We are using t…

---

## [Comparison with elasticsearch](https://discuss.elastic.co/t/comparison-with-elasticsearch/174869)

<div class="topic-metadata">

**Author:** [@mushishi](https://discuss.elastic.co/u/mushishi)\
**Replies:** 3\
**Last updated:** [April 1, 2019, 9:15pm UTC](https://discuss.elastic.co/t/comparison-with-elasticsearch/174869 "2019-04-01T21:15:55Z")

</div>

Suppose I'm storing data in key, value format in a NoSQL database like MongoDB and I need to get all documents in which a value corresponding to a particular key is \<= some value. Is there a proper way of doing this quer…

---

## [Grouping results into tranches](https://discuss.elastic.co/t/grouping-results-into-tranches/174873)

<div class="topic-metadata">

**Author:** [@emarthinsen](https://discuss.elastic.co/u/emarthinsen)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 8:49pm UTC](https://discuss.elastic.co/t/grouping-results-into-tranches/174873 "2019-04-01T20:49:26Z")

</div>

Hi. I have an index of profiles. Right now, someone can search that index and get results back sorted by \_score. Each profile has a profile picture, contact details, and a bio (Note, I'm simplifying my actual data model …

---

## [Devalue multiple hits in title](https://discuss.elastic.co/t/devalue-multiple-hits-in-title/174868)

<div class="topic-metadata">

**Author:** [@Matt\_Hensley](https://discuss.elastic.co/u/Matt_Hensley)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 8:24pm UTC](https://discuss.elastic.co/t/devalue-multiple-hits-in-title/174868 "2019-04-01T20:24:28Z")

</div>

Somewhat new to ES and trying to resolve what seems like should be a common issue, grateful for any pointers! With a fairly standard article based search index, presence of the query word in the title should be boosted …

---

## [Error trying reindex from remote host](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819)

<div class="topic-metadata">

**Author:** [@Turnover\_Dev](https://discuss.elastic.co/u/Turnover_Dev)\
**Replies:** 3\
**Last updated:** [April 1, 2019, 8:14pm UTC](https://discuss.elastic.co/t/error-trying-reindex-from-remote-host/174819 "2019-04-01T20:14:53Z")

</div>

Hi, dear Community of elastic I got this problem trying to reindex from a remote host of my production environment to my development one in the elastic cloud It may the error caused by the different versions of the host…

---

## [Elasticsearch relevance score calculation](https://discuss.elastic.co/t/elasticsearch-relevance-score-calculation/172857)

<div class="topic-metadata">

**Author:** [@telebh](https://discuss.elastic.co/u/telebh)\
**Replies:** 2\
**Last updated:** [April 1, 2019, 5:10pm UTC](https://discuss.elastic.co/t/elasticsearch-relevance-score-calculation/172857 "2019-04-01T17:10:54Z")

</div>

Hi there, I am newbie to Elasticsearch and got lost on how ES calculates the relevance score for the query result. I am using ES v 6.0 and by running the explain API as follows, i got nothing but the following GET /my…

---

## [ILM phase completed](https://discuss.elastic.co/t/ilm-phase-completed/174718)

<div class="topic-metadata">

**Author:** [@Valker](https://discuss.elastic.co/u/Valker)\
**Replies:** 2\
**Last updated:** [April 1, 2019, 5:10pm UTC](https://discuss.elastic.co/t/ilm-phase-completed/174718 "2019-04-01T17:10:49Z")

</div>

Hello, I have one question regarding Index Lifecycle Managment. My lifecycle policy looks like this: Policy Details{ "policy": { "phases": { "hot": { "min\_age": "…

---

## [Index templates across all nodes in Elasticsearch cluster](https://discuss.elastic.co/t/index-templates-across-all-nodes-in-elasticsearch-cluster/174808)

<div class="topic-metadata">

**Author:** [@Anish\_Sujanani](https://discuss.elastic.co/u/Anish_Sujanani)\
**Replies:** 2\
**Last updated:** [April 1, 2019, 5:06pm UTC](https://discuss.elastic.co/t/index-templates-across-all-nodes-in-elasticsearch-cluster/174808 "2019-04-01T17:06:01Z")

</div>

Hi everyone, I wanted to clarify a couple of things about clustering: I have a cluster with 3 master+data nodes and 1 co-ordinating node (also running Kibana). I am using Logstash to balance and push data to the master+…

---

## [Can't load kibana or curl :9200 after apt upgrade](https://discuss.elastic.co/t/cant-load-kibana-or-curl-9200-after-apt-upgrade/174409)

<div class="topic-metadata">

**Author:** [@ricwhitney](https://discuss.elastic.co/u/ricwhitney)\
**Replies:** 6\
**Last updated:** [April 1, 2019, 4:49pm UTC](https://discuss.elastic.co/t/cant-load-kibana-or-curl-9200-after-apt-upgrade/174409 "2019-04-01T16:49:48Z")

</div>

yesterday I did an apt upgrade on my system and it seems to have broken everything. I can't load kibana url at least. I only just installed the elastic stack on Monday (March 25, 2019). I have today noticed that the 6…

---

## [Convert two field string into a single field geo\_point](https://discuss.elastic.co/t/convert-two-field-string-into-a-single-field-geo-point/173498)

<div class="topic-metadata">

**Author:** [@Theoooooo](https://discuss.elastic.co/u/Theoooooo)\
**Replies:** 31\
**Last updated:** [April 1, 2019, 3:25pm UTC](https://discuss.elastic.co/t/convert-two-field-string-into-a-single-field-geo-point/173498 "2019-04-01T15:25:10Z")

</div>

Hello everyone, i'm currently struggling with geo coordinates in my elasticsearch and i can't find any solution to my problem. I'm using the ingest-geoip plugin which allow me to process the incoming logs and add geolo…

---

## [Aggregations based on text fields instead of keyword fields](https://discuss.elastic.co/t/aggregations-based-on-text-fields-instead-of-keyword-fields/174781)

<div class="topic-metadata">

**Author:** [@David9](https://discuss.elastic.co/u/David9)\
**Replies:** 8\
**Last updated:** [April 1, 2019, 3:16pm UTC](https://discuss.elastic.co/t/aggregations-based-on-text-fields-instead-of-keyword-fields/174781 "2019-04-01T15:16:18Z")

</div>

Let's say we are analyzing posts to a sports forum, where the records contain a title, a body (text) field, and keyword fields, where the keywords might be the name of the sport that the post concerns. I know how to do …

---

## [Obtain downtime with time series data](https://discuss.elastic.co/t/obtain-downtime-with-time-series-data/174801)

<div class="topic-metadata">

**Author:** [@jmilot](https://discuss.elastic.co/u/jmilot)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 2:55pm UTC](https://discuss.elastic.co/t/obtain-downtime-with-time-series-data/174801 "2019-04-01T14:55:46Z")

</div>

Hello, I have time series data from Tomcat log. I need to aggregate data in order to have "Downtime". Here the downtime definition : "Downtime duration in the day in seconds . Numeric \>= 0. A downtime starts when 5 …

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

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