# Elasticsearch

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

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

**Page:** 1586

---

## [Elastic search dsl python analyze api](https://discuss.elastic.co/t/elastic-search-dsl-python-analyze-api/143783)

<div class="topic-metadata">

**Author:** [@nikitag](https://discuss.elastic.co/u/nikitag)\
**Replies:** 0\
**Last updated:** [August 10, 2018, 2:29am UTC](https://discuss.elastic.co/t/elastic-search-dsl-python-analyze-api/143783 "2018-08-10T02:29:07Z")

</div>

How to make use of default \_analyze in elastic search dsl python? My query looks like below: query = Q('regexp', field\_name = "f04((?!z).)\*") search\_obj = Search(using = conn, index = index\_name, doc\_type = type\_name).…

---

## [Exclude fields from being indexed via dynamic templates mapping](https://discuss.elastic.co/t/exclude-fields-from-being-indexed-via-dynamic-templates-mapping/142998)

<div class="topic-metadata">

**Author:** [@mrubin](https://discuss.elastic.co/u/mrubin)\
**Replies:** 8\
**Last updated:** [August 10, 2018, 3:44am UTC](https://discuss.elastic.co/t/exclude-fields-from-being-indexed-via-dynamic-templates-mapping/142998 "2018-08-10T03:44:02Z")

</div>

I have the following kind of json being indexed into ElasticSearch via Logstash: "gameUpdate" : { "someField" : "something interesting", "otherStuff" : "...", "gameScores" : { "playerID1" : { ... }, "playe…

---

## [Performance issue by using edge ngram](https://discuss.elastic.co/t/performance-issue-by-using-edge-ngram/143621)

<div class="topic-metadata">

**Author:** [@snigdharao](https://discuss.elastic.co/u/snigdharao)\
**Replies:** 7\
**Last updated:** [August 10, 2018, 1:16am UTC](https://discuss.elastic.co/t/performance-issue-by-using-edge-ngram/143621 "2018-08-10T01:16:15Z")

</div>

I am implementing autocomplete for agency name , civil service title and fiscal year fields.I have no issue with civil\_service\_title .But i see very slow performance with agency and fiscal year. I also plan to have many…

---

## [Nest v6.2.0 Self Referncing Loop](https://discuss.elastic.co/t/nest-v6-2-0-self-referncing-loop/143718)

<div class="topic-metadata">

**Author:** [@Conor\_Malcolm](https://discuss.elastic.co/u/Conor_Malcolm)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 11:40pm UTC](https://discuss.elastic.co/t/nest-v6-2-0-self-referncing-loop/143718 "2018-08-09T23:40:22Z")

</div>

I am using Nest v6.2.0 to connect to elastic search. When I am trying to add a document of type A to an index I get a Self Referencing loop error because the object of type A has a property of type B and type B has a pr…

---

## [Nest field Visualization](https://discuss.elastic.co/t/nest-field-visualization/143775)

<div class="topic-metadata">

**Author:** [@RajiReddy](https://discuss.elastic.co/u/RajiReddy)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 10:35pm UTC](https://discuss.elastic.co/t/nest-field-visualization/143775 "2018-08-09T22:35:58Z")

</div>

Hi, I have a nested field in my index as below "Auth1":\[ { "name": "abc", "role": "M" }, { "name": "xyz", :role": "N" } \] "Auth2":\[ { "name": "abn", "role": "M" }, {"name": "ed", "role": "N" } \] Here…

---

## [Archiving OLD data](https://discuss.elastic.co/t/archiving-old-data/141854)

<div class="topic-metadata">

**Author:** [@sujatharudra](https://discuss.elastic.co/u/sujatharudra)\
**Replies:** 5\
**Last updated:** [August 9, 2018, 10:35pm UTC](https://discuss.elastic.co/t/archiving-old-data/141854 "2018-08-09T22:35:14Z")

</div>

Can you help me with how to archive data with compression works in elasticsearch. My cluster have all physical boxes . I am trying to archive last month indices for querying in case we need it.

---

## [Azure Market Place - Elastic Stack for V6.3?](https://discuss.elastic.co/t/azure-market-place-elastic-stack-for-v6-3/143359)

<div class="topic-metadata">

**Author:** [@djl2](https://discuss.elastic.co/u/djl2)\
**Replies:** 3\
**Last updated:** [August 9, 2018, 10:01pm UTC](https://discuss.elastic.co/t/azure-market-place-elastic-stack-for-v6-3/143359 "2018-08-09T22:01:50Z")

</div>

Do you plan to update the Elastic Stack - (Elasticsearch, Kibana, X-Pack) for v6.3 soon? The current template only supports up to v6.2.4. Also, I tried manually updating my nodes to v6.3.1 using apt-get, but got this…

---

## [Painless: match a string](https://discuss.elastic.co/t/painless-match-a-string/143768)

<div class="topic-metadata">

**Author:** [@palace](https://discuss.elastic.co/u/palace)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 9:16pm UTC](https://discuss.elastic.co/t/painless-match-a-string/143768 "2018-08-09T21:16:43Z")

</div>

Hello, I am new to painless and wanted to know what is the proper way to match a string. For my specific example I want to perform two different manipulations to two keywords and then combine them at the end. The first…

---

## [JNA temporary directory '/tmp' is not writable](https://discuss.elastic.co/t/jna-temporary-directory-tmp-is-not-writable/143413)

<div class="topic-metadata">

**Author:** [@robegome](https://discuss.elastic.co/u/robegome)\
**Replies:** 4\
**Last updated:** [August 9, 2018, 8:21pm UTC](https://discuss.elastic.co/t/jna-temporary-directory-tmp-is-not-writable/143413 "2018-08-09T20:21:18Z")

</div>

I am train to use this YML in a Oracle Container Cloud Service: version: 2 services: \_ elasticsearch:\_ \_ image: 'docker.elastic.co/elasticsearch/elasticsearch:6.3.2'\_ \_ ports:\_ \_ - '9200:9200/tcp'\_ \_ …

---

## [Why was the "tokenizer" parameter to the synonymTokenFilter and synonymGraphTokenFilter deprecated with ES 6.x?](https://discuss.elastic.co/t/why-was-the-tokenizer-parameter-to-the-synonymtokenfilter-and-synonymgraphtokenfilter-deprecated-with-es-6-x/143763)

<div class="topic-metadata">

**Author:** [@Elizabeth\_Haubert](https://discuss.elastic.co/u/Elizabeth_Haubert)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 8:01pm UTC](https://discuss.elastic.co/t/why-was-the-tokenizer-parameter-to-the-synonymtokenfilter-and-synonymgraphtokenfilter-deprecated-with-es-6-x/143763 "2018-08-09T20:01:58Z")

</div>

Per: The Elastic Documentation the "tokenizer" parameter is officially deprecated, but from a functionality perspective, it seems to have been completely removed as the parameter is ignored in new indices. This is a pr…

---

## [Can we do index while snapshot is running?](https://discuss.elastic.co/t/can-we-do-index-while-snapshot-is-running/143740)

<div class="topic-metadata">

**Author:** [@cool\_arun](https://discuss.elastic.co/u/cool_arun)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 7:15pm UTC](https://discuss.elastic.co/t/can-we-do-index-while-snapshot-is-running/143740 "2018-08-09T19:15:02Z")

</div>

can i do index while snapshot process running for entire cluster

---

## [Restoring ML Jobs using Elasticdump](https://discuss.elastic.co/t/restoring-ml-jobs-using-elasticdump/143747)

<div class="topic-metadata">

**Author:** [@ryanrossiter](https://discuss.elastic.co/u/ryanrossiter)\
**Replies:** 3\
**Last updated:** [August 9, 2018, 7:07pm UTC](https://discuss.elastic.co/t/restoring-ml-jobs-using-elasticdump/143747 "2018-08-09T19:07:58Z")

</div>

I'm currently working on an Elasticsearch SDLC, and would like to store the machine learning jobs into version control so they can be restored, tracked, etc.. I have been doing the same with dashboards and watches using …

---

## [Aggregating Top hits results](https://discuss.elastic.co/t/aggregating-top-hits-results/143564)

<div class="topic-metadata">

**Author:** [@pri](https://discuss.elastic.co/u/pri)\
**Replies:** 2\
**Last updated:** [August 9, 2018, 7:01pm UTC](https://discuss.elastic.co/t/aggregating-top-hits-results/143564 "2018-08-09T19:01:24Z")

</div>

Hi, We have the following documents in our ES index: { component: "comp1", failures: 0, errors: 1, success: 45, eventTimestamp: "01-JAN-2018" }, { component: "comp2", failures: 1, errors: 1, success: 33, e…

---

## [Multiple types using new join datatype](https://discuss.elastic.co/t/multiple-types-using-new-join-datatype/143733)

<div class="topic-metadata">

**Author:** [@DS\_ThalesUK](https://discuss.elastic.co/u/DS_ThalesUK)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 4:40pm UTC](https://discuss.elastic.co/t/multiple-types-using-new-join-datatype/143733 "2018-08-09T16:40:54Z")

</div>

Ok, so I understand the new join datatype that allows a 'parent/child'-like relationship between different documents in an index, however it seems to me that these documents still need to all be the same type (due to the…

---

## [ES High cpu issues](https://discuss.elastic.co/t/es-high-cpu-issues/143563)

<div class="topic-metadata">

**Author:** [@naresh\_career399](https://discuss.elastic.co/u/naresh_career399)\
**Replies:** 10\
**Last updated:** [August 9, 2018, 3:28pm UTC](https://discuss.elastic.co/t/es-high-cpu-issues/143563 "2018-08-09T15:28:40Z")

</div>

We are getting high cpu alerts on ES nodes every day first I though like beacause of heap size, I changed it to 31g coz my machines are 64g but it does not resolved the cpu issues.

---

## [Security... whats changed in 6.3.2](https://discuss.elastic.co/t/security-whats-changed-in-6-3-2/143713)

<div class="topic-metadata">

**Author:** [@paulsbuxton](https://discuss.elastic.co/u/paulsbuxton)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 3:01pm UTC](https://discuss.elastic.co/t/security-whats-changed-in-6-3-2/143713 "2018-08-09T15:01:12Z")

</div>

I have previously implemented x-Pack on 6.1.x, and had a trial license, which was subsequently expired. I didn't use security based on LDAP etc... just created fixed user logins (basiic auth) with which to connect wit…

---

## [\[elasticsearch-js\] putScript example](https://discuss.elastic.co/t/elasticsearch-js-putscript-example/143721)

<div class="topic-metadata">

**Author:** [@andrhamm](https://discuss.elastic.co/u/andrhamm)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 2:38pm UTC](https://discuss.elastic.co/t/elasticsearch-js-putscript-example/143721 "2018-08-09T14:38:30Z")

</div>

Looking at the documentation for the putScript method, the main params are id, lang, and body: Having reviewed the POST \_scripts/{id} request examples, I expected the body param to be expecting the same structure ({ "…

---

## [Mapping Relationship Dynamically in ES 6.0](https://discuss.elastic.co/t/mapping-relationship-dynamically-in-es-6-0/143205)

<div class="topic-metadata">

**Author:** [@pDonS](https://discuss.elastic.co/u/pDonS)\
**Replies:** 5\
**Last updated:** [August 9, 2018, 2:17pm UTC](https://discuss.elastic.co/t/mapping-relationship-dynamically-in-es-6-0/143205 "2018-08-09T14:17:22Z")

</div>

Hi All , I am looking for best solution to map parent-child (one to many) dynamically in ElasticSearch . I tried with join query , Parent Query ID , Bucket Aggregation but wish to avoid reindex and need the flexibilit…

---

## [Score defaults to 1.0 when when passed '\*' (wildcard) in the query\_string](https://discuss.elastic.co/t/score-defaults-to-1-0-when-when-passed-wildcard-in-the-query-string/143407)

<div class="topic-metadata">

**Author:** [@Zoheb\_Khan](https://discuss.elastic.co/u/Zoheb_Khan)\
**Replies:** 3\
**Last updated:** [August 9, 2018, 1:56pm UTC](https://discuss.elastic.co/t/score-defaults-to-1-0-when-when-passed-wildcard-in-the-query-string/143407 "2018-08-09T13:56:36Z")

</div>

Hi All, I upgraded the elasticsearch version to 5+ from 1.5 and I see that below query now gives results with default score : { "query": { "bool": { "filter": { "bool": { "should": \[{ "type": { "value": "abc" } …

---

## [Node cluster](https://discuss.elastic.co/t/node-cluster/143650)

<div class="topic-metadata">

**Author:** [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Replies:** 17\
**Last updated:** [August 9, 2018, 1:54pm UTC](https://discuss.elastic.co/t/node-cluster/143650 "2018-08-09T13:54:25Z")

</div>

Hello everyone, What could happen if in my cluster, all nodes are data nodes? Do we have to have, within the cluster, a master node to manage the other nodes? "nodes" : { "count" : { "total" : 4, "mast…

---

## [Error in adding Nested objects using Spark on Es-Index](https://discuss.elastic.co/t/error-in-adding-nested-objects-using-spark-on-es-index/143694)

<div class="topic-metadata">

**Author:** [@TANISHQ\_BATRA](https://discuss.elastic.co/u/TANISHQ_BATRA)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 12:56pm UTC](https://discuss.elastic.co/t/error-in-adding-nested-objects-using-spark-on-es-index/143694 "2018-08-09T12:56:02Z")

</div>

Caused by: java.lang.ClassCastException: org.apache.spark.sql.catalyst.expressions.GenericRowWithSchema cannot be cast to scala.Tuple2 Details: Es version-6.3 Incoming object example { "note": { "a":"1", "b':"2" …

---

## [Getting failed to send join request to master](https://discuss.elastic.co/t/getting-failed-to-send-join-request-to-master/143140)

<div class="topic-metadata">

**Author:** [@dhananjay88](https://discuss.elastic.co/u/dhananjay88)\
**Replies:** 12\
**Last updated:** [August 9, 2018, 12:41pm UTC](https://discuss.elastic.co/t/getting-failed-to-send-join-request-to-master/143140 "2018-08-09T12:41:36Z")

</div>

Hi All, I have installed elasticsearch on three machines \["10.135.144.XX","10.182.197.XX","10.182.197.XX"\] where 10.135.144.XX is master node and other 197.XX are date nodes. Whenever I am trying to make elasticsearch…

---

## [How Create a machine learning job depends a particular value in a field?](https://discuss.elastic.co/t/how-create-a-machine-learning-job-depends-a-particular-value-in-a-field/142185)

<div class="topic-metadata">

**Author:** [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Replies:** 3\
**Last updated:** [August 9, 2018, 11:20am UTC](https://discuss.elastic.co/t/how-create-a-machine-learning-job-depends-a-particular-value-in-a-field/142185 "2018-08-09T11:20:08Z")

</div>

Hi All , In my log there is a filed named "Log\_Type" . This field had multiple values. It may be consist INFORMATION , ERROR or DEBUG etc. I want create a ML job with respect to the distinct count of ERROR in filed "L…

---

## [Very Slow query on ElasticSearch](https://discuss.elastic.co/t/very-slow-query-on-elasticsearch/143307)

<div class="topic-metadata">

**Author:** [@magorbe](https://discuss.elastic.co/u/magorbe)\
**Replies:** 0\
**Last updated:** [August 7, 2018, 11:18am UTC](https://discuss.elastic.co/t/very-slow-query-on-elasticsearch/143307 "2018-08-07T11:18:38Z")

</div>

I have the next Elastic query : { "\_source": {"includes": \["sample.id\*"\]}, "query": { "filtered": { "query": { "match\_all": {} }, "filter": { "nested": { "path": "sample.covered\_re…

---

## [Nested Object update in elasticsearch using spark](https://discuss.elastic.co/t/nested-object-update-in-elasticsearch-using-spark/143670)

<div class="topic-metadata">

**Author:** [@darsan55](https://discuss.elastic.co/u/darsan55)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 10:20am UTC](https://discuss.elastic.co/t/nested-object-update-in-elasticsearch-using-spark/143670 "2018-08-09T10:20:20Z")

</div>

Hi Anyone knows how to update a nested object in elastic search using spark. Either using script or anything else. Regards, Darsan

---

## [Equivocations and stop words](https://discuss.elastic.co/t/equivocations-and-stop-words/143389)

<div class="topic-metadata">

**Author:** [@htsr](https://discuss.elastic.co/u/htsr)\
**Replies:** 0\
**Last updated:** [August 7, 2018, 7:45pm UTC](https://discuss.elastic.co/t/equivocations-and-stop-words/143389 "2018-08-07T19:45:26Z")

</div>

What is the recommended way to configure the analysis process in order to avoid that a stop word filter swallows equivocations? For example the German language knows the conjuction "oder" (English "or") and the noun "O…

---

## [Add data node to existing cluster with 3 masters and 2 other data nodes](https://discuss.elastic.co/t/add-data-node-to-existing-cluster-with-3-masters-and-2-other-data-nodes/143623)

<div class="topic-metadata">

**Author:** [@abelworld](https://discuss.elastic.co/u/abelworld)\
**Replies:** 5\
**Last updated:** [August 9, 2018, 9:35am UTC](https://discuss.elastic.co/t/add-data-node-to-existing-cluster-with-3-masters-and-2-other-data-nodes/143623 "2018-08-09T09:35:27Z")

</div>

Hi, I have a ES cluster that had 5 nodes, 3 masters and 2 data nodes, all of them version 6.1.1. All was working well, but we wanted to add a third data node. We did add it and it joined the cluster and everything seeme…

---

## [How to use \`top\_hits\` hits as input of another elasticsearch pipeline aggregation](https://discuss.elastic.co/t/how-to-use-top-hits-hits-as-input-of-another-elasticsearch-pipeline-aggregation/143660)

<div class="topic-metadata">

**Author:** [@letrunghieu](https://discuss.elastic.co/u/letrunghieu)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 9:08am UTC](https://discuss.elastic.co/t/how-to-use-top-hits-hits-as-input-of-another-elasticsearch-pipeline-aggregation/143660 "2018-08-09T09:08:39Z")

</div>

I tried to process my data as below: group documents by its country field with terms aggregation. in each bucket, I select the document with the highest price value by using top\_hits aggregation. Now, I want to sort a…

---

## [ModelFieldNotMappedError](https://discuss.elastic.co/t/modelfieldnotmappederror/143658)

<div class="topic-metadata">

**Author:** [@mhasan09](https://discuss.elastic.co/u/mhasan09)\
**Replies:** 0\
**Last updated:** [August 9, 2018, 9:03am UTC](https://discuss.elastic.co/t/modelfieldnotmappederror/143658 "2018-08-09T09:03:12Z")

</div>

Currently I'm getting this kind of error in Django ElasticSearch ! django\_elasticsearch\_dsl.exceptions.ModelFieldNotMappedError: Cannot convert model field price to an Elasticsearch field! Elasticsearch version : 6.1.0 …

---

## [Build Plugin ElasticSearch have error when UnitTest](https://discuss.elastic.co/t/build-plugin-elasticsearch-have-error-when-unittest/143639)

<div class="topic-metadata">

**Author:** [@trantrungtruc05](https://discuss.elastic.co/u/trantrungtruc05)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 8:54am UTC](https://discuss.elastic.co/t/build-plugin-elasticsearch-have-error-when-unittest/143639 "2018-08-09T08:54:12Z")

</div>

Hi, I writing plugin Elasticsearch by Java and build by maven . But when I run as Maven Test it has error below: ERROR 0.00s | VietnameseAnalysisIntegrationTest (suite) \<\<\< Throwable #1: java.lang.RuntimeException:…

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

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