# Elasticsearch

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

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

**Page:** 352

---

## [Best practice on data ingestion methods](https://discuss.elastic.co/t/best-practice-on-data-ingestion-methods/317484)

<div class="topic-metadata">

**Author:** [@Boemo2023](https://discuss.elastic.co/u/Boemo2023)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 2:24am UTC](https://discuss.elastic.co/t/best-practice-on-data-ingestion-methods/317484 "2022-10-31T02:24:23Z")

</div>

I currently have a self managed elasticsearch cluster that up until now I have just been feeding with data via HTTP POSTs (to port 9200) to specific indexes from various servers. I'm now in the process of setting up bea…

---

## [Error: Could not create the Java Virtual Machine. ES won't start](https://discuss.elastic.co/t/error-could-not-create-the-java-virtual-machine-es-wont-start/317581)

<div class="topic-metadata">

**Author:** [@rrrrrrrrrrr](https://discuss.elastic.co/u/rrrrrrrrrrr)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 2:20am UTC](https://discuss.elastic.co/t/error-could-not-create-the-java-virtual-machine-es-wont-start/317581 "2022-10-31T02:20:44Z")

</div>

Hello, I've tried to follow this step https://discuss.elastic.co/t/elasticsearch-logs-are-getting-piled-up-in-var-log-elasticsearch-path-how-to-cater-to-this-problem/186039 to do the log rotation but when I tried to res…

---

## [Accidental force merge](https://discuss.elastic.co/t/accidental-force-merge/317539)

<div class="topic-metadata">

**Author:** [@h0llym0lly](https://discuss.elastic.co/u/h0llym0lly)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 2:17am UTC](https://discuss.elastic.co/t/accidental-force-merge/317539 "2022-10-31T02:17:08Z")

</div>

Hi, I executed force merge and forgot to add index name which I want to merge... Now the task is ongoing for some time and it has description: "Force-merge indices \[\], maxSegments\[4\], onlyExpungeDeletes\[false\], flush…

---

## [Optimize elastic search performance](https://discuss.elastic.co/t/optimize-elastic-search-performance/317765)

<div class="topic-metadata">

**Author:** [@geek](https://discuss.elastic.co/u/geek)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 2:10am UTC](https://discuss.elastic.co/t/optimize-elastic-search-performance/317765 "2022-10-31T02:10:23Z")

</div>

I am trying to benchmark my Elasticsearch setup by posting documents against a large schema. The two variations of schema are: indexing enabled for each attribute. indexing disabled for all the attributes. My benchmar…

---

## [Is there any way to do automation for rollup job creation?](https://discuss.elastic.co/t/is-there-any-way-to-do-automation-for-rollup-job-creation/317767)

<div class="topic-metadata">

**Author:** [@Nitin08bisht](https://discuss.elastic.co/u/Nitin08bisht)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 1:57am UTC](https://discuss.elastic.co/t/is-there-any-way-to-do-automation-for-rollup-job-creation/317767 "2022-10-31T01:57:29Z")

</div>

Hi, I want to know that is there any way to do automation for rollup job creation? Because creation of rollup job is taking much time when we have to create jobs for taking rollup of each month data separately.

---

## [How can we get data of specific month from rollup index?](https://discuss.elastic.co/t/how-can-we-get-data-of-specific-month-from-rollup-index/317487)

<div class="topic-metadata">

**Author:** [@Nitin08bisht](https://discuss.elastic.co/u/Nitin08bisht)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 1:49am UTC](https://discuss.elastic.co/t/how-can-we-get-data-of-specific-month-from-rollup-index/317487 "2022-10-31T01:49:10Z")

</div>

Rollup index store months or years of data. And if we want specific month data from that rollup index then how we can get it from?

---

## [\[ERROR\]\[testhost\] policy \[test-data-retention\] for index \[test\_logger\_info.20221026\] failed on step \[{"phase":"hot","action":"rollover","name":"check-rollover-ready"}\]. Moving to ERROR step](https://discuss.elastic.co/t/error-testhost-policy-test-data-retention-for-index-test-logger-info-20221026-failed-on-step-phase-hot-action-rollover-name-check-rollover-ready-moving-to-error-step/317613)

<div class="topic-metadata">

**Author:** [@Tanya\_Patel](https://discuss.elastic.co/u/Tanya_Patel)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 1:47am UTC](https://discuss.elastic.co/t/error-testhost-policy-test-data-retention-for-index-test-logger-info-20221026-failed-on-step-phase-hot-action-rollover-name-check-rollover-ready-moving-to-error-step/317613 "2022-10-31T01:47:39Z")

</div>

I am getting the following error - single node/cluster setup ILM Policy Template

---

## [Why had Elastic released a complete new API with 8.0?](https://discuss.elastic.co/t/why-had-elastic-released-a-complete-new-api-with-8-0/317292)

<div class="topic-metadata">

**Author:** [@Michael\_Gattinger](https://discuss.elastic.co/u/Michael_Gattinger)\
**Replies:** 4\
**Last updated:** [October 31, 2022, 1:44am UTC](https://discuss.elastic.co/t/why-had-elastic-released-a-complete-new-api-with-8-0/317292 "2022-10-31T01:44:50Z")

</div>

Why had Elastic released a complete new API with 8.0? High Level API Client was working well. Why replacing it with Elasticsearch Java API Client? Thanks - Enomine

---

## [Indices deleted as a result of unauthorised access – how to restore?](https://discuss.elastic.co/t/indices-deleted-as-a-result-of-unauthorised-access-how-to-restore/317637)

<div class="topic-metadata">

**Author:** [@Drept](https://discuss.elastic.co/u/Drept)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 1:41am UTC](https://discuss.elastic.co/t/indices-deleted-as-a-result-of-unauthorised-access-how-to-restore/317637 "2022-10-31T01:41:23Z")

</div>

As a result of compromised security, my ES server was accessed by a third party that deleted all the indices. While I can easily recreate and repopulate my own indices, there are a few that I don't know how to deal with.…

---

## [Can i use "date type field" more than two?](https://discuss.elastic.co/t/can-i-use-date-type-field-more-than-two/317671)

<div class="topic-metadata">

**Author:** [@hellocomputer](https://discuss.elastic.co/u/hellocomputer)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 1:40am UTC](https://discuss.elastic.co/t/can-i-use-date-type-field-more-than-two/317671 "2022-10-31T01:40:11Z")

</div>

Hello I want to use a field called "timestamp" as time series data. I'm using monstache to connect mongoDB and Elasticsearch. In mostache mapping file, I set type of timestamp to "date". But, in elastic index, type of…

---

## [Manually insert words and occurrence into the index](https://discuss.elastic.co/t/manually-insert-words-and-occurrence-into-the-index/317707)

<div class="topic-metadata">

**Author:** [@Ostr1969](https://discuss.elastic.co/u/Ostr1969)\
**Replies:** 3\
**Last updated:** [October 30, 2022, 9:16pm UTC](https://discuss.elastic.co/t/manually-insert-words-and-occurrence-into-the-index/317707 "2022-10-30T21:16:27Z")

</div>

I assume that the words of each doc are shown in the index somehow. I have a table of each word and occurrences of a doc( from some other tool) . Can I insert manually the words to the index and specify their assuranc…

---

## [What's the solution of this error please?](https://discuss.elastic.co/t/whats-the-solution-of-this-error-please/317485)

<div class="topic-metadata">

**Author:** [@morad\_della3](https://discuss.elastic.co/u/morad_della3)\
**Replies:** 12\
**Last updated:** [October 30, 2022, 8:59pm UTC](https://discuss.elastic.co/t/whats-the-solution-of-this-error-please/317485 "2022-10-30T20:59:42Z")

</div>

I don't find a solution for this error anyone help me please when I try to start elasticsearch. \[ 2022-10-26T08:13:00,690\]\[WARN \]\[i.n.u.i.PlatformDependent\] \[elastic\] Failed to get the temporary directory; falling back…

---

## [Why did Elastic release Elasticsearch Java API Client to replace the old High Level Client?](https://discuss.elastic.co/t/why-did-elastic-release-elasticsearch-java-api-client-to-replace-the-old-high-level-client/317749)

<div class="topic-metadata">

**Author:** [@Michael\_Gattinger](https://discuss.elastic.co/u/Michael_Gattinger)\
**Replies:** 2\
**Last updated:** [October 30, 2022, 5:59pm UTC](https://discuss.elastic.co/t/why-did-elastic-release-elasticsearch-java-api-client-to-replace-the-old-high-level-client/317749 "2022-10-30T17:59:49Z")

</div>

Did Elastic release the ESJAC to replace the old High Level Client because of the dispute with amazon about the Amazon Elasticsearch Service to make Elasticsearch in any matter incompatible with AES? Thanks - Enomine

---

## [Performance problem with custom sort](https://discuss.elastic.co/t/performance-problem-with-custom-sort/317435)

<div class="topic-metadata">

**Author:** [@Guilherme\_Mello](https://discuss.elastic.co/u/Guilherme_Mello)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 2:51pm UTC](https://discuss.elastic.co/t/performance-problem-with-custom-sort/317435 "2022-10-30T14:51:57Z")

</div>

Hello! My search page needs to have a custom sorting type. To do this sorting i need to return about 5k items from elasticsearch The problem is that this causes a serious performance problem, the application ends up c…

---

## [New indices on elastic.com](https://discuss.elastic.co/t/new-indices-on-elastic-com/317711)

<div class="topic-metadata">

**Author:** [@sportys](https://discuss.elastic.co/u/sportys)\
**Replies:** 4\
**Last updated:** [October 30, 2022, 2:32pm UTC](https://discuss.elastic.co/t/new-indices-on-elastic-com/317711 "2022-10-30T14:32:22Z")

</div>

Hello, I set up a new indices on elastic.co, I'm just trying it out, I only see connectivity through port 443 with a api key. I'm using java and spring and usually connect via port 9300. So I'm having a hard time trans…

---

## [Index rollover not working](https://discuss.elastic.co/t/index-rollover-not-working/317750)

<div class="topic-metadata">

**Author:** [@Eran\_Hadad](https://discuss.elastic.co/u/Eran_Hadad)\
**Replies:** 2\
**Last updated:** [October 30, 2022, 11:08am UTC](https://discuss.elastic.co/t/index-rollover-not-working/317750 "2022-10-30T11:08:37Z")

</div>

I have an index, let's call it index-name-000001, current size 30gb. Aliases index-name Current action rollover under phase definition: "actions": { "rollover": { "max\_primary\_shard\_size": "20gb" …

---

## [Phrase search with fuzziness](https://discuss.elastic.co/t/phrase-search-with-fuzziness/317725)

<div class="topic-metadata">

**Author:** [@Davood1659](https://discuss.elastic.co/u/Davood1659)\
**Replies:** 0\
**Last updated:** [October 29, 2022, 12:24pm UTC](https://discuss.elastic.co/t/phrase-search-with-fuzziness/317725 "2022-10-29T12:24:34Z")

</div>

Hi all, A while ago, I needed to find documents that a certain term(word) is repeated twice or more in a certain field of those documents. Some queries like Match query doesn't work in such situations as they just check…

---

## [Security for multiple users accessing the same index](https://discuss.elastic.co/t/security-for-multiple-users-accessing-the-same-index/317736)

<div class="topic-metadata">

**Author:** [@HockeyFan0000](https://discuss.elastic.co/u/HockeyFan0000)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 11:12pm UTC](https://discuss.elastic.co/t/security-for-multiple-users-accessing-the-same-index/317736 "2022-10-29T23:12:25Z")

</div>

We have multiple users creating indexes for very few documents. One index has one document they update daily and another has 2-3 documents indexed every two weeks. We would like to combine all these minimal-use cases i…

---

## [How to disable score calculation to improve performance (fuzzy queries)](https://discuss.elastic.co/t/how-to-disable-score-calculation-to-improve-performance-fuzzy-queries/317729)

<div class="topic-metadata">

**Author:** [@Giorgos\_Katiforis](https://discuss.elastic.co/u/Giorgos_Katiforis)\
**Replies:** 0\
**Last updated:** [October 29, 2022, 1:20pm UTC](https://discuss.elastic.co/t/how-to-disable-score-calculation-to-improve-performance-fuzzy-queries/317729 "2022-10-29T13:20:50Z")

</div>

Hello, I would like to know if there is a way to disable the score calculation in Elasticsearch. I am running match queries with fuzziness 2 and I have noticed (using profile )it consumes a lot of time in build\_scorer. …

---

## [Is JavaDoc on the way?](https://discuss.elastic.co/t/is-javadoc-on-the-way/317589)

<div class="topic-metadata">

**Author:** [@Michael\_Gattinger](https://discuss.elastic.co/u/Michael_Gattinger)\
**Replies:** 10\
**Last updated:** [October 29, 2022, 5:45am UTC](https://discuss.elastic.co/t/is-javadoc-on-the-way/317589 "2022-10-29T05:45:04Z")

</div>

Hi, is this only me who thinks that Elasticsearch Java API Client is not well documented? All we get from javadoc is basic information about names of methods. The short less than 10 words sentences als explainations for…

---

## [Does forcing/manually setting the id of the document makes the shards unevenly distributed?](https://discuss.elastic.co/t/does-forcing-manually-setting-the-id-of-the-document-makes-the-shards-unevenly-distributed/317372)

<div class="topic-metadata">

**Author:** [@Java2avaj](https://discuss.elastic.co/u/Java2avaj)\
**Replies:** 7\
**Last updated:** [October 29, 2022, 5:32am UTC](https://discuss.elastic.co/t/does-forcing-manually-setting-the-id-of-the-document-makes-the-shards-unevenly-distributed/317372 "2022-10-29T05:32:29Z")

</div>

Does forcing/manually setting the id of the document makes the shards unevenly distributed? Currently, we are forcing the values of id when storing documents in the index. Is this a bad practice? Does it make the shar…

---

## [Multi\_match phrase\_prefix is giving different results for Elastic versions 6.6 and 8.4](https://discuss.elastic.co/t/multi-match-phrase-prefix-is-giving-different-results-for-elastic-versions-6-6-and-8-4/315979)

<div class="topic-metadata">

**Author:** [@Hariprasad4118](https://discuss.elastic.co/u/Hariprasad4118)\
**Replies:** 1\
**Last updated:** [October 29, 2022, 5:03am UTC](https://discuss.elastic.co/t/multi-match-phrase-prefix-is-giving-different-results-for-elastic-versions-6-6-and-8-4/315979 "2022-10-29T05:03:04Z")

</div>

Team, Please help me, I am using same max expansion and same ES Query on Elastic versions 6.6 and 8.4, with same set of data. but giving different results. so, can some one clearly confirms what is the major differenc…

---

## [Metric aggregation on composite buckets not working with nested fields](https://discuss.elastic.co/t/metric-aggregation-on-composite-buckets-not-working-with-nested-fields/317712)

<div class="topic-metadata">

**Author:** [@Ahmed\_Syed](https://discuss.elastic.co/u/Ahmed_Syed)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 8:30pm UTC](https://discuss.elastic.co/t/metric-aggregation-on-composite-buckets-not-working-with-nested-fields/317712 "2022-10-28T20:30:02Z")

</div>

I am able to create buckets from different sources (one of them being a nested field) successfully. However when I do a metric aggregation, the metric aggregation is not applied on the composite bucket. For example: I c…

---

## [Ignore\_case doesn't work for elastic search stop token filter](https://discuss.elastic.co/t/ignore-case-doesnt-work-for-elastic-search-stop-token-filter/317706)

<div class="topic-metadata">

**Author:** [@taugusti](https://discuss.elastic.co/u/taugusti)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 6:23pm UTC](https://discuss.elastic.co/t/ignore-case-doesnt-work-for-elastic-search-stop-token-filter/317706 "2022-10-28T18:23:22Z")

</div>

Trying to follow the example from the URL below to ignore case for stop words. However it doesn't seem to stop case insensitive stop words. for eg it stop "the", but not "The" PUT /my-index-000001 { "settings": { …

---

## [Elastic Search Query performance when source is disabled](https://discuss.elastic.co/t/elastic-search-query-performance-when-source-is-disabled/317348)

<div class="topic-metadata">

**Author:** [@prateek\_shekhar](https://discuss.elastic.co/u/prateek_shekhar)\
**Replies:** 11\
**Last updated:** [October 28, 2022, 6:14pm UTC](https://discuss.elastic.co/t/elastic-search-query-performance-when-source-is-disabled/317348 "2022-10-28T18:14:40Z")

</div>

Hi Everyone, we have an Elasticsearch index with 100 million documents (with replicas it's about 400 million). The index contains nested documents as well. We have a use case where we have to boost the score of the docu…

---

## [Watcher aggregation transform painless question](https://discuss.elastic.co/t/watcher-aggregation-transform-painless-question/317697)

<div class="topic-metadata">

**Author:** [@joe0228](https://discuss.elastic.co/u/joe0228)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 3:44pm UTC](https://discuss.elastic.co/t/watcher-aggregation-transform-painless-question/317697 "2022-10-28T15:44:42Z")

</div>

Trying to get the result from bucket\_script to use in the transform section - specifically v = params.value // { "trigger": { "schedule": { "intervel": "15m" } }, "input": { "search": { "request": { "search\_ty…

---

## [Lost indice without any warning](https://discuss.elastic.co/t/lost-indice-without-any-warning/317668)

<div class="topic-metadata">

**Author:** [@Henri\_L](https://discuss.elastic.co/u/Henri_L)\
**Replies:** 9\
**Last updated:** [October 28, 2022, 10:24am UTC](https://discuss.elastic.co/t/lost-indice-without-any-warning/317668 "2022-10-28T10:24:12Z")

</div>

Hi there I just notice that I lost my indice and this is a bit strange. Could you please help me with the log file below? The command curl -X GET "localhost:9200/\_cat/indices?v" only give me that health status index…

---

## [Prepended Term Search is Faster than Term Search for Nested Field](https://discuss.elastic.co/t/prepended-term-search-is-faster-than-term-search-for-nested-field/317567)

<div class="topic-metadata">

**Author:** [@aschattopadhyay](https://discuss.elastic.co/u/aschattopadhyay)\
**Replies:** 2\
**Last updated:** [October 28, 2022, 6:11am UTC](https://discuss.elastic.co/t/prepended-term-search-is-faster-than-term-search-for-nested-field/317567 "2022-10-28T06:11:23Z")

</div>

Hi there: I am very new to Elasticsearch implementation and luckily I got this forum. Just wondering if I can get some help please regarding a scenario that we are facing for our Elasticsearch instance. We have got lik…

---

## [Customized sort in ElasticSearch](https://discuss.elastic.co/t/customized-sort-in-elasticsearch/317198)

<div class="topic-metadata">

**Author:** [@Apurba](https://discuss.elastic.co/u/Apurba)\
**Replies:** 5\
**Last updated:** [October 28, 2022, 5:02am UTC](https://discuss.elastic.co/t/customized-sort-in-elasticsearch/317198 "2022-10-28T05:02:57Z")

</div>

Can I use custom sort in ES? Like, in my ES data, one field values are -\> "A", "A", "B", "B", "C", "C", "C", "D" Can I sort this like -\> "D", "B", "B", "C", "C", "C", "A", "A" If we can sort like this, how the query s…

---

## [Why is .doc() missing in UpdateOperation?](https://discuss.elastic.co/t/why-is-doc-missing-in-updateoperation/317587)

<div class="topic-metadata">

**Author:** [@Michael\_Gattinger](https://discuss.elastic.co/u/Michael_Gattinger)\
**Replies:** 1\
**Last updated:** [October 28, 2022, 4:15am UTC](https://discuss.elastic.co/t/why-is-doc-missing-in-updateoperation/317587 "2022-10-28T04:15:25Z")

</div>

Hi, as an junior Java developer try to understand the things by using the "easy way". I actually don't understand what requirements like this mean and can't write code from the scratch with that information: update(Fun…

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

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