# Elasticsearch

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

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

**Page:** 1342

---

## [How many search threads used for single search query](https://discuss.elastic.co/t/how-many-search-threads-used-for-single-search-query/175573)

<div class="topic-metadata">

**Author:** [@Sekhar1](https://discuss.elastic.co/u/Sekhar1)\
**Replies:** 3\
**Last updated:** [April 6, 2019, 10:57am UTC](https://discuss.elastic.co/t/how-many-search-threads-used-for-single-search-query/175573 "2019-04-06T10:57:20Z")

</div>

Hi Team, ElasticSearch version: 6.0.0 No of nodes : 3 Operating System : CentOS 7 Client : Low Level Rest Client of java No of Index : 3 No of Shards per Index : 3 No of Replicas for Shard : 1 Each machine capaci…

---

## [Remove Numbers from values in the array using painless scripting](https://discuss.elastic.co/t/remove-numbers-from-values-in-the-array-using-painless-scripting/175673)

<div class="topic-metadata">

**Author:** [@Amol\_Gaitonde](https://discuss.elastic.co/u/Amol_Gaitonde)\
**Replies:** 0\
**Last updated:** [April 6, 2019, 10:46am UTC](https://discuss.elastic.co/t/remove-numbers-from-values-in-the-array-using-painless-scripting/175673 "2019-04-06T10:46:49Z")

</div>

I want the numbers, dots and dashes to be removed from all the elements of an array field using painless scripting and the output should be an array. Can I know how to do it? Below is the input "prod\_names" : \[ "evip-…

---

## [Match\_phrase\_prefix NOT working as expected for other languages](https://discuss.elastic.co/t/match-phrase-prefix-not-working-as-expected-for-other-languages/175672)

<div class="topic-metadata">

**Author:** [@kasiselvamk](https://discuss.elastic.co/u/kasiselvamk)\
**Replies:** 0\
**Last updated:** [April 6, 2019, 9:58am UTC](https://discuss.elastic.co/t/match-phrase-prefix-not-working-as-expected-for-other-languages/175672 "2019-04-06T09:58:47Z")

</div>

Elasticsearch version ( bin/elasticsearch --version ): latest version Plugins installed : \[NA\] JVM version ( java -version ):1.8 OS version ( uname -a if on a Unix-like system): ubuntu-latest Description of the…

---

## [Dynamic indexing in spark structured streamin](https://discuss.elastic.co/t/dynamic-indexing-in-spark-structured-streamin/174717)

<div class="topic-metadata">

**Author:** [@Fahad\_Khan](https://discuss.elastic.co/u/Fahad_Khan)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 9:31pm UTC](https://discuss.elastic.co/t/dynamic-indexing-in-spark-structured-streamin/174717 "2019-04-05T21:31:00Z")

</div>

I'm using spark structured streaming to read so many files recursively and writing them into elasticsearch, I want to know is there a way to create index at runtime according to the file name spark reading from folder. s…

---

## [Elasticsearch-spark - EsHadoopIllegalStateException - field position](https://discuss.elastic.co/t/elasticsearch-spark-eshadoopillegalstateexception-field-position/171576)

<div class="topic-metadata">

**Author:** [@bytemedwb](https://discuss.elastic.co/u/bytemedwb)\
**Replies:** 3\
**Last updated:** [April 5, 2019, 8:45pm UTC](https://discuss.elastic.co/t/elasticsearch-spark-eshadoopillegalstateexception-field-position/171576 "2019-04-05T20:45:15Z")

</div>

Hello, I have a question the is bother me. I have used the Elastic Spark to create a dataframe for one of my indexes. The schema prints fine (see below). However whenever I try to do anything with the dataframe I get…

---

## [Hdfs repository ConnectionRefused](https://discuss.elastic.co/t/hdfs-repository-connectionrefused/173750)

<div class="topic-metadata">

**Author:** [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 8:39pm UTC](https://discuss.elastic.co/t/hdfs-repository-connectionrefused/173750 "2019-04-05T20:39:02Z")

</div>

When I create hdfs repository,throws a exception.As follows:

---

## [What is the best way to collect yarn application logs from hdfs?](https://discuss.elastic.co/t/what-is-the-best-way-to-collect-yarn-application-logs-from-hdfs/173641)

<div class="topic-metadata">

**Author:** [@Drahkar](https://discuss.elastic.co/u/Drahkar)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 8:37pm UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-collect-yarn-application-logs-from-hdfs/173641 "2019-04-05T20:37:43Z")

</div>

We have a dynamic infrastructure for Hadoop, which means the yarn application logs only exist for a limited period of time. Currently we are using Splunk HadoopConnect to ingest those logs as a live feed into Splunk. Ho…

---

## [Azure Repo settings issue in 7.0 upgrade](https://discuss.elastic.co/t/azure-repo-settings-issue-in-7-0-upgrade/175456)

<div class="topic-metadata">

**Author:** [@Larry\_Wapnitsky](https://discuss.elastic.co/u/Larry_Wapnitsky)\
**Replies:** 9\
**Last updated:** [April 5, 2019, 7:42pm UTC](https://discuss.elastic.co/t/azure-repo-settings-issue-in-7-0-upgrade/175456 "2019-04-05T19:42:18Z")

</div>

I'm running Elastic Stack 6.7.1 and per Kibana's 7.0 Upgrade Assistant ( Management -\> 7.0 Upgrade Assistant ), I'm being told that Azure Repository settings have changed, but my config files have none of the specific …

---

## [Failed to close the XContentBuilder](https://discuss.elastic.co/t/failed-to-close-the-xcontentbuilder/175492)

<div class="topic-metadata">

**Author:** [@EliuFlorez](https://discuss.elastic.co/u/EliuFlorez)\
**Replies:** 10\
**Last updated:** [April 5, 2019, 5:10pm UTC](https://discuss.elastic.co/t/failed-to-close-the-xcontentbuilder/175492 "2019-04-05T17:10:44Z")

</div>

Hi guys, I'm presenting an error to install the plugin or make a query. Code: @Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(simple…

---

## [Sort nested fields (not parent doc) by nested field](https://discuss.elastic.co/t/sort-nested-fields-not-parent-doc-by-nested-field/175635)

<div class="topic-metadata">

**Author:** [@jdpark](https://discuss.elastic.co/u/jdpark)\
**Replies:** 0\
**Last updated:** [April 5, 2019, 4:41pm UTC](https://discuss.elastic.co/t/sort-nested-fields-not-parent-doc-by-nested-field/175635 "2019-04-05T16:41:37Z")

</div>

Hello, I'm trying to get a sorted list of nested fields. https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html talks about how to sort the parent docs by nested field. E.g., the foll…

---

## [Simple\_query\_string and multi terms synonyms](https://discuss.elastic.co/t/simple-query-string-and-multi-terms-synonyms/174780)

<div class="topic-metadata">

**Author:** [@Fabrizio\_Fortino](https://discuss.elastic.co/u/Fabrizio_Fortino)\
**Replies:** 8\
**Last updated:** [April 5, 2019, 4:45pm UTC](https://discuss.elastic.co/t/simple-query-string-and-multi-terms-synonyms/174780 "2019-04-05T16:45:13Z")

</div>

I have a field with the following search\_analyzer: "name\_search\_en" : { "filter" : \[ "english\_possessive\_stemmer", "lowercase", "name\_synonyms\_en", "english\_stop", "english\_stemmer", "as…

---

## [Geo future for Elasticsearch](https://discuss.elastic.co/t/geo-future-for-elasticsearch/175133)

<div class="topic-metadata">

**Author:** [@gemo1011](https://discuss.elastic.co/u/gemo1011)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 3:58pm UTC](https://discuss.elastic.co/t/geo-future-for-elasticsearch/175133 "2019-04-05T15:58:33Z")

</div>

Hello, I'm testing the usage of Elasticsearch for geo applications. And I'm interested in the future plans for geo components in Elasticsearch. I found this presentation where the change to a bkd-index for geoshapes i…

---

## [What is the recommended shard, replica count for a index with respect to resiliency of the cluster in a 6 data nodes cluster?](https://discuss.elastic.co/t/what-is-the-recommended-shard-replica-count-for-a-index-with-respect-to-resiliency-of-the-cluster-in-a-6-data-nodes-cluster/174397)

<div class="topic-metadata">

**Author:** [@rajkumar.m](https://discuss.elastic.co/u/rajkumar.m)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 3:52pm UTC](https://discuss.elastic.co/t/what-is-the-recommended-shard-replica-count-for-a-index-with-respect-to-resiliency-of-the-cluster-in-a-6-data-nodes-cluster/174397 "2019-04-05T15:52:01Z")

</div>

I have ELK 5 cluster with 6 data nodes, Please let me know what is the recommended shard & replica count for a index with respect to resiliency of the cluster? how can i make sure the number of Primary shards & replica…

---

## [Transaction support in ES](https://discuss.elastic.co/t/transaction-support-in-es/175621)

<div class="topic-metadata">

**Author:** [@valsaraj\_pv](https://discuss.elastic.co/u/valsaraj_pv)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 3:43pm UTC](https://discuss.elastic.co/t/transaction-support-in-es/175621 "2019-04-05T15:43:24Z")

</div>

Does ES support transactions commit and rollback. For eg: when a row is saved into a table which is in a transaction, we need to add/update the subset of that in the index for real time search. In case any error happens …

---

## [Unable to start elasticsearch after creating cert for http communication](https://discuss.elastic.co/t/unable-to-start-elasticsearch-after-creating-cert-for-http-communication/175037)

<div class="topic-metadata">

**Author:** [@Gruido](https://discuss.elastic.co/u/Gruido)\
**Replies:** 14\
**Last updated:** [April 5, 2019, 3:28pm UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-after-creating-cert-for-http-communication/175037 "2019-04-05T15:28:35Z")

</div>

Hello, I'm a noob at ES and learning from different angles in troubleshooting ES. My error here are two but first, is that I've install elasticsearch 6.7 deb. version on ubuntu 18.04. The second is xpack security error …

---

## [UpdatebyQuery](https://discuss.elastic.co/t/updatebyquery/175623)

<div class="topic-metadata">

**Author:** [@vmormino](https://discuss.elastic.co/u/vmormino)\
**Replies:** 0\
**Last updated:** [April 5, 2019, 3:22pm UTC](https://discuss.elastic.co/t/updatebyquery/175623 "2019-04-05T15:22:04Z")

</div>

Hy i do a massive update of field in my document i use this istruction, but i recive the error: Unexpected character encountered while parsing value: \<. Path '', line 0, position 0." How can i do , please help me than…

---

## [Recommendations for performance tuning of a server with 256G of RAM](https://discuss.elastic.co/t/recommendations-for-performance-tuning-of-a-server-with-256g-of-ram/175616)

<div class="topic-metadata">

**Author:** [@mantis](https://discuss.elastic.co/u/mantis)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 3:17pm UTC](https://discuss.elastic.co/t/recommendations-for-performance-tuning-of-a-server-with-256g-of-ram/175616 "2019-04-05T15:17:22Z")

</div>

Hello, I have set up an ELK server which is running elasticsearch, logstash and Kibana (standalone), no other servers or replicas involved. My server has 256 of RAM, can you please indicate the correct values to define…

---

## [Why I do not receive after\_key from my composite aggregation query?](https://discuss.elastic.co/t/why-i-do-not-receive-after-key-from-my-composite-aggregation-query/175482)

<div class="topic-metadata">

**Author:** [@andrei-galkin](https://discuss.elastic.co/u/andrei-galkin)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 3:07pm UTC](https://discuss.elastic.co/t/why-i-do-not-receive-after-key-from-my-composite-aggregation-query/175482 "2019-04-05T15:07:32Z")

</div>

Elastic search Version: 6.2.4. My query { "aggs": { "composite\_agg": { "aggs": { "ActDate": { "max": { "field": "details.details.ActDate", "format": "yyyy'-'MM'-'dd…

---

## [Benchmarking queries in Elasticsearch to compare two different mappings](https://discuss.elastic.co/t/benchmarking-queries-in-elasticsearch-to-compare-two-different-mappings/175620)

<div class="topic-metadata">

**Author:** [@Praneet\_Khandelwal](https://discuss.elastic.co/u/Praneet_Khandelwal)\
**Replies:** 0\
**Last updated:** [April 5, 2019, 2:58pm UTC](https://discuss.elastic.co/t/benchmarking-queries-in-elasticsearch-to-compare-two-different-mappings/175620 "2019-04-05T14:58:30Z")

</div>

I have two different indices with same data but different index mappings(one has around 6000 indexed fields, and the other has around 70). I need to compare the querying speed on these two indices. What is the best way t…

---

## [7.0 upgrade assistant not available in \`-oss\` docker images](https://discuss.elastic.co/t/7-0-upgrade-assistant-not-available-in-oss-docker-images/175176)

<div class="topic-metadata">

**Author:** [@mw\_jko](https://discuss.elastic.co/u/mw_jko)\
**Replies:** 3\
**Last updated:** [April 5, 2019, 2:17pm UTC](https://discuss.elastic.co/t/7-0-upgrade-assistant-not-available-in-oss-docker-images/175176 "2019-04-05T14:17:58Z")

</div>

Hi there, in version 5.6 the 6.0 upgrade assistant was also available to non xpack users. For 7.0 one however, the upgrade assistant is only available when using the "basic" images, not the -oss ones. Are there any plan…

---

## [Best Practice around keyphrase matching](https://discuss.elastic.co/t/best-practice-around-keyphrase-matching/175593)

<div class="topic-metadata">

**Author:** [@MSamji](https://discuss.elastic.co/u/MSamji)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 2:00pm UTC](https://discuss.elastic.co/t/best-practice-around-keyphrase-matching/175593 "2019-04-05T14:00:42Z")

</div>

Hey ES Community, I'm looking to perform keyphrase analysis on some text and then be able to aggregate those keyphrases to determine what the most common topics are. I already have a solution for keyphrase analsis, how…

---

## [Quotation marks search stopped working in v6.6](https://discuss.elastic.co/t/quotation-marks-search-stopped-working-in-v6-6/172772)

<div class="topic-metadata">

**Author:** [@bigdatapower](https://discuss.elastic.co/u/bigdatapower)\
**Replies:** 6\
**Last updated:** [April 4, 2019, 12:23pm UTC](https://discuss.elastic.co/t/quotation-marks-search-stopped-working-in-v6-6/172772 "2019-04-04T12:23:30Z")

</div>

Hello I have an indexed field in my elastic: "HTTP\_Error\_Body" : { "type" : "text", "norms" : false, "index\_options" : "docs" } At version 5.5 when I searched kibana by guid enclosed in quotation marks (in order t…

---

## [Rollup Field Names: Filtering Multiple Indices in Kibana](https://discuss.elastic.co/t/rollup-field-names-filtering-multiple-indices-in-kibana/174753)

<div class="topic-metadata">

**Author:** [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 1:19pm UTC](https://discuss.elastic.co/t/rollup-field-names-filtering-multiple-indices-in-kibana/174753 "2019-04-05T13:19:05Z")

</div>

We have one index (logs) with fields source, type, category and these docs are rolled up into an index (issues). The rollup converts our nicely named fields (e.g. category) to a complicated name (e.g. category.terms.valu…

---

## [Second index on elastic search](https://discuss.elastic.co/t/second-index-on-elastic-search/175577)

<div class="topic-metadata">

**Author:** [@vmormino](https://discuss.elastic.co/u/vmormino)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 12:49pm UTC](https://discuss.elastic.co/t/second-index-on-elastic-search/175577 "2019-04-05T12:49:55Z")

</div>

Hy i have two index on elastic the first catalogo\_prodotti and the second catalogo\_esercenti. In the second i use the functionscore in this way, but when i try to get the list, i have the error Fielddata is disabled on…

---

## [Spring Data Version Compatibility with ES 6.x compatibility](https://discuss.elastic.co/t/spring-data-version-compatibility-with-es-6-x-compatibility/175384)

<div class="topic-metadata">

**Author:** [@Dibyakanta](https://discuss.elastic.co/u/Dibyakanta)\
**Replies:** 8\
**Last updated:** [April 5, 2019, 12:22pm UTC](https://discuss.elastic.co/t/spring-data-version-compatibility-with-es-6-x-compatibility/175384 "2019-04-05T12:22:11Z")

</div>

Hi, I have my Spring Data version as 3.0.5 and ElasticSearch version as 5.6.10. Now, I want to migrate Elasticsearch version to 6.x. So, will my Spring data be compatible with ElasticSearch 6.x version. Thank you

---

## [AWS Ubuntu 18, ES 6.6.0, java couldn't find discovery-ec2 plugin](https://discuss.elastic.co/t/aws-ubuntu-18-es-6-6-0-java-couldnt-find-discovery-ec2-plugin/175536)

<div class="topic-metadata">

**Author:** [@kunj\_choksi](https://discuss.elastic.co/u/kunj_choksi)\
**Replies:** 16\
**Last updated:** [April 5, 2019, 12:15pm UTC](https://discuss.elastic.co/t/aws-ubuntu-18-es-6-6-0-java-couldnt-find-discovery-ec2-plugin/175536 "2019-04-05T12:15:14Z")

</div>

Hey, I have successfully installed ES. But JAVA is still not able to find the discovery-ec2 plugin. Am I missing any plugin or any configuration? below is my yml file cloud.aws.access\_key: ##### cloud.aws.secret\_key:…

---

## [Nodes master+data share the same volume and path](https://discuss.elastic.co/t/nodes-master-data-share-the-same-volume-and-path/175570)

<div class="topic-metadata">

**Author:** [@AlfonsoRBJ](https://discuss.elastic.co/u/AlfonsoRBJ)\
**Replies:** 7\
**Last updated:** [April 5, 2019, 11:29am UTC](https://discuss.elastic.co/t/nodes-master-data-share-the-same-volume-and-path/175570 "2019-04-05T11:29:19Z")

</div>

Hello everyone, I have deployed in Kubernetes a Statefulset that creates 3 nodes of Elasticsearch of the master+data type, sharing the same volume. Then I saw this warning. Never run different node types (i.e. master, …

---

## [Migration to new elastic from 5.6 to 6.7](https://discuss.elastic.co/t/migration-to-new-elastic-from-5-6-to-6-7/175506)

<div class="topic-metadata">

**Author:** [@mkain](https://discuss.elastic.co/u/mkain)\
**Replies:** 5\
**Last updated:** [April 5, 2019, 10:40am UTC](https://discuss.elastic.co/t/migration-to-new-elastic-from-5-6-to-6-7/175506 "2019-04-05T10:40:36Z")

</div>

Hi, I have a single node ELK running on ver 5.6. There are daily indices of about 20GB each, total elastic data is about 2Tb. I have build another ELK platform on ver 6.7 and want to migrate this data on new node. Can…

---

## [Neighboring ("touching") geo-shapes not found](https://discuss.elastic.co/t/neighboring-touching-geo-shapes-not-found/175543)

<div class="topic-metadata">

**Author:** [@AlexHofbauer](https://discuss.elastic.co/u/AlexHofbauer)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 10:33am UTC](https://discuss.elastic.co/t/neighboring-touching-geo-shapes-not-found/175543 "2019-04-05T10:33:58Z")

</div>

I'm scratching my head regarding touching geo-shapes not being found. My queries look like this: { "query": { "bool": { "must\_not": \[ { "term" : { "\_id": "\_id\_" } } \], "filter": { …

---

## [Opencart(2.3.0.2) Elasticsearch(6.7.0) have problem](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169)

<div class="topic-metadata">

**Author:** [@junhyuk](https://discuss.elastic.co/u/junhyuk)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 9:28am UTC](https://discuss.elastic.co/t/opencart-2-3-0-2-elasticsearch-6-7-0-have-problem/175169 "2019-04-05T09:28:10Z")

</div>

I want to use Opencart Elasticsearch. So first, setting elasticsearch 6.7.0 by yum, java 1.8 on centos6.9 And I bought Opencart Elasticsearch, Setting is almost finished. On Opencart extensions page, I have installed …

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

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