# Elasticsearch

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

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

**Page:** 1371

---

## [Elasicsearch relation between cpu usage rate with system load](https://discuss.elastic.co/t/elasicsearch-relation-between-cpu-usage-rate-with-system-load/171667)

<div class="topic-metadata">

**Author:** [@yaoqijun](https://discuss.elastic.co/u/yaoqijun)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 9:13am UTC](https://discuss.elastic.co/t/elasicsearch-relation-between-cpu-usage-rate-with-system-load/171667 "2019-03-11T09:13:32Z")

</div>

the tendency of system load not cpu usage rate i not clear with system load

---

## [How to use elastic cluster structure from master to node?](https://discuss.elastic.co/t/how-to-use-elastic-cluster-structure-from-master-to-node/171676)

<div class="topic-metadata">

**Author:** [@khergner](https://discuss.elastic.co/u/khergner)\
**Replies:** 7\
**Last updated:** [March 11, 2019, 8:40am UTC](https://discuss.elastic.co/t/how-to-use-elastic-cluster-structure-from-master-to-node/171676 "2019-03-11T08:40:21Z")

</div>

Hi, I want to design elastic cluster. This now , there are two server. ı choose one server my master server and other server is node. ı have design as below for cluster. is it correct ? or is there another method? Ins…

---

## [11:07:17.097 \[Thread-4\] INFO nia.activedata.repository.ActiveDataRepository - listener timeout after waiting for \[30000\] ms](https://discuss.elastic.co/t/1117-097-thread-4-info-nia-activedata-repository-activedatarepository-listener-timeout-after-waiting-for-30000-ms/171567)

<div class="topic-metadata">

**Author:** [@nikuland](https://discuss.elastic.co/u/nikuland)\
**Replies:** 5\
**Last updated:** [March 11, 2019, 7:26am UTC](https://discuss.elastic.co/t/1117-097-thread-4-info-nia-activedata-repository-activedatarepository-listener-timeout-after-waiting-for-30000-ms/171567 "2019-03-11T07:26:26Z")

</div>

11:07:17.097 \[Thread-4\] INFO nia.activedata.repository.ActiveDataRepository - listener timeout after waiting for \[30000\] ms Get this problem even when i try to read data from elasicsearch

---

## [Match\_phrase score calculation](https://discuss.elastic.co/t/match-phrase-score-calculation/171243)

<div class="topic-metadata">

**Author:** [@kkendzia](https://discuss.elastic.co/u/kkendzia)\
**Replies:** 4\
**Last updated:** [March 11, 2019, 6:27am UTC](https://discuss.elastic.co/t/match-phrase-score-calculation/171243 "2019-03-11T06:27:08Z")

</div>

Hi, we are currently working with elasticsearch 6.6 and we have troubles with match\_phrase and the calculated score. Whats the setting similarity setting is at the moment this: "scripted\_wc": { "type": "scripted", …

---

## [\[2019-03-11T12:09:52,460\]\[ERROR\]\[o.e.x.m.c.c.ClusterStatsCollector\] \[node-2\] collector \[cluster\_stats\] timed out when collecting data](https://discuss.elastic.co/t/2019-03-11t1252-460-error-o-e-x-m-c-c-clusterstatscollector-node-2-collector-cluster-stats-timed-out-when-collecting-data/171664)

<div class="topic-metadata">

**Author:** [@Yeading](https://discuss.elastic.co/u/Yeading)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 4:23am UTC](https://discuss.elastic.co/t/2019-03-11t1252-460-error-o-e-x-m-c-c-clusterstatscollector-node-2-collector-cluster-stats-timed-out-when-collecting-data/171664 "2019-03-11T04:23:40Z")

</div>

\[2019-03-11T12:09:52,460\]\[ERROR\]\[o.e.x.m.c.c.ClusterStatsCollector\] \[node-2\] collector \[cluster\_stats\] timed out when collecting data someone can help me?

---

## [I need help writing a simple custom scoring function](https://discuss.elastic.co/t/i-need-help-writing-a-simple-custom-scoring-function/171644)

<div class="topic-metadata">

**Author:** [@Teddis](https://discuss.elastic.co/u/Teddis)\
**Replies:** 2\
**Last updated:** [March 11, 2019, 12:05am UTC](https://discuss.elastic.co/t/i-need-help-writing-a-simple-custom-scoring-function/171644 "2019-03-11T00:05:41Z")

</div>

I want to implement my own scoring algorithm for a use case that requires finding one distinct document from a query result set. This requires access to two key pieces of information: The number of query terms as analy…

---

## [ES Version 6.5.4 wrong number of available processors](https://discuss.elastic.co/t/es-version-6-5-4-wrong-number-of-available-processors/170658)

<div class="topic-metadata">

**Author:** [@feiwhomai](https://discuss.elastic.co/u/feiwhomai)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 11:01pm UTC](https://discuss.elastic.co/t/es-version-6-5-4-wrong-number-of-available-processors/170658 "2019-03-10T23:01:31Z")

</div>

Hello, I have a question about how ES detect the available processors. Here is what I got: "os" : { "refresh\_interval\_in\_millis" : 1000, "name" : "Linux", "arch" : "amd64", "version" : "4.4.0-87-generic", "availab…

---

## [Advice for restore/configuration](https://discuss.elastic.co/t/advice-for-restore-configuration/171600)

<div class="topic-metadata">

**Author:** [@tudro](https://discuss.elastic.co/u/tudro)\
**Replies:** 5\
**Last updated:** [March 10, 2019, 4:53pm UTC](https://discuss.elastic.co/t/advice-for-restore-configuration/171600 "2019-03-10T16:53:39Z")

</div>

Hello, First of all I'm pretty new to ELK so sorry if my questions seem stupid :slight\_smile: I inherited a crashed elasticsearch. It was a basic/default elk configuration running on one server and used for demo purpos…

---

## [Terms aggregation split by whitespace](https://discuss.elastic.co/t/terms-aggregation-split-by-whitespace/171522)

<div class="topic-metadata">

**Author:** [@EliuFlorez](https://discuss.elastic.co/u/EliuFlorez)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 2:41pm UTC](https://discuss.elastic.co/t/terms-aggregation-split-by-whitespace/171522 "2019-03-10T14:41:51Z")

</div>

I have a bunch of elastic search documents that contain information about jobs ads. I'm trying to aggregate the \*\*title\*\* field to extract the number of "experience" instances from the job posting. e.g. Junior, Senior,…

---

## [Get data from elastic apart from polling](https://discuss.elastic.co/t/get-data-from-elastic-apart-from-polling/171622)

<div class="topic-metadata">

**Author:** [@Xavier\_Pegenaute](https://discuss.elastic.co/u/Xavier_Pegenaute)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 10:56am UTC](https://discuss.elastic.co/t/get-data-from-elastic-apart-from-polling/171622 "2019-03-10T10:56:05Z")

</div>

Dear, I am interested in developing some code which requires some data from Elastic. At the moment I only saw polling methods to get data. Is there any other method ? I am mainly interested in get realtime data, may be …

---

## [Advise needed](https://discuss.elastic.co/t/advise-needed/171198)

<div class="topic-metadata">

**Author:** [@Dinesh\_Chandrasekara](https://discuss.elastic.co/u/Dinesh_Chandrasekara)\
**Replies:** 13\
**Last updated:** [March 10, 2019, 10:33am UTC](https://discuss.elastic.co/t/advise-needed/171198 "2019-03-10T10:33:30Z")

</div>

How to search combining 3 fields in the same document in elastic search. Like if Sachin Tendulkar is in 3 fields sachin tendu lkar. Combine 3 fields and search in it Note :I don't want to use copy to that's used in ind…

---

## [Documents not being indexed](https://discuss.elastic.co/t/documents-not-being-indexed/170354)

<div class="topic-metadata">

**Author:** [@ronyarmon](https://discuss.elastic.co/u/ronyarmon)\
**Replies:** 2\
**Last updated:** [March 10, 2019, 6:09am UTC](https://discuss.elastic.co/t/documents-not-being-indexed/170354 "2019-03-10T06:09:58Z")

</div>

I have collected a text corpus prepared from html documents that were scraped from the same web site. The site and text is in Hebrew. The collection is written to excel file with columns being the title, url and text. I'…

---

## [Delete time based indices on elastic search older than 30 days using date math expression in JAVA gives indexNotExists exception](https://discuss.elastic.co/t/delete-time-based-indices-on-elastic-search-older-than-30-days-using-date-math-expression-in-java-gives-indexnotexists-exception/171365)

<div class="topic-metadata">

**Author:** [@singla\_02](https://discuss.elastic.co/u/singla_02)\
**Replies:** 11\
**Last updated:** [March 9, 2019, 8:41pm UTC](https://discuss.elastic.co/t/delete-time-based-indices-on-elastic-search-older-than-30-days-using-date-math-expression-in-java-gives-indexnotexists-exception/171365 "2019-03-09T20:41:59Z")

</div>

want to delete time based indices on Elasticsearch older than some specific (let's say 30) days using date math expression in JAVA. Trying to implement following approach in our spring boot application using Transaport…

---

## [Is it possible to use lucene expressions in elasticsearch scripts to use tfidf similarities of specific fields as a part of custom scoring function](https://discuss.elastic.co/t/is-it-possible-to-use-lucene-expressions-in-elasticsearch-scripts-to-use-tfidf-similarities-of-specific-fields-as-a-part-of-custom-scoring-function/170904)

<div class="topic-metadata">

**Author:** [@Olga\_Gorun](https://discuss.elastic.co/u/Olga_Gorun)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:24pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-lucene-expressions-in-elasticsearch-scripts-to-use-tfidf-similarities-of-specific-fields-as-a-part-of-custom-scoring-function/170904 "2019-03-09T20:24:31Z")

</div>

I want to build custom Elasticsearch scoring function and see that combines TF-IDF similarities of some document fields with relative given parameters with the help. As Elasticsearch scripts provide access to some Lucene…

---

## [How to access field value with LeafReaderContext in ScriptEngine](https://discuss.elastic.co/t/how-to-access-field-value-with-leafreadercontext-in-scriptengine/171069)

<div class="topic-metadata">

**Author:** [@BrikerMan](https://discuss.elastic.co/u/BrikerMan)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 8:18pm UTC](https://discuss.elastic.co/t/how-to-access-field-value-with-leafreadercontext-in-scriptengine/171069 "2019-03-09T20:18:49Z")

</div>

I am trying to create my customized ScriptEngine. In my case my data like { "body": "a b c a" } { "body": "a b a a" } I want to access the body value "a b a a" during the ScoreScript.execute process. How I can do …

---

## [Is this a good use-case for native scripting?](https://discuss.elastic.co/t/is-this-a-good-use-case-for-native-scripting/170804)

<div class="topic-metadata">

**Author:** [@JulianR](https://discuss.elastic.co/u/JulianR)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 8:03pm UTC](https://discuss.elastic.co/t/is-this-a-good-use-case-for-native-scripting/170804 "2019-03-09T20:03:28Z")

</div>

Hi, We use Elasticsearch to store our database of product information. Recently we added the ability to filter and sort by stock availability. I opted to not store this stock information directly in the document, as it …

---

## [How to build maven packages from gradle command](https://discuss.elastic.co/t/how-to-build-maven-packages-from-gradle-command/170440)

<div class="topic-metadata">

**Author:** [@weizijun](https://discuss.elastic.co/u/weizijun)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 7:56pm UTC](https://discuss.elastic.co/t/how-to-build-maven-packages-from-gradle-command/170440 "2019-03-09T19:56:39Z")

</div>

Now Elasticsearch use gradle to build. I change some client code, and wander to know how to build maven packages. Who can tell me the command, Thanks!

---

## [How to use CompletionSuggestionBuilder with context in java](https://discuss.elastic.co/t/how-to-use-completionsuggestionbuilder-with-context-in-java/171594)

<div class="topic-metadata">

**Author:** [@ZY2zZ](https://discuss.elastic.co/u/ZY2zZ)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 6:22pm UTC](https://discuss.elastic.co/t/how-to-use-completionsuggestionbuilder-with-context-in-java/171594 "2019-03-09T18:22:02Z")

</div>

hi, I want to get a suggestion with context suggester,how can i do it like the first picture with code.The version is 5.5.0. Thanks!

---

## [Can I aggregate using only part of a field?](https://discuss.elastic.co/t/can-i-aggregate-using-only-part-of-a-field/171544)

<div class="topic-metadata">

**Author:** [@m.carey](https://discuss.elastic.co/u/m.carey)\
**Replies:** 2\
**Last updated:** [March 8, 2019, 11:44pm UTC](https://discuss.elastic.co/t/can-i-aggregate-using-only-part-of-a-field/171544 "2019-03-08T23:44:14Z")

</div>

One of the fields in my index is a version number, e.g. "3.0.7", stored as a keyword. I'd like to do aggregations using only part of the version. For example, I'd like a count of the number of documents for each major ve…

---

## [Conditionally aggregating documents in an index?](https://discuss.elastic.co/t/conditionally-aggregating-documents-in-an-index/171560)

<div class="topic-metadata">

**Author:** [@propel](https://discuss.elastic.co/u/propel)\
**Replies:** 11\
**Last updated:** [March 8, 2019, 11:32pm UTC](https://discuss.elastic.co/t/conditionally-aggregating-documents-in-an-index/171560 "2019-03-08T23:32:44Z")

</div>

I'm trying to conditionally aggregate documents in my index based on the existence of another document in the same set. Imagine the following series: {"action": "pressed\_submit", "user": 1, "timestamp": "2016-01-01 00:0…

---

## [Complex sorting with Painless based on nested fields](https://discuss.elastic.co/t/complex-sorting-with-painless-based-on-nested-fields/171590)

<div class="topic-metadata">

**Author:** [@sampaccoud](https://discuss.elastic.co/u/sampaccoud)\
**Replies:** 0\
**Last updated:** [March 9, 2019, 12:22pm UTC](https://discuss.elastic.co/t/complex-sorting-with-painless-based-on-nested-fields/171590 "2019-03-09T12:22:13Z")

</div>

We are developping an opensource portal for education based on DjangoCMS and Elasticsearch (https://github.com/openfun/richie) The catalog is composed of courses which each have course runs with dates, enrollment dates …

---

## [java.lang.NoClassDefFoundError: org/objectweb/asm/commons/Method while starting ElasticSearch](https://discuss.elastic.co/t/java-lang-noclassdeffounderror-org-objectweb-asm-commons-method-while-starting-elasticsearch/171077)

<div class="topic-metadata">

**Author:** [@Vishal\_Goel](https://discuss.elastic.co/u/Vishal_Goel)\
**Replies:** 13\
**Last updated:** [March 9, 2019, 5:37am UTC](https://discuss.elastic.co/t/java-lang-noclassdeffounderror-org-objectweb-asm-commons-method-while-starting-elasticsearch/171077 "2019-03-09T05:37:03Z")

</div>

Hi, I am using Elasticsearch 6.5.4. I am using network location to store the ES setup and run elasticsearch.bat directly from there. I have written a Java program to start ES and put a pipeline definition (via REST). …

---

## [Is key values in a JSON doc indexed?](https://discuss.elastic.co/t/is-key-values-in-a-json-doc-indexed/171413)

<div class="topic-metadata">

**Author:** [@Hari\_Prasad](https://discuss.elastic.co/u/Hari_Prasad)\
**Replies:** 14\
**Last updated:** [March 9, 2019, 4:56am UTC](https://discuss.elastic.co/t/is-key-values-in-a-json-doc-indexed/171413 "2019-03-09T04:56:28Z")

</div>

I have very basic question, when I index a document, for example POST /customer/\_doc/1/\_update?pretty { "doc": { "name": "Jane Doe" } } is the key also indexed?. To be specific the string "name" in the above example…

---

## [Remotely access an elasticsearch server using SSH tunnel](https://discuss.elastic.co/t/remotely-access-an-elasticsearch-server-using-ssh-tunnel/168278)

<div class="topic-metadata">

**Author:** [@amitnegi6190](https://discuss.elastic.co/u/amitnegi6190)\
**Replies:** 1\
**Last updated:** [March 9, 2019, 12:41am UTC](https://discuss.elastic.co/t/remotely-access-an-elasticsearch-server-using-ssh-tunnel/168278 "2019-03-09T00:41:32Z")

</div>

Hi, I have an elasticsearch node on a private network. This node is accessible through aws bastion. So I am trying to connect my local machine to the elasticsearch node by creating an SSH tunnel on port 9200. I use the …

---

## [More Examples of 'search\_after'?](https://discuss.elastic.co/t/more-examples-of-search-after/171553)

<div class="topic-metadata">

**Author:** [@avocado](https://discuss.elastic.co/u/avocado)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 8:33pm UTC](https://discuss.elastic.co/t/more-examples-of-search-after/171553 "2019-03-08T20:33:17Z")

</div>

Please excuse me for being obtuse, but the explanation of how the 'search\_after' query works is completely confusing to me https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html …

---

## [Highlighting on \`match\_phrase\` with \`index\_phrases\` enabled does not seem to work](https://discuss.elastic.co/t/highlighting-on-match-phrase-with-index-phrases-enabled-does-not-seem-to-work/171552)

<div class="topic-metadata">

**Author:** [@loren](https://discuss.elastic.co/u/loren)\
**Replies:** 0\
**Last updated:** [March 8, 2019, 8:14pm UTC](https://discuss.elastic.co/t/highlighting-on-match-phrase-with-index-phrases-enabled-does-not-seem-to-work/171552 "2019-03-08T20:14:13Z")

</div>

I'm experimenting with the index\_phrases functionality introduced in 6.4.0. When I use a match\_phrase query and try to highlight the result, no highlights are returned. If I use match, I get highlights. Example: DELETE …

---

## [Authenticated Elastic API - Best Practice](https://discuss.elastic.co/t/authenticated-elastic-api-best-practice/171397)

<div class="topic-metadata">

**Author:** [@cgoss](https://discuss.elastic.co/u/cgoss)\
**Replies:** 2\
**Last updated:** [March 8, 2019, 7:33pm UTC](https://discuss.elastic.co/t/authenticated-elastic-api-best-practice/171397 "2019-03-08T19:33:07Z")

</div>

What would be the best practice to implement role based security between a back end service and Elasticsearch? Basic Http Authentication or Token Based oAuth using bearer tokens. I would lean towards the latter because…

---

## [Line check for index migration, upgrade to 6.x from 5.x, removal of types from index](https://discuss.elastic.co/t/line-check-for-index-migration-upgrade-to-6-x-from-5-x-removal-of-types-from-index/171548)

<div class="topic-metadata">

**Author:** [@Jbrar](https://discuss.elastic.co/u/Jbrar)\
**Replies:** 0\
**Last updated:** [March 8, 2019, 7:21pm UTC](https://discuss.elastic.co/t/line-check-for-index-migration-upgrade-to-6-x-from-5-x-removal-of-types-from-index/171548 "2019-03-08T19:21:53Z")

</div>

We are upgrading from ElasticSearch 5.x to 6.x Currently we have 8 language specific indexes with 4 mapping types in each. Approximately 30K documents, which are not evenly distributed between the 8 indexes (certain ind…

---

## [How to be sure that all documents indexed?](https://discuss.elastic.co/t/how-to-be-sure-that-all-documents-indexed/171543)

<div class="topic-metadata">

**Author:** [@matchish](https://discuss.elastic.co/u/matchish)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 6:51pm UTC](https://discuss.elastic.co/t/how-to-be-sure-that-all-documents-indexed/171543 "2019-03-08T18:51:36Z")

</div>

I have a question about Index Aliases and Zero Downtime When we put a document to an index it takes time until document available for search. How to check that all documents available for search before switching from o…

---

## [java.lang.ClassNotFoundException: org.bouncycastle.operator.OperatorCreationException](https://discuss.elastic.co/t/java-lang-classnotfoundexception-org-bouncycastle-operator-operatorcreationexception/171133)

<div class="topic-metadata">

**Author:** [@avinash\_07](https://discuss.elastic.co/u/avinash_07)\
**Replies:** 10\
**Last updated:** [March 8, 2019, 6:41pm UTC](https://discuss.elastic.co/t/java-lang-classnotfoundexception-org-bouncycastle-operator-operatorcreationexception/171133 "2019-03-08T18:41:39Z")

</div>

I wanted to try out X-Pack and when i run my spring application after adding the dependencies, I am getting the following error Caused by: java.lang.NoClassDefFoundError: org/bouncycastle/operator/OperatorCreationExcept…

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

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