# Elasticsearch

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

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

**Page:** 1641

---

## [Javascript API for searching in Elasticsearch](https://discuss.elastic.co/t/javascript-api-for-searching-in-elasticsearch/137386)

<div class="topic-metadata">

**Author:** [@rs123](https://discuss.elastic.co/u/rs123)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 10:59am UTC](https://discuss.elastic.co/t/javascript-api-for-searching-in-elasticsearch/137386 "2018-06-26T10:59:45Z")

</div>

If I do below query in Kibana, results : "tim is a good boy" and I want to do same thing using js library in eclipse. GET nirv/\_search { "query" : { "term" : { "user" : "tim" } } } I looked everywhere b…

---

## [Exact match not working with fields having space](https://discuss.elastic.co/t/exact-match-not-working-with-fields-having-space/137398)

<div class="topic-metadata">

**Author:** [@Vishnu\_P\_S](https://discuss.elastic.co/u/Vishnu_P_S)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 9:35am UTC](https://discuss.elastic.co/t/exact-match-not-working-with-fields-having-space/137398 "2018-06-26T09:35:41Z")

</div>

I have a set of data loaded in elasticsearch. I ran the below query. GET /xxxxxxx/\_search { "query": { "bool": { "filter":\[{"term":{"title": "Product order details" }}\]}} } And it returns { "took": 0, "timed\_ou…

---

## [Sort on nested aggreagations](https://discuss.elastic.co/t/sort-on-nested-aggreagations/137416)

<div class="topic-metadata">

**Author:** [@magdalena179](https://discuss.elastic.co/u/magdalena179)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 10:30am UTC](https://discuss.elastic.co/t/sort-on-nested-aggreagations/137416 "2018-06-26T10:30:03Z")

</div>

I have nested mapping and doing nested aggregations on it. I would like to sort by the most inner value - sum\_num\_transactions in this case. How can I achieve it? I have expected that on .nested(name, "breakdown") wi…

---

## [Bad charset encoding in field names - III](https://discuss.elastic.co/t/bad-charset-encoding-in-field-names-iii/136812)

<div class="topic-metadata">

**Author:** [@maxirmx](https://discuss.elastic.co/u/maxirmx)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 9:16am UTC](https://discuss.elastic.co/t/bad-charset-encoding-in-field-names-iii/136812 "2018-06-26T09:16:05Z")

</div>

There is a bug in logstash that causes problems mentioned here and here Access to fields with no-ASCII names fails in any environment that uses Ruby event API. Plugins that use Java API directly work. For example, dis…

---

## [Unable to connect to Elasticsearch at http://server\_ip:9200](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-server-ip-9200/137366)

<div class="topic-metadata">

**Author:** [@davis](https://discuss.elastic.co/u/davis)\
**Replies:** 10\
**Last updated:** [June 26, 2018, 8:56am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-at-http-server-ip-9200/137366 "2018-06-26T08:56:05Z")

</div>

hi all... I installed Es in my ubuntu machine, successfully... And, I can curl in in command.The result is below: curl -XGET "http://ip\_address:9200" { "name" : ".....", "cluster\_name" : "elasticsearch", "cluster\_uu…

---

## [Mapping set to strict, dynamic introduction of \[title\] within \[dashboard\] is not allowed when upgrading .kibana from 2.3.4 to 6.2.4](https://discuss.elastic.co/t/mapping-set-to-strict-dynamic-introduction-of-title-within-dashboard-is-not-allowed-when-upgrading-kibana-from-2-3-4-to-6-2-4/137393)

<div class="topic-metadata">

**Author:** [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 8:38am UTC](https://discuss.elastic.co/t/mapping-set-to-strict-dynamic-introduction-of-title-within-dashboard-is-not-allowed-when-upgrading-kibana-from-2-3-4-to-6-2-4/137393 "2018-06-26T08:38:52Z")

</div>

We're upgrading our elasticsearch from 2.3.4 to 6.2.4 via 5.6.9. The indices created in 2.3.4 will be reindexed in 5.6.9 before the upgrade step to 6.2.4. Currently, when migrating .kibana I'm getting the following err…

---

## [Differences console and UI in ELK](https://discuss.elastic.co/t/differences-console-and-ui-in-elk/137361)

<div class="topic-metadata">

**Author:** [@soodabehzz](https://discuss.elastic.co/u/soodabehzz)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 8:43am UTC](https://discuss.elastic.co/t/differences-console-and-ui-in-elk/137361 "2018-06-26T08:43:20Z")

</div>

Hi everyone I use kibana with elasticsearch, now I am learning the ML part. Is it possible help me know, there is any different between creating job by UI compared to console, I think the console has more feature and i…

---

## [How to define multiple index types mapping in single template](https://discuss.elastic.co/t/how-to-define-multiple-index-types-mapping-in-single-template/137370)

<div class="topic-metadata">

**Author:** [@yash\_mangla](https://discuss.elastic.co/u/yash_mangla)\
**Replies:** 8\
**Last updated:** [June 26, 2018, 8:38am UTC](https://discuss.elastic.co/t/how-to-define-multiple-index-types-mapping-in-single-template/137370 "2018-06-26T08:38:42Z")

</div>

Hello Guyz, I have default Template file of blueliv which was working on elasticsearch-6.2.3. but in 6.2.4 that mapping is not works. I'm getting following error when i tried following configuration: {"error":{"root…

---

## [Ingest attachment install fail on elasticsearch 6.3.0](https://discuss.elastic.co/t/ingest-attachment-install-fail-on-elasticsearch-6-3-0/137381)

<div class="topic-metadata">

**Author:** [@xiaoxin01](https://discuss.elastic.co/u/xiaoxin01)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 8:37am UTC](https://discuss.elastic.co/t/ingest-attachment-install-fail-on-elasticsearch-6-3-0/137381 "2018-06-26T08:37:38Z")

</div>

Hi, I wan't to install ingest attachment plugin in elk docker image but got an error. Hear is dockerfile: ARG ELK\_VERSION=6.3.0 FROM docker.elastic.co/elasticsearch/elasticsearch-oss:$ELK\_VERSION ARG ELK\_VERSION RUN …

---

## [Filter script on nested key in ElasticSearch](https://discuss.elastic.co/t/filter-script-on-nested-key-in-elasticsearch/137392)

<div class="topic-metadata">

**Author:** [@kevas](https://discuss.elastic.co/u/kevas)\
**Replies:** 0\
**Last updated:** [June 26, 2018, 8:33am UTC](https://discuss.elastic.co/t/filter-script-on-nested-key-in-elasticsearch/137392 "2018-06-26T08:33:35Z")

</div>

I have these documents: curl -XPOST -H 'Content-Type: application/json' "http://localhost:9200/test/\_bulk?pretty" -d' {"index":{"\_index":"test","\_type":"product"}}, {"product\_id": 1, "price": 260, "discount": \[ { "group…

---

## [Uninstalling X-Pack and error occurs](https://discuss.elastic.co/t/uninstalling-x-pack-and-error-occurs/137201)

<div class="topic-metadata">

**Author:** [@MD65](https://discuss.elastic.co/u/MD65)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 6:34am UTC](https://discuss.elastic.co/t/uninstalling-x-pack-and-error-occurs/137201 "2018-06-26T06:34:43Z")

</div>

Hello everyone, I have uninstalled x-pack from my 26 nodes with elasticsearch-plugin remove x-pack and elasticsearch-keystore remove bootstrap.password , but I get back some errors. \[2018-06-19T10:33:35,507\]\[ERROR\]\[o.e…

---

## [How to use Javascript API with eclipse?](https://discuss.elastic.co/t/how-to-use-javascript-api-with-eclipse/137273)

<div class="topic-metadata">

**Author:** [@rs123](https://discuss.elastic.co/u/rs123)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 6:20am UTC](https://discuss.elastic.co/t/how-to-use-javascript-api-with-eclipse/137273 "2018-06-26T06:20:41Z")

</div>

I am new to elasticsearch ,I didn't find the way that how can i use javascript rest api with eclipse. For example if I want to search something in my elasticsearch index how to do it in eclipse with JS API?

---

## [Error sql api index name with '-'](https://discuss.elastic.co/t/error-sql-api-index-name-with/137213)

<div class="topic-metadata">

**Author:** [@rendiya](https://discuss.elastic.co/u/rendiya)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 5:40am UTC](https://discuss.elastic.co/t/error-sql-api-index-name-with/137213 "2018-06-26T05:40:24Z")

</div>

hello everyone.. i'm interesting in sql api in elasticsearch 6.3 but error found with index name with '-' example /\_search/index-example query sql curl --request POST \\ --url http://localhost:9200/\_xpack/sql/transl…

---

## [Principal shards Disequilibrium](https://discuss.elastic.co/t/principal-shards-disequilibrium/137227)

<div class="topic-metadata">

**Author:** [@warlock-deng](https://discuss.elastic.co/u/warlock-deng)\
**Replies:** 4\
**Last updated:** [June 26, 2018, 4:46am UTC](https://discuss.elastic.co/t/principal-shards-disequilibrium/137227 "2018-06-26T04:46:56Z")

</div>

After restarting the server, Principal shards Disequilibrium; Some nodes are more ，Few nodes are less， Some nodes are all replicas； Is there any way to get the Principal shards to each node on average?

---

## [Will Elasticsearch support OpenJ9 in the future?](https://discuss.elastic.co/t/will-elasticsearch-support-openj9-in-the-future/137344)

<div class="topic-metadata">

**Author:** [@jimwayneyeh](https://discuss.elastic.co/u/jimwayneyeh)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 4:07am UTC](https://discuss.elastic.co/t/will-elasticsearch-support-openj9-in-the-future/137344 "2018-06-26T04:07:20Z")

</div>

According to announcement by Oracle, OracleJDK will be published only to users who pay and subscribe MOS. Though OpenJDK is still available, it seems to have no LTS release. In other words, users who want to maintain Ela…

---

## [Search like Regex](https://discuss.elastic.co/t/search-like-regex/137093)

<div class="topic-metadata">

**Author:** [@Naruhodou](https://discuss.elastic.co/u/Naruhodou)\
**Replies:** 2\
**Last updated:** [June 25, 2018, 10:49pm UTC](https://discuss.elastic.co/t/search-like-regex/137093 "2018-06-25T22:49:50Z")

</div>

Hi, I have a field called message and the content look like this. "Add: , Delete: 1" (This means no entity is added and entity 1 is deleted) "Add: 1, Delete: 2" "Add: 3, 4, Delete: " How can I search for all the result…

---

## [Reduce output from Aggregation based on date range](https://discuss.elastic.co/t/reduce-output-from-aggregation-based-on-date-range/137078)

<div class="topic-metadata">

**Author:** [@MRussell](https://discuss.elastic.co/u/MRussell)\
**Replies:** 2\
**Last updated:** [June 25, 2018, 8:05pm UTC](https://discuss.elastic.co/t/reduce-output-from-aggregation-based-on-date-range/137078 "2018-06-25T20:05:29Z")

</div>

Hi I am new to Elasticsearch and trying to find my way through the development language. Is it possible to reduce the number of records returned from an aggregation based on the aggregated field? I have seen a couple …

---

## [Root cause of old gen memory use during bulk reindexing](https://discuss.elastic.co/t/root-cause-of-old-gen-memory-use-during-bulk-reindexing/137278)

<div class="topic-metadata">

**Author:** [@Justin\_Treher](https://discuss.elastic.co/u/Justin_Treher)\
**Replies:** 2\
**Last updated:** [June 25, 2018, 7:33pm UTC](https://discuss.elastic.co/t/root-cause-of-old-gen-memory-use-during-bulk-reindexing/137278 "2018-06-25T19:33:14Z")

</div>

Normally, we have zero old gen collections. The exception is bulk upserts of our entire index, refreshing product data from our DB to Elasticsearch. While this is not necessarily a problem now, it gives me "pause." Is t…

---

## [Elastic Stack Setup for Multiple Server](https://discuss.elastic.co/t/elastic-stack-setup-for-multiple-server/134649)

<div class="topic-metadata">

**Author:** [@w0lfxpunk](https://discuss.elastic.co/u/w0lfxpunk)\
**Replies:** 9\
**Last updated:** [June 25, 2018, 7:11pm UTC](https://discuss.elastic.co/t/elastic-stack-setup-for-multiple-server/134649 "2018-06-25T19:11:06Z")

</div>

Dear All, I have 10 servers with different application and different clients. I want to setup ELK Stack server for all of them in one place. The server will be sending following logs to my ELK Box Apache Access & Err…

---

## [Unbalanced shards within index](https://discuss.elastic.co/t/unbalanced-shards-within-index/135042)

<div class="topic-metadata">

**Author:** [@Jonathan\_Mendenhall](https://discuss.elastic.co/u/Jonathan_Mendenhall)\
**Replies:** 14\
**Last updated:** [June 25, 2018, 6:42pm UTC](https://discuss.elastic.co/t/unbalanced-shards-within-index/135042 "2018-06-25T18:42:04Z")

</div>

I have an index that was written to in the past, but is now only being used for searches (this has actually happened with multiple indices). At one point I noticed that this index in particular was acting sluggish; not j…

---

## [Could not index event to elasticsearch not sure why](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-not-sure-why/137042)

<div class="topic-metadata">

**Author:** [@rahulsaini](https://discuss.elastic.co/u/rahulsaini)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 5:57pm UTC](https://discuss.elastic.co/t/could-not-index-event-to-elasticsearch-not-sure-why/137042 "2018-06-25T17:57:12Z")

</div>

\[2018-06-21T10:54:08,459\]\[INFO \]\[logstash.outputs.elasticsearch\] Using mapping template from {:path=\>nil} \[2018-06-21T10:54:08,507\]\[INFO \]\[logstash.outputs.elasticsearch\] Attempting to install template {:manage\_template…

---

## [Xpack watcher email notifications with Mailgun 6.3](https://discuss.elastic.co/t/xpack-watcher-email-notifications-with-mailgun-6-3/136505)

<div class="topic-metadata">

**Author:** [@Jeremy\_Foran](https://discuss.elastic.co/u/Jeremy_Foran)\
**Replies:** 1\
**Last updated:** [June 22, 2018, 2:00pm UTC](https://discuss.elastic.co/t/xpack-watcher-email-notifications-with-mailgun-6-3/136505 "2018-06-22T14:00:26Z")

</div>

It took me a bit to get this working and thought I would share my working config for the benefit of the community. 2018-06-18T15:31:22,758\]\[ERROR\]\[o.e.x.w.a.e.ExecutableEmailAction\] \[es5-data-03\] failed to execute actio…

---

## [Single Master with two Load Balancing Nodes](https://discuss.elastic.co/t/single-master-with-two-load-balancing-nodes/137297)

<div class="topic-metadata">

**Author:** [@manoj4321](https://discuss.elastic.co/u/manoj4321)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 5:05pm UTC](https://discuss.elastic.co/t/single-master-with-two-load-balancing-nodes/137297 "2018-06-25T17:05:08Z")

</div>

hello, I am trying to make a cluster in which there is one master node and the other two are data nodes (for load balancing during search query). Currently i am facing the problem in which all the shards are diverted to…

---

## [How to connect to elasticsearch by java](https://discuss.elastic.co/t/how-to-connect-to-elasticsearch-by-java/137262)

<div class="topic-metadata">

**Author:** [@Suleyman\_Yalman](https://discuss.elastic.co/u/Suleyman_Yalman)\
**Replies:** 5\
**Last updated:** [June 25, 2018, 4:32pm UTC](https://discuss.elastic.co/t/how-to-connect-to-elasticsearch-by-java/137262 "2018-06-25T16:32:38Z")

</div>

Hi . l need to connect elasticsearch throu java aplication class. is it possible. if it is then may you tell me which jars should be used. Finally can you show me sample code to connect elastic search throu java applic…

---

## [Error Running ./bin/elasticsearch-setup-passwords interactive](https://discuss.elastic.co/t/error-running-bin-elasticsearch-setup-passwords-interactive/137289)

<div class="topic-metadata">

**Author:** [@shrike718](https://discuss.elastic.co/u/shrike718)\
**Replies:** 1\
**Last updated:** [June 25, 2018, 4:31pm UTC](https://discuss.elastic.co/t/error-running-bin-elasticsearch-setup-passwords-interactive/137289 "2018-06-25T16:31:30Z")

</div>

Received the following error running elasticsearch-setup-passwords interactive: elasticsearch-6.3.0\]$ ./bin/elasticsearch-setup-passwords interactive Unexpected response code \[403\] from calling GET http://127.0.0.1:920…

---

## [Unknown setting \[index.analysis\]](https://discuss.elastic.co/t/unknown-setting-index-analysis/137282)

<div class="topic-metadata">

**Author:** [@Fabio\_Marchetto](https://discuss.elastic.co/u/Fabio_Marchetto)\
**Replies:** 1\
**Last updated:** [June 25, 2018, 4:21pm UTC](https://discuss.elastic.co/t/unknown-setting-index-analysis/137282 "2018-06-25T16:21:08Z")

</div>

I'm creating my index with org.elasticsearch Java API (6.3.0) in the following function: private void createIndex(String type) throws IOException { boolean existent = config.getClient() .admin() .indices() .prepar…

---

## [Typically this happens if the network/Elasticsearch cluster is not accessible or when targeting a WAN/Cloud instance without the proper setting 'es.nodes.wan.only'](https://discuss.elastic.co/t/typically-this-happens-if-the-network-elasticsearch-cluster-is-not-accessible-or-when-targeting-a-wan-cloud-instance-without-the-proper-setting-es-nodes-wan-only/136655)

<div class="topic-metadata">

**Author:** [@Sricharan\_Gadde](https://discuss.elastic.co/u/Sricharan_Gadde)\
**Replies:** 4\
**Last updated:** [June 25, 2018, 3:27pm UTC](https://discuss.elastic.co/t/typically-this-happens-if-the-network-elasticsearch-cluster-is-not-accessible-or-when-targeting-a-wan-cloud-instance-without-the-proper-setting-es-nodes-wan-only/136655 "2018-06-25T15:27:24Z")

</div>

I hosted ElasticSearch on Azure and connecting to the Hive to load data into elastic search. I am doing steps as follows add jar adl://stepoc.azuredatalakestore.net/ES-Hadoop-Jars/elasticsearch-hadoop-6.3.0.jar; add j…

---

## [Reg ex not working for templates](https://discuss.elastic.co/t/reg-ex-not-working-for-templates/137283)

<div class="topic-metadata">

**Author:** [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Replies:** 0\
**Last updated:** [June 25, 2018, 3:15pm UTC](https://discuss.elastic.co/t/reg-ex-not-working-for-templates/137283 "2018-06-25T15:15:05Z")

</div>

Hi I have a scenario where there are three types of indices are formed 12sfds-1312b-hjhbj-hbj22-2018.08.30-logs 12sfds-1312b-hjhbj-hbj22-2018.08.30-10 12sfds-1312b-hjhbj-hbj22-2018.08.30 I have certain set of index t…

---

## [Timestamp format fails when there's a space in my timestamp field](https://discuss.elastic.co/t/timestamp-format-fails-when-theres-a-space-in-my-timestamp-field/137211)

<div class="topic-metadata">

**Author:** [@Oren\_Cohen](https://discuss.elastic.co/u/Oren_Cohen)\
**Replies:** 2\
**Last updated:** [June 25, 2018, 3:05pm UTC](https://discuss.elastic.co/t/timestamp-format-fails-when-theres-a-space-in-my-timestamp-field/137211 "2018-06-25T15:05:19Z")

</div>

Hey, I've been poking around with the Kibana dev tools and created an index called orglogs and a type called log Here it is: \> POST orglogs/log { "properties": { "\_timestamp": { "type": "object" …

---

## [ES upgrade shards issue - ES 5.6.10 to ES 6.3](https://discuss.elastic.co/t/es-upgrade-shards-issue-es-5-6-10-to-es-6-3/136899)

<div class="topic-metadata">

**Author:** [@sureshvytla](https://discuss.elastic.co/u/sureshvytla)\
**Replies:** 4\
**Last updated:** [June 25, 2018, 2:52pm UTC](https://discuss.elastic.co/t/es-upgrade-shards-issue-es-5-6-10-to-es-6-3/136899 "2018-06-25T14:52:13Z")

</div>

Team, We have two node ES cluster which has been upgraded to 5.6.10 and we are having issue with shards in upgrading ES 5.6.10 to ES 6.3, in the both models either Rolling upgrade or full cluster restart we couldn't su…

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

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