# Elasticsearch

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

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

**Page:** 1334

---

## [Query Parent and Child at the same time](https://discuss.elastic.co/t/query-parent-and-child-at-the-same-time/176558)

<div class="topic-metadata">

**Author:** [@DC\_Adams](https://discuss.elastic.co/u/DC_Adams)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 6:00pm UTC](https://discuss.elastic.co/t/query-parent-and-child-at-the-same-time/176558 "2019-04-12T18:00:25Z")

</div>

Hello, I have a parent document "lead" with a child document "lead\_contact". I am trying to query a "name" field on the parent while using the has\_child query at the same time to search through the fields "name", "tele…

---

## [Setting Varying Non-Relative Watcher Timeranges?](https://discuss.elastic.co/t/setting-varying-non-relative-watcher-timeranges/176489)

<div class="topic-metadata">

**Author:** [@Kenneth\_M\_Kolano](https://discuss.elastic.co/u/Kenneth_M_Kolano)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 5:56pm UTC](https://discuss.elastic.co/t/setting-varying-non-relative-watcher-timeranges/176489 "2019-04-12T17:56:33Z")

</div>

I'm hoping to set up a Watcher to monitor an index and provide a report when results appear. I initially figured I could use the "interval" schedule along with a search with some timestamp checks... "@timestamp": { …

---

## [MapperParsingException\[Failed to parse mapping \[product\]: No handler for type \[text\] . When I Index Add on elasticsearch](https://discuss.elastic.co/t/mapperparsingexception-failed-to-parse-mapping-product-no-handler-for-type-text-when-i-index-add-on-elasticsearch/176581)

<div class="topic-metadata">

**Author:** [@junhyuk](https://discuss.elastic.co/u/junhyuk)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 5:53pm UTC](https://discuss.elastic.co/t/mapperparsingexception-failed-to-parse-mapping-product-no-handler-for-type-text-when-i-index-add-on-elasticsearch/176581 "2019-04-12T17:53:48Z")

</div>

Hi I have some issue. My server is a lot of module connected, so PHP version upgrade 5.5 to 7.1 have problem. (My PHP version is 5.5.18 , CentOs6, Java 1.8) I reinstall elasticsearch 2.4.6 then I show this error fa…

---

## [The search API is expecting the max\_concurrent\_shard\_requests parameter](https://discuss.elastic.co/t/the-search-api-is-expecting-the-max-concurrent-shard-requests-parameter/176675)

<div class="topic-metadata">

**Author:** [@tylerssn](https://discuss.elastic.co/u/tylerssn)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 5:36pm UTC](https://discuss.elastic.co/t/the-search-api-is-expecting-the-max-concurrent-shard-requests-parameter/176675 "2019-04-12T17:36:45Z")

</div>

I'm using the bitnami/elasticsearch:6.5.15 image and connecting to it via the Magento 2 framework. When making a search request I am presented with the error: maxConcurrentShardRequests must be \>= 1 I have a single E…

---

## [Index from pandas to Elastic Search Using BULK and Parallel BULK](https://discuss.elastic.co/t/index-from-pandas-to-elastic-search-using-bulk-and-parallel-bulk/176501)

<div class="topic-metadata">

**Author:** [@tanujsawant123](https://discuss.elastic.co/u/tanujsawant123)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 4:54pm UTC](https://discuss.elastic.co/t/index-from-pandas-to-elastic-search-using-bulk-and-parallel-bulk/176501 "2019-04-12T16:54:03Z")

</div>

BELOW is my code and mapping to create a new index and load data from pandas to elastic. I have around 400K records with the potential to increase to 2 Millions. from elasticsearch.helpers import bulk , streaming\_bulk,…

---

## [Elastic Load Balancer as Target Host](https://discuss.elastic.co/t/elastic-load-balancer-as-target-host/176328)

<div class="topic-metadata">

**Author:** [@rocksnslopes](https://discuss.elastic.co/u/rocksnslopes)\
**Replies:** 5\
**Last updated:** [April 12, 2019, 4:27pm UTC](https://discuss.elastic.co/t/elastic-load-balancer-as-target-host/176328 "2019-04-12T16:27:59Z")

</div>

Hi - I have various scenarios I would like to benchmark using different instance classes with varying node counts. It would be rather cumbersome to specify each node's IP address in the target-hosts param. I instead w…

---

## [Add back \_primary\* search preferences](https://discuss.elastic.co/t/add-back-primary-search-preferences/176598)

<div class="topic-metadata">

**Author:** [@Andy\_Wick](https://discuss.elastic.co/u/Andy_Wick)\
**Replies:** 10\
**Last updated:** [April 12, 2019, 4:05pm UTC](https://discuss.elastic.co/t/add-back-primary-search-preferences/176598 "2019-04-12T16:05:04Z")

</div>

We run large time based clusters with 1 primary and 1 replica on each node. We liked the primary\* search options so that no extra heap or disk cache is used when searching, only the primary is loaded. With out the primar…

---

## [Migrating from ES 1.5 to ES 5](https://discuss.elastic.co/t/migrating-from-es-1-5-to-es-5/176665)

<div class="topic-metadata">

**Author:** [@pullmana8](https://discuss.elastic.co/u/pullmana8)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 3:57pm UTC](https://discuss.elastic.co/t/migrating-from-es-1-5-to-es-5/176665 "2019-04-12T15:57:14Z")

</div>

I am working with an infrastructure team for Gentoo, and I have a quick question about migrating ES 1.5 or 2.0 I believe, to ES 5 for now. It looks like there are major differences with ES5 and ES6. I use the Ruby client…

---

## [Ideas to avoid double indexing when using rollover indice](https://discuss.elastic.co/t/ideas-to-avoid-double-indexing-when-using-rollover-indice/176663)

<div class="topic-metadata">

**Author:** [@Bao\_Tran1](https://discuss.elastic.co/u/Bao_Tran1)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 3:38pm UTC](https://discuss.elastic.co/t/ideas-to-avoid-double-indexing-when-using-rollover-indice/176663 "2019-04-12T15:38:37Z")

</div>

Hi there, I am testing the rollover feature to address our big indice issue. I can see the issue of double indexing. Basically, our app sends bulk request to cluster. The app would retry the bulk request if any errors …

---

## [Trying to implement an "impossible travel" query](https://discuss.elastic.co/t/trying-to-implement-an-impossible-travel-query/172607)

<div class="topic-metadata">

**Author:** [@jbrowe](https://discuss.elastic.co/u/jbrowe)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 3:03pm UTC](https://discuss.elastic.co/t/trying-to-implement-an-impossible-travel-query/172607 "2019-04-12T15:03:07Z")

</div>

I have an index with geo-tagged login records. Each document includes user, time and location for authentications. I want to find all instances where successive logins are impossible. The location and time of the latest …

---

## [QueryBuilders.hasParentQuery() deprecated in Es v5.6.2](https://discuss.elastic.co/t/querybuilders-hasparentquery-deprecated-in-es-v5-6-2/176642)

<div class="topic-metadata">

**Author:** [@utkarsh](https://discuss.elastic.co/u/utkarsh)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 2:58pm UTC](https://discuss.elastic.co/t/querybuilders-hasparentquery-deprecated-in-es-v5-6-2/176642 "2019-04-12T14:58:07Z")

</div>

I am upgrading the es to v5.6.2 from v.2.3.3, and I am facing the error cannot find symbol: method QueryBuilders.hasParentQuery() as it has been deprecated in v5.6.2 Below is the line of code where error occurs- QueryB…

---

## [QueryBuilders.nestedQuery() updated in v5.6.2](https://discuss.elastic.co/t/querybuilders-nestedquery-updated-in-v5-6-2/176614)

<div class="topic-metadata">

**Author:** [@utkarsh](https://discuss.elastic.co/u/utkarsh)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 2:01pm UTC](https://discuss.elastic.co/t/querybuilders-nestedquery-updated-in-v5-6-2/176614 "2019-04-12T14:01:41Z")

</div>

I am upgrading the es to v5.6.2 from v2.3.3. As per the new api in es v5.6, a new parameter of type ScoreMode is expected. In v2.3.3 the method signature used to be nestedQuery(String,QueryBuilder) which has changed to …

---

## [Install curator, without root or internet access](https://discuss.elastic.co/t/install-curator-without-root-or-internet-access/176418)

<div class="topic-metadata">

**Author:** [@Parvatayya\_Malimath](https://discuss.elastic.co/u/Parvatayya_Malimath)\
**Replies:** 4\
**Last updated:** [April 12, 2019, 1:46pm UTC](https://discuss.elastic.co/t/install-curator-without-root-or-internet-access/176418 "2019-04-12T13:46:27Z")

</div>

Hi I have no internet access or root/sudo access on a vm and i badly need to have the curator for managing the indices. please help me with a tar ball (not the source code) or let me know a work around to keep the inde…

---

## [Access from repository on 2 node](https://discuss.elastic.co/t/access-from-repository-on-2-node/176622)

<div class="topic-metadata">

**Author:** [@Nikolay\_Shalnev](https://discuss.elastic.co/u/Nikolay_Shalnev)\
**Replies:** 3\
**Last updated:** [April 12, 2019, 1:46pm UTC](https://discuss.elastic.co/t/access-from-repository-on-2-node/176622 "2019-04-12T13:46:09Z")

</div>

Hi! We have 2 nodes, but there is no common way. When to take a snapshot through curator\_cli: 2019-04-12 14:53:04,899 CRITICAL Failed to complete action: snapshot. \<class 'curator.exceptions.ActionError'\>: Failed to…

---

## [ES Kotlin Wrapper Client now supports ES 7.0.0](https://discuss.elastic.co/t/es-kotlin-wrapper-client-now-supports-es-7-0-0/176631)

<div class="topic-metadata">

**Author:** [@jillesvangurp](https://discuss.elastic.co/u/jillesvangurp)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 1:19pm UTC](https://discuss.elastic.co/t/es-kotlin-wrapper-client-now-supports-es-7-0-0/176631 "2019-04-12T13:19:13Z")

</div>

V0.10.0 of my Kotlin client for elasticsearch has been updated for Elasticsearch 7.0.0

---

## [How to delete multiple documents by id in specific txt file or json using CURL command](https://discuss.elastic.co/t/how-to-delete-multiple-documents-by-id-in-specific-txt-file-or-json-using-curl-command/176601)

<div class="topic-metadata">

**Author:** [@ali1](https://discuss.elastic.co/u/ali1)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 12:45pm UTC](https://discuss.elastic.co/t/how-to-delete-multiple-documents-by-id-in-specific-txt-file-or-json-using-curl-command/176601 "2019-04-12T12:45:01Z")

</div>

Hello, i have a txt file that contains some documents id and i want to execute a curl XDELETE to delete all this documents from my index at once. my txt file contains ids like this : 12 24 33 48 do you have any su…

---

## [Dynamic template ignoring text-only mapping](https://discuss.elastic.co/t/dynamic-template-ignoring-text-only-mapping/176599)

<div class="topic-metadata">

**Author:** [@WDK](https://discuss.elastic.co/u/WDK)\
**Replies:** 3\
**Last updated:** [April 12, 2019, 11:26am UTC](https://discuss.elastic.co/t/dynamic-template-ignoring-text-only-mapping/176599 "2019-04-12T11:26:28Z")

</div>

I'm constructing a dynamic template that removes the keyword mapping for values in Elasticsearch 7.0.0. My template: mappings": { "dynamic\_templates": \[ { "string\_to\_text": { "mapping": { …

---

## [Determining Size of A Document](https://discuss.elastic.co/t/determining-size-of-a-document/176594)

<div class="topic-metadata">

**Author:** [@Jasonespo](https://discuss.elastic.co/u/Jasonespo)\
**Replies:** 5\
**Last updated:** [April 12, 2019, 10:19am UTC](https://discuss.elastic.co/t/determining-size-of-a-document/176594 "2019-04-12T10:19:13Z")

</div>

Hi all, How am I supposed to determine the size of an individual document? Can I use dev tools in some way to query the size of a document with a specific \_id? I know I can get the size of the entire index with a: GE…

---

## [Re-index after keywords file changed](https://discuss.elastic.co/t/re-index-after-keywords-file-changed/176574)

<div class="topic-metadata">

**Author:** [@maryam\_abdullah](https://discuss.elastic.co/u/maryam_abdullah)\
**Replies:** 6\
**Last updated:** [April 12, 2019, 10:07am UTC](https://discuss.elastic.co/t/re-index-after-keywords-file-changed/176574 "2019-04-12T10:07:43Z")

</div>

Hi, Do I need to apply re-indexing if I update the keywords file and I need it to consider the updated file? Best, Maryam

---

## [Elasticsearch upgrade guide](https://discuss.elastic.co/t/elasticsearch-upgrade-guide/176211)

<div class="topic-metadata">

**Author:** [@avinash\_07](https://discuss.elastic.co/u/avinash_07)\
**Replies:** 5\
**Last updated:** [April 12, 2019, 9:52am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-guide/176211 "2019-04-12T09:52:50Z")

</div>

I see that there's an interactive ES guide for upgrading ES. However, it is only for version 6.3. Is there a similar ES interactive guide for upgrading to 6.7.1 from 6.1.2 Products used - ES, Kibana, Logstash One more …

---

## [Parent-Child in ES 6.0](https://discuss.elastic.co/t/parent-child-in-es-6-0/176234)

<div class="topic-metadata">

**Author:** [@Dibyakanta](https://discuss.elastic.co/u/Dibyakanta)\
**Replies:** 4\
**Last updated:** [April 12, 2019, 9:51am UTC](https://discuss.elastic.co/t/parent-child-in-es-6-0/176234 "2019-04-12T09:51:59Z")

</div>

Hi, I am using ElasticSearch 5.6.10 and TransportClient for JAVA. I want to migrate it to ES 6.3. To add any child documents, I am using the below code: bulkProcessor.add((new IndexRequest(indexName, typeName)).sourc…

---

## [Terms query not working with nested documents](https://discuss.elastic.co/t/terms-query-not-working-with-nested-documents/175126)

<div class="topic-metadata">

**Author:** [@Harsha\_Yerasi](https://discuss.elastic.co/u/Harsha_Yerasi)\
**Replies:** 1\
**Last updated:** [April 12, 2019, 9:49am UTC](https://discuss.elastic.co/t/terms-query-not-working-with-nested-documents/175126 "2019-04-12T09:49:25Z")

</div>

Hi, I am using JAVA API to implement elasticsearch. I have a nested document in my index. I am trying to perform a terms query on that nested document. But It doesn't give any results. When I googled it I found the be…

---

## [How to write Multiple fuzziness Query in Elastic](https://discuss.elastic.co/t/how-to-write-multiple-fuzziness-query-in-elastic/176562)

<div class="topic-metadata">

**Author:** [@samyo](https://discuss.elastic.co/u/samyo)\
**Replies:** 9\
**Last updated:** [April 12, 2019, 9:47am UTC](https://discuss.elastic.co/t/how-to-write-multiple-fuzziness-query-in-elastic/176562 "2019-04-12T09:47:52Z")

</div>

Hello Folks, i have this text in a Field "word" Like bellow, "word": """Here is my text , in the future , we will all be able to have a nice life hämaton or whatever subdural or what ever bltng ot to have cronish""" i…

---

## [Watcher with dynamic filter](https://discuss.elastic.co/t/watcher-with-dynamic-filter/175833)

<div class="topic-metadata">

**Author:** [@Jesus\_Rodrigo](https://discuss.elastic.co/u/Jesus_Rodrigo)\
**Replies:** 4\
**Last updated:** [April 12, 2019, 9:35am UTC](https://discuss.elastic.co/t/watcher-with-dynamic-filter/175833 "2019-04-12T09:35:34Z")

</div>

Hi, I'm trying to make a Watcher that compares if a number field of a document deviates from the average a percentage. The mapping the following: { "Datapoint" : "Taller10#Montaje#Skillets#M111#RODILLOS\_LONG#M111R", …

---

## [How to audit functionality in elasticsearch](https://discuss.elastic.co/t/how-to-audit-functionality-in-elasticsearch/176595)

<div class="topic-metadata">

**Author:** [@srinivas1](https://discuss.elastic.co/u/srinivas1)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 9:33am UTC](https://discuss.elastic.co/t/how-to-audit-functionality-in-elasticsearch/176595 "2019-04-12T09:33:13Z")

</div>

Hi, i want to do audit functionality in elastic search. generally the same job will do in SQL with triggers. example: suppose a new document got created in index(primary) and on successful transaction document in prim…

---

## [Is it possible to return only hits with certain named query in matched\_queries array if that query hitted at least one time?](https://discuss.elastic.co/t/is-it-possible-to-return-only-hits-with-certain-named-query-in-matched-queries-array-if-that-query-hitted-at-least-one-time/176589)

<div class="topic-metadata">

**Author:** [@andy\_v](https://discuss.elastic.co/u/andy_v)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 9:14am UTC](https://discuss.elastic.co/t/is-it-possible-to-return-only-hits-with-certain-named-query-in-matched-queries-array-if-that-query-hitted-at-least-one-time/176589 "2019-04-12T09:14:08Z")

</div>

Is it possible to make a search with multiple named queries (let's say named q1\_important,q2,q3 etc and all are in bool query's should array) and if there is at least one hit for exactly q1\_important query, then return o…

---

## [Multiple Document Evaluation](https://discuss.elastic.co/t/multiple-document-evaluation/176545)

<div class="topic-metadata">

**Author:** [@tanmays](https://discuss.elastic.co/u/tanmays)\
**Replies:** 6\
**Last updated:** [April 12, 2019, 9:21am UTC](https://discuss.elastic.co/t/multiple-document-evaluation/176545 "2019-04-12T09:21:48Z")

</div>

I want to get the sum of particular value coming in each document and want to get the overall result. Is this possible using painless? If not, is there any alternative for the same?

---

## [When to use mmapfs and niofs](https://discuss.elastic.co/t/when-to-use-mmapfs-and-niofs/176536)

<div class="topic-metadata">

**Author:** [@dbakti7](https://discuss.elastic.co/u/dbakti7)\
**Replies:** 8\
**Last updated:** [April 12, 2019, 8:54am UTC](https://discuss.elastic.co/t/when-to-use-mmapfs-and-niofs/176536 "2019-04-12T08:54:46Z")

</div>

I'm trying to benchmark search performance (Elasticsearch 6.0.1) on different FS mode. Index size is around 5GB each (10 indexes in total). Search is done by doing the following: Open Index1 --\> Search on Index1 --\> O…

---

## [FileBeat Connection error to elastic search](https://discuss.elastic.co/t/filebeat-connection-error-to-elastic-search/176538)

<div class="topic-metadata">

**Author:** [@KK23](https://discuss.elastic.co/u/KK23)\
**Replies:** 12\
**Last updated:** [April 12, 2019, 8:38am UTC](https://discuss.elastic.co/t/filebeat-connection-error-to-elastic-search/176538 "2019-04-12T08:38:36Z")

</div>

Getting below errors in FileBeat after starting filebeat ERROR pipeline/output.go:100 Failed to connect to backoff(elasticsearch(http://localhost:9200)): Get http://localhost:9200: EOF Filebeat config file has this …

---

## [Issues using @elastic/elasticsearch \[ElasticSearch Version 7.0.0\]](https://discuss.elastic.co/t/issues-using-elastic-elasticsearch-elasticsearch-version-7-0-0/176576)

<div class="topic-metadata">

**Author:** [@Matteo\_Pietro\_Peru](https://discuss.elastic.co/u/Matteo_Pietro_Peru)\
**Replies:** 0\
**Last updated:** [April 12, 2019, 8:33am UTC](https://discuss.elastic.co/t/issues-using-elastic-elasticsearch-elasticsearch-version-7-0-0/176576 "2019-04-12T08:33:06Z")

</div>

Hi, i'm trying to use the es client with Es6 + React, for connect my app into the elastic cloud using the code from the examples: import { Client } from '@elastic/elasticsearch'; const client = new Client({ cloud: { id:…

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

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