# Elasticsearch

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

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

**Page:** 1141

---

## [java.lang.IncompatibleClassChangeError: vtable stub](https://discuss.elastic.co/t/java-lang-incompatibleclasschangeerror-vtable-stub/201514)

<div class="topic-metadata">

**Author:** [@chenchuangc](https://discuss.elastic.co/u/chenchuangc)\
**Replies:** 0\
**Last updated:** [September 29, 2019, 2:40am UTC](https://discuss.elastic.co/t/java-lang-incompatibleclasschangeerror-vtable-stub/201514 "2019-09-29T02:40:06Z")

</div>

Elasticsearch version bin/elasticsearch --version 7.1.1 Logstash version 7.1.1 Plugins installed bin/elasticsearch-plugin list analysis-ik JVM version java -version java version "1.8.0\_91" Java(TM) SE Runtime Env…

---

## [ElasticSearch Highlight](https://discuss.elastic.co/t/elasticsearch-highlight/201512)

<div class="topic-metadata">

**Author:** [@Gowd](https://discuss.elastic.co/u/Gowd)\
**Replies:** 0\
**Last updated:** [September 29, 2019, 1:48am UTC](https://discuss.elastic.co/t/elasticsearch-highlight/201512 "2019-09-29T01:48:16Z")

</div>

Hi, I am using ElasticSearch highlights and the behavior is confusing. Below is my document which indexed: POST clients\_with\_lemma\_policy\_document\_type\_en-us/doc/D1OoeG0B0rPisNgfCVyL { "query": { "bool": { "should"…

---

## [Ldap xpack is it free or paid and is there a clear steps for that](https://discuss.elastic.co/t/ldap-xpack-is-it-free-or-paid-and-is-there-a-clear-steps-for-that/201507)

<div class="topic-metadata">

**Author:** [@Mai\_Waly](https://discuss.elastic.co/u/Mai_Waly)\
**Replies:** 1\
**Last updated:** [September 28, 2019, 8:09pm UTC](https://discuss.elastic.co/t/ldap-xpack-is-it-free-or-paid-and-is-there-a-clear-steps-for-that/201507 "2019-09-28T20:09:49Z")

</div>

I am trying to configure ldap authentication in our elastcisearch server, issue is I am not sure if this free or paid as part of x-pack and where is the steps for such configuration.

---

## [Unable to serialize type: \<class 'elasticsearch\_dsl.document.InnerDoc'](https://discuss.elastic.co/t/unable-to-serialize-type-class-elasticsearch-dsl-document-innerdoc/201505)

<div class="topic-metadata">

**Author:** [@grant\_donovan](https://discuss.elastic.co/u/grant_donovan)\
**Replies:** 0\
**Last updated:** [September 28, 2019, 7:04pm UTC](https://discuss.elastic.co/t/unable-to-serialize-type-class-elasticsearch-dsl-document-innerdoc/201505 "2019-09-28T19:04:49Z")

</div>

I am just in the process of moving from an old version of Elasticsearch to 6.8. All is going well except that I am getting the above error when attempting to update\\add a record. This is my code if not isinstance(exist…

---

## [Elastic Search Upgrade from 5.X to 7.X](https://discuss.elastic.co/t/elastic-search-upgrade-from-5-x-to-7-x/201023)

<div class="topic-metadata">

**Author:** [@het](https://discuss.elastic.co/u/het)\
**Replies:** 4\
**Last updated:** [September 28, 2019, 6:24pm UTC](https://discuss.elastic.co/t/elastic-search-upgrade-from-5-x-to-7-x/201023 "2019-09-28T18:24:47Z")

</div>

Hello, I was upgrading elasticsearch 5.X version to 7.3. I read ES removed mapping type. Right now, I have a mapping type in my structure. Under one index, I have around 10 different mapping type and each mapping type …

---

## [Snapshots not getting created by cron job](https://discuss.elastic.co/t/snapshots-not-getting-created-by-cron-job/201501)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar4](https://discuss.elastic.co/u/Rahul_Kumar4)\
**Replies:** 0\
**Last updated:** [September 28, 2019, 6:22pm UTC](https://discuss.elastic.co/t/snapshots-not-getting-created-by-cron-job/201501 "2019-09-28T18:22:08Z")

</div>

Hello, I have a cron job set up in my crontab which is set to fire a snapshot every first minute of an hour. When I see the cron logs I can see that it triggered the task but I do not see the snapshots in Kibana client.…

---

## ["could not find java in JAVA\_HOME or bundled at C:\\aswin-\\elasticsearch-7.3.2\\jdk"](https://discuss.elastic.co/t/could-not-find-java-in-java-home-or-bundled-at-c-aswin-elasticsearch-7-3-2-jdk/201493)

<div class="topic-metadata">

**Author:** [@aswin.dora](https://discuss.elastic.co/u/aswin.dora)\
**Replies:** 0\
**Last updated:** [September 28, 2019, 2:33pm UTC](https://discuss.elastic.co/t/could-not-find-java-in-java-home-or-bundled-at-c-aswin-elasticsearch-7-3-2-jdk/201493 "2019-09-28T14:33:10Z")

</div>

I am using java version jdk-11.0.4, elasticsearch version 7.3.2 . Can any one suggest me how to solve this issue while I am trying to start elasticsearch server

---

## [Deprecated Logs in ELK Rolling Upgrade 6.4.3 to 7.3.1 through 6.8.3](https://discuss.elastic.co/t/deprecated-logs-in-elk-rolling-upgrade-6-4-3-to-7-3-1-through-6-8-3/201450)

<div class="topic-metadata">

**Author:** [@as50790](https://discuss.elastic.co/u/as50790)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 5:28pm UTC](https://discuss.elastic.co/t/deprecated-logs-in-elk-rolling-upgrade-6-4-3-to-7-3-1-through-6-8-3/201450 "2019-09-27T17:28:31Z")

</div>

I had found Warning in deprecated logs Elasticsearch Kibana version: 6.8.3 Elasticsearch version: 6.8.3 Logstash version: 6.8.3 Metricbeat Version: 6.8.3 I had already change include\_type\_name=true for ELK (Ela…

---

## [Struggling to Understand Creating Compound Queries Using Updated Query DSL](https://discuss.elastic.co/t/struggling-to-understand-creating-compound-queries-using-updated-query-dsl/201470)

<div class="topic-metadata">

**Author:** [@elasticTrouble](https://discuss.elastic.co/u/elasticTrouble)\
**Replies:** 2\
**Last updated:** [September 28, 2019, 8:31am UTC](https://discuss.elastic.co/t/struggling-to-understand-creating-compound-queries-using-updated-query-dsl/201470 "2019-09-28T08:31:38Z")

</div>

Hey Elastic Folks, I'm really struggling to understand creating compound queries with the updated query DSL after migrating our cluster from 5.3 to 6.8. My current task is to re-write roughly 300 saved searches many of …

---

## [Setting include\_type\_name=false using Transport Client in 6.8.3](https://discuss.elastic.co/t/setting-include-type-name-false-using-transport-client-in-6-8-3/201476)

<div class="topic-metadata">

**Author:** [@AV7](https://discuss.elastic.co/u/AV7)\
**Replies:** 1\
**Last updated:** [September 28, 2019, 2:31am UTC](https://discuss.elastic.co/t/setting-include-type-name-false-using-transport-client-in-6-8-3/201476 "2019-09-28T02:31:07Z")

</div>

Hi, I am creating indices using the Transport Client and wanted to know how can we set the include\_type\_name=false when we prepare the index? I can see it can be done using the Rest Client, but having trouble figuring o…

---

## [Powershell query examples](https://discuss.elastic.co/t/powershell-query-examples/201439)

<div class="topic-metadata">

**Author:** [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 4:49pm UTC](https://discuss.elastic.co/t/powershell-query-examples/201439 "2019-09-27T16:49:56Z")

</div>

I do my scripting in python, usually using the elaticsearch-dsl. I want to convert a simple query to Powershell to share with some non-python users. If I could find a simple query that uses the scroll API, I could use …

---

## [Function toJson in stored search template](https://discuss.elastic.co/t/function-tojson-in-stored-search-template/201430)

<div class="topic-metadata">

**Author:** [@p\_tarte](https://discuss.elastic.co/u/p_tarte)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 3:34pm UTC](https://discuss.elastic.co/t/function-tojson-in-stored-search-template/201430 "2019-09-27T15:34:24Z")

</div>

Hello, I'm trying to save and call a search template having a parameter that is transformed using the toJson function. Here is an example: POST \_scripts/testScript { "script": { "lang": "mustache", "source": "{ "q…

---

## [Monitoring queries sent to Elastic v5.6](https://discuss.elastic.co/t/monitoring-queries-sent-to-elastic-v5-6/201453)

<div class="topic-metadata">

**Author:** [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 6:22pm UTC](https://discuss.elastic.co/t/monitoring-queries-sent-to-elastic-v5-6/201453 "2019-09-27T18:22:35Z")

</div>

hi guys, just one question: currently I have a cluster with ES 5.6.3. We have scheduled the upgrade to 6.8 but I would like to know if in the meantime I can consider as good the guidelines at the following URL: https://…

---

## [Snapshots - Deleted Documents](https://discuss.elastic.co/t/snapshots-deleted-documents/201449)

<div class="topic-metadata">

**Author:** [@lucyne](https://discuss.elastic.co/u/lucyne)\
**Replies:** 1\
**Last updated:** [September 27, 2019, 5:54pm UTC](https://discuss.elastic.co/t/snapshots-deleted-documents/201449 "2019-09-27T17:54:27Z")

</div>

When taking snapshots of an index, are deleted documents handled? I.E. When I later restore a snapshot it will not re-index documents that I deleted?

---

## [When to use docvalue\_fields](https://discuss.elastic.co/t/when-to-use-docvalue-fields/103144)

<div class="topic-metadata">

**Author:** [@shaharmor](https://discuss.elastic.co/u/shaharmor)\
**Replies:** 5\
**Last updated:** [September 27, 2019, 5:40pm UTC](https://discuss.elastic.co/t/when-to-use-docvalue-fields/103144 "2019-09-27T17:40:03Z")

</div>

Hi, I see that Kibana is using docvalue\_fields all the time for the @timestamp field. When is using docvalue\_fields vs stored\_fields better? Is there a general use case? Aren't all fields fetched using doc\_values anywa…

---

## [Error calling \_cat/indices from Java REST Client - Illegal request-target, unexpected character '/' at position 4](https://discuss.elastic.co/t/error-calling-cat-indices-from-java-rest-client-illegal-request-target-unexpected-character-at-position-4/201434)

<div class="topic-metadata">

**Author:** [@jxerome](https://discuss.elastic.co/u/jxerome)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 4:11pm UTC](https://discuss.elastic.co/t/error-calling-cat-indices-from-java-rest-client-illegal-request-target-unexpected-character-at-position-4/201434 "2019-09-27T16:11:29Z")

</div>

Hello everyone, I have strange problem with \_cat/indices on a client deployment: it always fails on the client cluster, it always works using curl with the same parameters, I never reproduced it on a test cluster of t…

---

## [Prevent Keyword Stuffing](https://discuss.elastic.co/t/prevent-keyword-stuffing/200284)

<div class="topic-metadata">

**Author:** [@Cannon\_Moyer](https://discuss.elastic.co/u/Cannon_Moyer)\
**Replies:** 1\
**Last updated:** [September 27, 2019, 3:31pm UTC](https://discuss.elastic.co/t/prevent-keyword-stuffing/200284 "2019-09-27T15:31:54Z")

</div>

I'm using ES 7.3. I have a product index with titles, part, model numbers, etc. I am having issues with keyword stuffing because some of the products might contain the same word, part or model number multiple times throu…

---

## [Recommended max\_buckets](https://discuss.elastic.co/t/recommended-max-buckets/201427)

<div class="topic-metadata">

**Author:** [@baselai](https://discuss.elastic.co/u/baselai)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 3:23pm UTC](https://discuss.elastic.co/t/recommended-max-buckets/201427 "2019-09-27T15:23:12Z")

</div>

What's the recommended search.max\_buckets ? It's set in the aggregations to 10000, but we can't use pagination, so we need to increase the value from 10k to something else.

---

## [Elasticsearch terms aggregation with sub query](https://discuss.elastic.co/t/elasticsearch-terms-aggregation-with-sub-query/201165)

<div class="topic-metadata">

**Author:** [@Jayabal\_K](https://discuss.elastic.co/u/Jayabal_K)\
**Replies:** 1\
**Last updated:** [September 27, 2019, 3:19pm UTC](https://discuss.elastic.co/t/elasticsearch-terms-aggregation-with-sub-query/201165 "2019-09-27T15:19:13Z")

</div>

I need to aggregate the docs (term aggregation), based on the another field vale (atleast one occurrence). For example, I using the api traffic data, I need to get the top api list based on the total doc\_count, who has …

---

## [Watcher - Error! Execution failing intermittently](https://discuss.elastic.co/t/watcher-error-execution-failing-intermittently/201411)

<div class="topic-metadata">

**Author:** [@Keenan\_Sequeira](https://discuss.elastic.co/u/Keenan_Sequeira)\
**Replies:** 1\
**Last updated:** [September 27, 2019, 2:17pm UTC](https://discuss.elastic.co/t/watcher-error-execution-failing-intermittently/201411 "2019-09-27T14:17:57Z")

</div>

Hey, I've setup some watchers to query our application logs for error events and they seem to be working fine when testing and running them in DevTools. It runs successfully for periods of time when running as a watcher,…

---

## [Cluster recovery after deleting indices directory](https://discuss.elastic.co/t/cluster-recovery-after-deleting-indices-directory/201276)

<div class="topic-metadata">

**Author:** [@Sergio\_Peral\_Aguiler](https://discuss.elastic.co/u/Sergio_Peral_Aguiler)\
**Replies:** 2\
**Last updated:** [September 27, 2019, 12:27pm UTC](https://discuss.elastic.co/t/cluster-recovery-after-deleting-indices-directory/201276 "2019-09-27T12:27:40Z")

</div>

Hello team, First of all, thank you for the product. My question is: is there any way to recover a cluster after having removed the path.data/nodes/\<node\>/indices ? After having done that, my cluster is not able to fin…

---

## [Elastic in docker container logs](https://discuss.elastic.co/t/elastic-in-docker-container-logs/201412)

<div class="topic-metadata">

**Author:** [@jlim0930](https://discuss.elastic.co/u/jlim0930)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 1:53pm UTC](https://discuss.elastic.co/t/elastic-in-docker-container-logs/201412 "2019-09-27T13:53:34Z")

</div>

if we are running elastic/logstash/kibana in docker containers how do you setup the logging so that the logs show up in the stack monitoring? when you click on the link it saids to use filebeat but since each component …

---

## [Fetch the array of "docker.container.id" (all the docker container ids) from the docker metrics](https://discuss.elastic.co/t/fetch-the-array-of-docker-container-id-all-the-docker-container-ids-from-the-docker-metrics/201342)

<div class="topic-metadata">

**Author:** [@Yashvardhan\_Kukreja](https://discuss.elastic.co/u/Yashvardhan_Kukreja)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 6:23am UTC](https://discuss.elastic.co/t/fetch-the-array-of-docker-container-id-all-the-docker-container-ids-from-the-docker-metrics/201342 "2019-09-27T06:23:49Z")

</div>

So, I am using metricbeat to fetch my docker related logs and metrics. So, that output of the Elasticsearch query looks something like this : { ... .. "hits": \[ { "docker" : { "container" : { "id" : "b1234", "…

---

## [Filter and sort based on attributes in Terms lookup document](https://discuss.elastic.co/t/filter-and-sort-based-on-attributes-in-terms-lookup-document/200241)

<div class="topic-metadata">

**Author:** [@come\_along\_bort](https://discuss.elastic.co/u/come_along_bort)\
**Replies:** 1\
**Last updated:** [September 27, 2019, 1:36pm UTC](https://discuss.elastic.co/t/filter-and-sort-based-on-attributes-in-terms-lookup-document/200241 "2019-09-27T13:36:51Z")

</div>

I have documents which contain a users collection which are linked to other documents through the documents id attribute like so: PUT /collection/1 { "items": \[ {"id": 1, "time\_added": "2017-08-07T09:07:15.0…

---

## [Replica or not?](https://discuss.elastic.co/t/replica-or-not/201372)

<div class="topic-metadata">

**Author:** [@minddesigner](https://discuss.elastic.co/u/minddesigner)\
**Replies:** 3\
**Last updated:** [September 27, 2019, 12:41pm UTC](https://discuss.elastic.co/t/replica-or-not/201372 "2019-09-27T12:41:25Z")

</div>

Hello, I am new and I have a question I have an application that puts data into an 'A' index that can be read by users In case of human errors (wrong algorithm), I end up with an index 'A' with bad data I would like …

---

## [Its possible search with suggested keyword?](https://discuss.elastic.co/t/its-possible-search-with-suggested-keyword/201380)

<div class="topic-metadata">

**Author:** [@bumblebeey](https://discuss.elastic.co/u/bumblebeey)\
**Replies:** 0\
**Last updated:** [September 27, 2019, 10:25am UTC](https://discuss.elastic.co/t/its-possible-search-with-suggested-keyword/201380 "2019-09-27T10:25:19Z")

</div>

Hi i am try build did you mean feature, when i search wrong keywors suggestion offer me correct keywords. point is that. how can i fill hits with suggested keywords ? when hits empty ? its posslible ? i am requery with…

---

## [Heap Size for 256 GB RAM Machine](https://discuss.elastic.co/t/heap-size-for-256-gb-ram-machine/201337)

<div class="topic-metadata">

**Author:** [@Nitish\_Goyal](https://discuss.elastic.co/u/Nitish_Goyal)\
**Replies:** 3\
**Last updated:** [September 27, 2019, 10:15am UTC](https://discuss.elastic.co/t/heap-size-for-256-gb-ram-machine/201337 "2019-09-27T10:15:03Z")

</div>

Hi, We are running a 50 node cluster in production. Each node has the following configuration - Ram : 256 GB Disk : 5.6 \* 2 = 11.2 TB Cores : 80 vCPUs Heap : 29 GB GC algo : G1Gc We index roughly 2 billion documen…

---

## [Can we index images with extension types like .jpeg,.img,jpg in elasticsearch?](https://discuss.elastic.co/t/can-we-index-images-with-extension-types-like-jpeg-img-jpg-in-elasticsearch/195678)

<div class="topic-metadata">

**Author:** [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Replies:** 34\
**Last updated:** [September 27, 2019, 9:37am UTC](https://discuss.elastic.co/t/can-we-index-images-with-extension-types-like-jpeg-img-jpg-in-elasticsearch/195678 "2019-09-27T09:37:38Z")

</div>

Hello, Can we index images with extension types like .jpeg,.img,jpg in elasticsearch? If yes, then can anyone explain how i can achieve it? Thanks & Regards, Priyanka Yerunkar.

---

## [NEST Client - how to resolve elastic search client exceptions please](https://discuss.elastic.co/t/nest-client-how-to-resolve-elastic-search-client-exceptions-please/200926)

<div class="topic-metadata">

**Author:** [@krishnapss](https://discuss.elastic.co/u/krishnapss)\
**Replies:** 4\
**Last updated:** [September 27, 2019, 9:30am UTC](https://discuss.elastic.co/t/nest-client-how-to-resolve-elastic-search-client-exceptions-please/200926 "2019-09-27T09:30:17Z")

</div>

HI, Could someone please help me to resolve this issue. We are recently getting Two types of exceptions Elasticsearch.Net.UnexpectedElasticsearchClientException The operation was canceled. Elasticsearch.Net.Elastics…

---

## [If fscrawler is stopped before finishing an index, when it restarts, will it start from the beginning?](https://discuss.elastic.co/t/if-fscrawler-is-stopped-before-finishing-an-index-when-it-restarts-will-it-start-from-the-beginning/199787)

<div class="topic-metadata">

**Author:** [@neergttocsdivad](https://discuss.elastic.co/u/neergttocsdivad)\
**Replies:** 4\
**Last updated:** [September 27, 2019, 9:28am UTC](https://discuss.elastic.co/t/if-fscrawler-is-stopped-before-finishing-an-index-when-it-restarts-will-it-start-from-the-beginning/199787 "2019-09-27T09:28:11Z")

</div>

. . . . or will it restart from where it was stopped? The 'CLI options' of the fscrawler manual states that --restart restarts a job from scratch. This suggests that the default is to restart from where the fscrawler w…

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

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