# Elasticsearch

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

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

**Page:** 1809

---

## [Elasticsearch 5 failed to start](https://discuss.elastic.co/t/elasticsearch-5-failed-to-start/117798)

<div class="topic-metadata">

**Author:** [@worroc](https://discuss.elastic.co/u/worroc)\
**Replies:** 3\
**Last updated:** [January 31, 2018, 4:29pm UTC](https://discuss.elastic.co/t/elasticsearch-5-failed-to-start/117798 "2018-01-31T16:29:22Z")

</div>

Hi All, Since yesterday I unable to run the Elasticsearch v5.6.3. Obviously it is some change in the OS but I cant find out what exactly causes to this. Even the fresh copy of the elasticsearch failed to start. There a…

---

## [Reporting - CSV Export: reached the max size and contains partial data](https://discuss.elastic.co/t/reporting-csv-export-reached-the-max-size-and-contains-partial-data/116626)

<div class="topic-metadata">

**Author:** [@asp](https://discuss.elastic.co/u/asp)\
**Replies:** 4\
**Last updated:** [January 31, 2018, 4:15pm UTC](https://discuss.elastic.co/t/reporting-csv-export-reached-the-max-size-and-contains-partial-data/116626 "2018-01-31T16:15:50Z")

</div>

Hi, I get following error when exporting my data: Your report for the "mySearch" search is ready;however, it reached the max size and contains partial data. Pick it up from Management \> Kibana \> Reporting How can I in…

---

## [Unable to UpdateByQuery via Java API when adding "sort" to existing field](https://discuss.elastic.co/t/unable-to-updatebyquery-via-java-api-when-adding-sort-to-existing-field/117835)

<div class="topic-metadata">

**Author:** [@luicir](https://discuss.elastic.co/u/luicir)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 2:45pm UTC](https://discuss.elastic.co/t/unable-to-updatebyquery-via-java-api-when-adding-sort-to-existing-field/117835 "2018-01-31T14:45:39Z")

</div>

I want to avoid reindexing all documents after a field mapping being changed from (excerpt from the template file): "subject": { "type": "string" }, to: "subject": { "type": "str…

---

## [Ingest and coordinating nodes in ES 5.x](https://discuss.elastic.co/t/ingest-and-coordinating-nodes-in-es-5-x/117752)

<div class="topic-metadata">

**Author:** [@Javier\_Parrondo](https://discuss.elastic.co/u/Javier_Parrondo)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 2:30pm UTC](https://discuss.elastic.co/t/ingest-and-coordinating-nodes-in-es-5-x/117752 "2018-01-31T14:30:26Z")

</div>

Hello, I am trying to migrate my Elasticsearch clusters from 2.x to 5.x, My questions is about the known client nodes in ES 2.x, which is the accurate traduction for this kind of nodes in Elasticsearch 5.x?, Just to say…

---

## [Elasticsearch 7](https://discuss.elastic.co/t/elasticsearch-7/117499)

<div class="topic-metadata">

**Author:** [@eperry](https://discuss.elastic.co/u/eperry)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-7/117499 "2018-01-31T13:01:53Z")

</div>

Since Elastic moves so fast with its version updates, I was hoping to just skip over ES6 as I have to start getting ready for next fall. I see the Master documents have been updated with 7.0 alpha details but when I …

---

## [Logstash + Elasticsearch returns class\_cast\_exception error](https://discuss.elastic.co/t/logstash-elasticsearch-returns-class-cast-exception-error/117774)

<div class="topic-metadata">

**Author:** [@riccardo](https://discuss.elastic.co/u/riccardo)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 12:09pm UTC](https://discuss.elastic.co/t/logstash-elasticsearch-returns-class-cast-exception-error/117774 "2018-01-31T12:09:52Z")

</div>

Hi, I currently have an intermittent problem: logstash fails to index documents in elasticsearch and gets: \[logstash.outputs.elasticsearch\] retrying failed action with response code: 500 ({"type"=\>"class\_cast\_exceptio…

---

## [Starting multiple instances of ES](https://discuss.elastic.co/t/starting-multiple-instances-of-es/117800)

<div class="topic-metadata">

**Author:** [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 11:54am UTC](https://discuss.elastic.co/t/starting-multiple-instances-of-es/117800 "2018-01-31T11:54:47Z")

</div>

Hi I want to start multiple instances of ES. I read in the discussion that clone ES into 2 different directories. But elasticsearch.exe not running. Any Solution to this? What are the steps I need to do for clone and…

---

## [Replicas out of sync](https://discuss.elastic.co/t/replicas-out-of-sync/117128)

<div class="topic-metadata">

**Author:** [@edamtoft](https://discuss.elastic.co/u/edamtoft)\
**Replies:** 18\
**Last updated:** [January 31, 2018, 10:54am UTC](https://discuss.elastic.co/t/replicas-out-of-sync/117128 "2018-01-31T10:54:48Z")

</div>

For one particular index, I've been having issues with the primary and replicas repeatedly getting out of sync. \[image\] When updating this index, I make a delete by query request to delete all values with a particular …

---

## [Make AWS services work with Elastic on my Ubuntu](https://discuss.elastic.co/t/make-aws-services-work-with-elastic-on-my-ubuntu/117786)

<div class="topic-metadata">

**Author:** [@urketadic](https://discuss.elastic.co/u/urketadic)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 10:37am UTC](https://discuss.elastic.co/t/make-aws-services-work-with-elastic-on-my-ubuntu/117786 "2018-01-31T10:37:20Z")

</div>

Hey, can you please help me set up so Elastic that's installed on my Ubuntu works with amazon services like Lambda and S3. So, I have followed this tutorial: But instead of using AWS Elastic I have it running my own…

---

## [BulkProcessor.awaitClose() on returning false](https://discuss.elastic.co/t/bulkprocessor-awaitclose-on-returning-false/117747)

<div class="topic-metadata">

**Author:** [@eyasso](https://discuss.elastic.co/u/eyasso)\
**Replies:** 3\
**Last updated:** [January 31, 2018, 10:30am UTC](https://discuss.elastic.co/t/bulkprocessor-awaitclose-on-returning-false/117747 "2018-01-31T10:30:58Z")

</div>

Hi, if BulkProcessor.awaitClose() returns false, can I tell which messages elastic managed to index so far? I am asking this because in my code I am waiting on bulkProcessor.awaitClose(). If it fails (timeout), i would…

---

## [ElasticSearch Java Version Compatibility](https://discuss.elastic.co/t/elasticsearch-java-version-compatibility/117759)

<div class="topic-metadata">

**Author:** [@raj.shah1593](https://discuss.elastic.co/u/raj.shah1593)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 9:50am UTC](https://discuss.elastic.co/t/elasticsearch-java-version-compatibility/117759 "2018-01-31T09:50:48Z")

</div>

Hello, I am planning to upgrade my Elastic Search cluster from v5.2.2 to v6.1.2 using rolling upgrade (5.2.2 to 5.6 to 6.1.2). I currently have multiple Java applications pointed to my ES DB, that use Maven dependency …

---

## [Deprecation of types: How to be future proof?](https://discuss.elastic.co/t/deprecation-of-types-how-to-be-future-proof/117776)

<div class="topic-metadata">

**Author:** [@cemremengu](https://discuss.elastic.co/u/cemremengu)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 9:41am UTC](https://discuss.elastic.co/t/deprecation-of-types-how-to-be-future-proof/117776 "2018-01-31T09:41:17Z")

</div>

I am new to elasticsearch and although many resources talk about index types, I just read that they will be removed soon (which I think is a good decision). In the current 6.1.2 version of ES, we are still required to …

---

## [Why is my term aggregation not getting cached into request cache?](https://discuss.elastic.co/t/why-is-my-term-aggregation-not-getting-cached-into-request-cache/117760)

<div class="topic-metadata">

**Author:** [@Judy\_Raj](https://discuss.elastic.co/u/Judy_Raj)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 9:18am UTC](https://discuss.elastic.co/t/why-is-my-term-aggregation-not-getting-cached-into-request-cache/117760 "2018-01-31T09:18:53Z")

</div>

I've an index on which I've explicitly enabled request cache using the following settings: curl -XPUT 'localhost:9200/index\_one?pretty' -H 'Content-Type: application/json' -d' { "settings": { "index.requests.cach…

---

## [Updating a record in elastic search](https://discuss.elastic.co/t/updating-a-record-in-elastic-search/117762)

<div class="topic-metadata">

**Author:** [@get2ashish](https://discuss.elastic.co/u/get2ashish)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 8:26am UTC](https://discuss.elastic.co/t/updating-a-record-in-elastic-search/117762 "2018-01-31T08:26:15Z")

</div>

Hi Team, I want to completely update a record (no partial update). How do i update it? Do i use a bulk api or update by query can some share me the syntax hard to find in the documentation :frowning: i have prepared by…

---

## [Elasticsearch DSL help me!](https://discuss.elastic.co/t/elasticsearch-dsl-help-me/117710)

<div class="topic-metadata">

**Author:** [@Benoit\_Martin](https://discuss.elastic.co/u/Benoit_Martin)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 7:45am UTC](https://discuss.elastic.co/t/elasticsearch-dsl-help-me/117710 "2018-01-31T07:45:36Z")

</div>

Hello, I would need help with a DSL request. I managed to represent the data with Visualize in Kibana but I can not create an equivalent query with DSL. I would need to have from the index metricbeat- \* the system.cpu.s…

---

## [How to set the shard and replica to tune the ES performance?](https://discuss.elastic.co/t/how-to-set-the-shard-and-replica-to-tune-the-es-performance/117733)

<div class="topic-metadata">

**Author:** [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Replies:** 3\
**Last updated:** [January 31, 2018, 7:15am UTC](https://discuss.elastic.co/t/how-to-set-the-shard-and-replica-to-tune-the-es-performance/117733 "2018-01-31T07:15:17Z")

</div>

Hi everyone, my everyday documents is about 20 million records and one index per day. I know the default setting is 5 shards 1 replica per index. should I change the setting such as 3 shards and 2 replica, and does the…

---

## [Transport client not working with search guard](https://discuss.elastic.co/t/transport-client-not-working-with-search-guard/117745)

<div class="topic-metadata">

**Author:** [@ajit](https://discuss.elastic.co/u/ajit)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 6:43am UTC](https://discuss.elastic.co/t/transport-client-not-working-with-search-guard/117745 "2018-01-31T06:43:47Z")

</div>

Hi, I have successfully implemented searchguard in elasticsearch. But from java side Transport client not working now. Below is my configuration. Settings settings = Settings.builder() .put("cluster.name", "searchguar…

---

## [Search results with begins with and ending with using wildcard](https://discuss.elastic.co/t/search-results-with-begins-with-and-ending-with-using-wildcard/117687)

<div class="topic-metadata">

**Author:** [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 6:56pm UTC](https://discuss.elastic.co/t/search-results-with-begins-with-and-ending-with-using-wildcard/117687 "2018-01-30T18:56:39Z")

</div>

Hi , I using custom search /index analyzer as shown below "settings": { "index": { "analysis": { "analyzer": { "custom\_search\_analyzer": { "filter": \[ "lowercase",…

---

## [Using a Python Tokenizer](https://discuss.elastic.co/t/using-a-python-tokenizer/117656)

<div class="topic-metadata">

**Author:** [@chbrown](https://discuss.elastic.co/u/chbrown)\
**Replies:** 2\
**Last updated:** [January 30, 2018, 4:32pm UTC](https://discuss.elastic.co/t/using-a-python-tokenizer/117656 "2018-01-30T16:32:41Z")

</div>

Hi there! Wondering if anyone has tried using a custom tokenizer written in python? What are some possible approaches? I'm guessing it would need to be added via a custom plugin? We currently have one offered to us fo…

---

## [Disk usage become very large after replace pathdata to a 2T hard disk](https://discuss.elastic.co/t/disk-usage-become-very-large-after-replace-pathdata-to-a-2t-hard-disk/117725)

<div class="topic-metadata">

**Author:** [@sccds](https://discuss.elastic.co/u/sccds)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 3:07am UTC](https://discuss.elastic.co/t/disk-usage-become-very-large-after-replace-pathdata-to-a-2t-hard-disk/117725 "2018-01-31T03:07:05Z")

</div>

Elasticsearch version (bin/elasticsearch --version): 6.0.1, Build: 601be4a/2017-12-04T09:29:09.525Z, JVM: 1.8.0\_151 Plugins installed: \[x-pack, ik-anlyzer\] JVM version (java -version): openjdk version "1.8.0\_151" Ope…

---

## [Does the order of filters matter in a query?](https://discuss.elastic.co/t/does-the-order-of-filters-matter-in-a-query/117702)

<div class="topic-metadata">

**Author:** [@matt.veitas](https://discuss.elastic.co/u/matt.veitas)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 2:51am UTC](https://discuss.elastic.co/t/does-the-order-of-filters-matter-in-a-query/117702 "2018-01-31T02:51:50Z")

</div>

I have seen in various places that the declaration of the filters in a query matters for query performance? Is this true or does ES do optimization under the covers?

---

## [How to Log Elasticsearch's Own Logs?](https://discuss.elastic.co/t/how-to-log-elasticsearchs-own-logs/115928)

<div class="topic-metadata">

**Author:** [@morphers82](https://discuss.elastic.co/u/morphers82)\
**Replies:** 7\
**Last updated:** [January 31, 2018, 2:19am UTC](https://discuss.elastic.co/t/how-to-log-elasticsearchs-own-logs/115928 "2018-01-31T02:19:00Z")

</div>

Is there a best way to log the logs produced by Elasticsearch itself. I want to monitor All of the logs of all of the elasticsearch nodes in my cluster. Is there a guide for this that uses logstash/beats/ or something …

---

## [I can't find elastic log](https://discuss.elastic.co/t/i-cant-find-elastic-log/117557)

<div class="topic-metadata">

**Author:** [@yuluopiaoyang](https://discuss.elastic.co/u/yuluopiaoyang)\
**Replies:** 7\
**Last updated:** [January 31, 2018, 2:15am UTC](https://discuss.elastic.co/t/i-cant-find-elastic-log/117557 "2018-01-31T02:15:54Z")

</div>

I just config path.logs in elasticsearch.yml, the path was generated,but the path is empty, I can't find the log file. Why the log file is empty? Below is my config: cluster.name: mushroomcluster node.name: node01 pat…

---

## [Looping through hits using painless script](https://discuss.elastic.co/t/looping-through-hits-using-painless-script/117718)

<div class="topic-metadata">

**Author:** [@prabhath](https://discuss.elastic.co/u/prabhath)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 1:03am UTC](https://discuss.elastic.co/t/looping-through-hits-using-painless-script/117718 "2018-01-31T01:03:18Z")

</div>

Is there a way In Elasticsearch 5.3 to loop through query results using painless script to compute difference between the hits returned by query. I was trying to loop through the results in a for loop in script and coul…

---

## [Can't start elasticsearch with Ubuntu 16.04](https://discuss.elastic.co/t/cant-start-elasticsearch-with-ubuntu-16-04/48730)

<div class="topic-metadata">

**Author:** [@rubys](https://discuss.elastic.co/u/rubys)\
**Replies:** 36\
**Last updated:** [January 31, 2018, 1:16am UTC](https://discuss.elastic.co/t/cant-start-elasticsearch-with-ubuntu-16-04/48730 "2018-01-31T01:16:10Z")

</div>

I'm hoping that somebody can tell me what step I skipped. From a fresh install of Ubuntu 16.04: sudo apt-get install elasticsearch After that, the following should work but doesn't: sudo /bin/systemctl daemon-reloa…

---

## [Many queries with one mega function or many functions?](https://discuss.elastic.co/t/many-queries-with-one-mega-function-or-many-functions/117722)

<div class="topic-metadata">

**Author:** [@Pisush](https://discuss.elastic.co/u/Pisush)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 12:12am UTC](https://discuss.elastic.co/t/many-queries-with-one-mega-function-or-many-functions/117722 "2018-01-31T00:12:45Z")

</div>

Using an elastic client for doing different queries - is it better to run them all through the same mega-function that does all possible processing, like applying filters (sometimes those values are empty so only part o…

---

## [Forward Slash in Filter Term \[ES 5.6\]](https://discuss.elastic.co/t/forward-slash-in-filter-term-es-5-6/117721)

<div class="topic-metadata">

**Author:** [@Derekbrenner](https://discuss.elastic.co/u/Derekbrenner)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 11:57pm UTC](https://discuss.elastic.co/t/forward-slash-in-filter-term-es-5-6/117721 "2018-01-30T23:57:56Z")

</div>

When using a forward slash in a term for a filter, I am not getting any documents returned even tho the term is an exact match. GET datums/datum/\_search { "\_source": \[ "Uuid", "TransportType", \], "query": {…

---

## [Configure hit highlighting in elastic 6.0](https://discuss.elastic.co/t/configure-hit-highlighting-in-elastic-6-0/115905)

<div class="topic-metadata">

**Author:** [@ESCoder](https://discuss.elastic.co/u/ESCoder)\
**Replies:** 1\
**Last updated:** [January 30, 2018, 10:21pm UTC](https://discuss.elastic.co/t/configure-hit-highlighting-in-elastic-6-0/115905 "2018-01-30T22:21:41Z")

</div>

I'm trying to setup highlights when creating an index. How do we do that in Elastic 6.0 + version? i wasnt able to find any help article for configuring highlights on certain fields like content? I have a couple of fi…

---

## [Memory Lock Setting Fails Bootstrap ES 6.1.1](https://discuss.elastic.co/t/memory-lock-setting-fails-bootstrap-es-6-1-1/117709)

<div class="topic-metadata">

**Author:** [@wrinehart](https://discuss.elastic.co/u/wrinehart)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 10:10pm UTC](https://discuss.elastic.co/t/memory-lock-setting-fails-bootstrap-es-6-1-1/117709 "2018-01-30T22:10:47Z")

</div>

Howdy, I am having issues getting 'bootstrap.memory\_lock: true' working with an ES version 6.1.1 cluster. \[2018-01-30T15:52:39,313\]\[WARN \]\[o.e.b.JNANatives \] Unable to lock JVM Memory: error=12, reason=Cannot allocate …

---

## [Fulltext search with parent/child and array elements](https://discuss.elastic.co/t/fulltext-search-with-parent-child-and-array-elements/117703)

<div class="topic-metadata">

**Author:** [@ffoysal](https://discuss.elastic.co/u/ffoysal)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 9:05pm UTC](https://discuss.elastic.co/t/fulltext-search-with-parent-child-and-array-elements/117703 "2018-01-30T21:05:31Z")

</div>

PUT user\_order\_idx { "mappings": { "doc": { "properties": { "my\_join\_field": { "type": "join", "relations": { "user": "order" } } } } } } PUT user\_order\_idx/doc/1?r…

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

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