# Elasticsearch

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

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

**Page:** 1451

---

## [Issues about BulkProcessor with JAVA High Level Client](https://discuss.elastic.co/t/issues-about-bulkprocessor-with-java-high-level-client/161168)

<div class="topic-metadata">

**Author:** [@NikolaDai](https://discuss.elastic.co/u/NikolaDai)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 3:06pm UTC](https://discuss.elastic.co/t/issues-about-bulkprocessor-with-java-high-level-client/161168 "2018-12-17T15:06:40Z")

</div>

i was trying to use bulkprocessor with java high level client. I copied the demo code in https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-document-bulk.html .However, it tells that it…

---

## [Geo\_distance query - illegal latitude value that isn't the latitude I sent](https://discuss.elastic.co/t/geo-distance-query-illegal-latitude-value-that-isnt-the-latitude-i-sent/160913)

<div class="topic-metadata">

**Author:** [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 3:02pm UTC](https://discuss.elastic.co/t/geo-distance-query-illegal-latitude-value-that-isnt-the-latitude-i-sent/160913 "2018-12-17T15:02:11Z")

</div>

I'm getting some odd behaviour when doing geo\_distance queries via the Rest High Level API on elasticsearch v6.2.4. For example, my query is this: { "from":0, "size":20, "query": { "bool": { "must": \[{ …

---

## [Sort Terms Aggregations on Keyword field](https://discuss.elastic.co/t/sort-terms-aggregations-on-keyword-field/161175)

<div class="topic-metadata">

**Author:** [@naceur\_ben\_said](https://discuss.elastic.co/u/naceur_ben_said)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 2:54pm UTC](https://discuss.elastic.co/t/sort-terms-aggregations-on-keyword-field/161175 "2018-12-17T14:54:33Z")

</div>

Hi, I have a issue with sorting Terms aggragtion in the keyword field, this is my exemple : PUT event { "settings": { "index": { "number\_of\_shards": 1, "number\_of\_replicas": 0 } }, "mappings":…

---

## [(java) I don’t know why this error occurs \[Validation Failed: 1: no requests added\]](https://discuss.elastic.co/t/java-i-don-t-know-why-this-error-occurs-validation-failed-1-no-requests-added/157952)

<div class="topic-metadata">

**Author:** [@ksb304](https://discuss.elastic.co/u/ksb304)\
**Replies:** 2\
**Last updated:** [December 17, 2018, 2:25pm UTC](https://discuss.elastic.co/t/java-i-don-t-know-why-this-error-occurs-validation-failed-1-no-requests-added/157952 "2018-12-17T14:25:18Z")

</div>

simple code (java) public void run(){ int count = 0; BulkRequest buklRequest = new BulkRequest(); while(rs.next()){ IndexRequest indexRequest = new IndexRequest(index, type, id); bukl…

---

## [How to add an element into multi level nested Arrays in Elasticsearch](https://discuss.elastic.co/t/how-to-add-an-element-into-multi-level-nested-arrays-in-elasticsearch/161164)

<div class="topic-metadata">

**Author:** [@Gereksiz\_Seyler](https://discuss.elastic.co/u/Gereksiz_Seyler)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 2:05pm UTC](https://discuss.elastic.co/t/how-to-add-an-element-into-multi-level-nested-arrays-in-elasticsearch/161164 "2018-12-17T14:05:41Z")

</div>

My data: "\_source": { "owner": "102195915017611526666", "boxes": \[ { "box\_id": "999", "items": \[ { "item\_id": "123", "item\_key": "x", "item\_value": "y" } \] }, { "box\_id": "888", "items": …

---

## [Jira Account Settings and Cluster Settings](https://discuss.elastic.co/t/jira-account-settings-and-cluster-settings/160622)

<div class="topic-metadata">

**Author:** [@Micah\_Hunsberger](https://discuss.elastic.co/u/Micah_Hunsberger)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 1:59pm UTC](https://discuss.elastic.co/t/jira-account-settings-and-cluster-settings/160622 "2018-12-17T13:59:49Z")

</div>

I discovered a weird behavior with the jira settings in elasticsearch 6.5.x. It seems if you have them enabled in the elasticsearch keystore, then you cannot update the cluster settings. All I have is a standalone elast…

---

## [Elasticsearch- Prevent Highlight on fuzzy match when exact match is found](https://discuss.elastic.co/t/elasticsearch-prevent-highlight-on-fuzzy-match-when-exact-match-is-found/161152)

<div class="topic-metadata">

**Author:** [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 1:02pm UTC](https://discuss.elastic.co/t/elasticsearch-prevent-highlight-on-fuzzy-match-when-exact-match-is-found/161152 "2018-12-17T13:02:47Z")

</div>

I am finding issues while highlighting text due to fuzziness. When i am searching on advertising and printing, the results shown are "advertising and printing", "printing", "writing" and "painting" I want to avoid highl…

---

## [A primary shard can store up to Integer.MAX\_VALUE -128 documents, how could es do if if the number of documents exceeds this value? thanks](https://discuss.elastic.co/t/a-primary-shard-can-store-up-to-integer-max-value-128-documents-how-could-es-do-if-if-the-number-of-documents-exceeds-this-value-thanks/161143)

<div class="topic-metadata">

**Author:** [@zcx](https://discuss.elastic.co/u/zcx)\
**Replies:** 4\
**Last updated:** [December 17, 2018, 12:46pm UTC](https://discuss.elastic.co/t/a-primary-shard-can-store-up-to-integer-max-value-128-documents-how-could-es-do-if-if-the-number-of-documents-exceeds-this-value-thanks/161143 "2018-12-17T12:46:51Z")

</div>

as above. thanks

---

## [Performance issue due to dynamic mapping](https://discuss.elastic.co/t/performance-issue-due-to-dynamic-mapping/161142)

<div class="topic-metadata">

**Author:** [@bdominguez](https://discuss.elastic.co/u/bdominguez)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 12:25pm UTC](https://discuss.elastic.co/t/performance-issue-due-to-dynamic-mapping/161142 "2018-12-17T12:25:06Z")

</div>

Hello everyone. I am recently working with Elasticsearch and I have some trouble with the mapping and indices, causing the performance to be a little slow. I am trying to load 1.500.000 documents (about 30GB) in an Ama…

---

## [ES license cost](https://discuss.elastic.co/t/es-license-cost/161139)

<div class="topic-metadata">

**Author:** [@Muj33b](https://discuss.elastic.co/u/Muj33b)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 12:17pm UTC](https://discuss.elastic.co/t/es-license-cost/161139 "2018-12-17T12:17:54Z")

</div>

Hi, I would like to know how does X-Pack license works. If the cluster is setup as 5 (Data)+3 (Master)+2 (Client - Kibana) nodes, will it be charged for per nodes totalling 10 nodes or just for 3 (Master) + 2 (Client) …

---

## [Accessing value from first array element - filtered](https://discuss.elastic.co/t/accessing-value-from-first-array-element-filtered/161126)

<div class="topic-metadata">

**Author:** [@pyk](https://discuss.elastic.co/u/pyk)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 11:04am UTC](https://discuss.elastic.co/t/accessing-value-from-first-array-element-filtered/161126 "2018-12-17T11:04:05Z")

</div>

Hi! After spent weekend looking for answer I decided to ask you for help. I have an index with products. Variants are nested list of objects in the products and i sort them by stock quantity and some other conditions whi…

---

## [GCP Repo giving certificate error](https://discuss.elastic.co/t/gcp-repo-giving-certificate-error/161133)

<div class="topic-metadata">

**Author:** [@Jonathan\_Tan](https://discuss.elastic.co/u/Jonathan_Tan)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 11:51am UTC](https://discuss.elastic.co/t/gcp-repo-giving-certificate-error/161133 "2018-12-17T11:51:16Z")

</div>

Hi, I'm trying to install the gcp plugin as described here: https://www.elastic.co/guide/en/elasticsearch/plugins/6.3/repository-gcs.html I'm also running this in Kubernetes, and am running a custom docker image so tha…

---

## [Significant term aggregation with Snowball analyzer](https://discuss.elastic.co/t/significant-term-aggregation-with-snowball-analyzer/160881)

<div class="topic-metadata">

**Author:** [@pramod.kumar2](https://discuss.elastic.co/u/pramod.kumar2)\
**Replies:** 10\
**Last updated:** [December 17, 2018, 11:35am UTC](https://discuss.elastic.co/t/significant-term-aggregation-with-snowball-analyzer/160881 "2018-12-17T11:35:52Z")

</div>

Hi, I am using elasticsearch snowball analyzer for product field in an index. I need to get significant terms from elasticsearch aggregation(significant terms aggregation), but the results are not correct. The problem i…

---

## [Uncontrolled merge process on few indices](https://discuss.elastic.co/t/uncontrolled-merge-process-on-few-indices/160103)

<div class="topic-metadata">

**Author:** [@shshnk28](https://discuss.elastic.co/u/shshnk28)\
**Replies:** 10\
**Last updated:** [December 17, 2018, 11:19am UTC](https://discuss.elastic.co/t/uncontrolled-merge-process-on-few-indices/160103 "2018-12-17T11:19:09Z")

</div>

Hi , We have a 7 node cluster running on ES version 5.2.1. We have observed that ES internal merge process sometimes goes berserk for couple of indices, runs for more than 3 days and consumes the server resources (li…

---

## [Sort by multiple values based on nested document](https://discuss.elastic.co/t/sort-by-multiple-values-based-on-nested-document/156456)

<div class="topic-metadata">

**Author:** [@pyk](https://discuss.elastic.co/u/pyk)\
**Replies:** 0\
**Last updated:** [November 13, 2018, 11:13am UTC](https://discuss.elastic.co/t/sort-by-multiple-values-based-on-nested-document/156456 "2018-11-13T11:13:24Z")

</div>

I'm tryin to move my sorting mechanism from application to elasticseach but with no result. All i want to do is sort returned docs in elastic by nested item price and available quantity. Just simple as sql-type order lik…

---

## [Deprecation logging](https://discuss.elastic.co/t/deprecation-logging/161060)

<div class="topic-metadata">

**Author:** [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Replies:** 2\
**Last updated:** [December 17, 2018, 10:47am UTC](https://discuss.elastic.co/t/deprecation-logging/161060 "2018-12-17T10:47:38Z")

</div>

What does deprecation logging mean? It means that when “logger.deprecation.level = warn” is set, each time a deprecated class/method/interface is invoked, the corresponding logging message would be printed out. Am I corr…

---

## [Combine and enrich data before ingestion](https://discuss.elastic.co/t/combine-and-enrich-data-before-ingestion/160974)

<div class="topic-metadata">

**Author:** [@gerasimos](https://discuss.elastic.co/u/gerasimos)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 10:27am UTC](https://discuss.elastic.co/t/combine-and-enrich-data-before-ingestion/160974 "2018-12-17T10:27:26Z")

</div>

Hello, I have a web application that generate log files which are then ingested to via Beat-Logstash to ElasticSearch. Now I need to combine information from different log lines or even different log files before insert…

---

## [Conditional counts on subbuckets](https://discuss.elastic.co/t/conditional-counts-on-subbuckets/160110)

<div class="topic-metadata">

**Author:** [@cabp](https://discuss.elastic.co/u/cabp)\
**Replies:** 4\
**Last updated:** [December 17, 2018, 10:25am UTC](https://discuss.elastic.co/t/conditional-counts-on-subbuckets/160110 "2018-12-17T10:25:53Z")

</div>

I want to get the counts of nested groups which satisfy a certain condition. Consider the following: DELETE usagestats PUT usagestats/test/1 { "user-id": "abc", "session-id": "abc-1", "action": "A123" } PUT usag…

---

## [Got error when starting a elastic server cluster](https://discuss.elastic.co/t/got-error-when-starting-a-elastic-server-cluster/156209)

<div class="topic-metadata">

**Author:** [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Replies:** 16\
**Last updated:** [December 17, 2018, 10:09am UTC](https://discuss.elastic.co/t/got-error-when-starting-a-elastic-server-cluster/156209 "2018-12-17T10:09:14Z")

</div>

I got error like below in both servers \[2018-11-11T12:38:21,155\]\[WARN \]\[o.e.b.JNANatives \] Unable to lock JVM Memory: error=12, reason=Cannot allocate memory \[2018-11-11T12:38:21,157\]\[WARN \]\[o.e.b.JNANatives …

---

## [Disable Security settings in Elasticsearch at the cloud](https://discuss.elastic.co/t/disable-security-settings-in-elasticsearch-at-the-cloud/161082)

<div class="topic-metadata">

**Author:** [@Shyju\_M](https://discuss.elastic.co/u/Shyju_M)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 9:33am UTC](https://discuss.elastic.co/t/disable-security-settings-in-elasticsearch-at-the-cloud/161082 "2018-12-17T09:33:09Z")

</div>

Hey Guys, How can I disable the security check for the kibana dashboard. I am currently using therir own cloud to deploy the server. where are the config files are found?

---

## [AWS D2 type instance search performance question](https://discuss.elastic.co/t/aws-d2-type-instance-search-performance-question/161019)

<div class="topic-metadata">

**Author:** [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 6:51am UTC](https://discuss.elastic.co/t/aws-d2-type-instance-search-performance-question/161019 "2018-12-17T06:51:59Z")

</div>

Hi. I setup my cluster with only i3.2xlarge nodes and considering change to hot warm architecture. With all of i3.2xlarge nodes, I don't have big issue to search documents. But I'm worring about d2 type instance's sear…

---

## [Snapshots in a Windows Server](https://discuss.elastic.co/t/snapshots-in-a-windows-server/161078)

<div class="topic-metadata">

**Author:** [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Replies:** 0\
**Last updated:** [December 17, 2018, 6:33am UTC](https://discuss.elastic.co/t/snapshots-in-a-windows-server/161078 "2018-12-17T06:33:38Z")

</div>

Hi- I have my Cluster configured with 3 nodes, and all of them are installed in Ubuntu servers. I would like to take a snapshots and move it to a shared folder which is located in a Windows Server. I understood from the…

---

## [How to use min\_term\_freq with bool query?](https://discuss.elastic.co/t/how-to-use-min-term-freq-with-bool-query/160996)

<div class="topic-metadata">

**Author:** [@mia](https://discuss.elastic.co/u/mia)\
**Replies:** 4\
**Last updated:** [December 17, 2018, 6:25am UTC](https://discuss.elastic.co/t/how-to-use-min-term-freq-with-bool-query/160996 "2018-12-17T06:25:57Z")

</div>

I have this query: { "bool":{ "must":\[ { "multi\_match":{ "query":"foo", "fields":\[ "title", "body" \] …

---

## [What are the benefits of certutil over openssl?](https://discuss.elastic.co/t/what-are-the-benefits-of-certutil-over-openssl/161061)

<div class="topic-metadata">

**Author:** [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 6:18am UTC](https://discuss.elastic.co/t/what-are-the-benefits-of-certutil-over-openssl/161061 "2018-12-17T06:18:19Z")

</div>

I'm new to using it but I'm wondering what the major benefits are over using just the standard openssl?

---

## [How to get array filed values for pagination from index?](https://discuss.elastic.co/t/how-to-get-array-filed-values-for-pagination-from-index/159922)

<div class="topic-metadata">

**Author:** [@VijayJetti](https://discuss.elastic.co/u/VijayJetti)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 6:14am UTC](https://discuss.elastic.co/t/how-to-get-array-filed-values-for-pagination-from-index/159922 "2018-12-17T06:14:29Z")

</div>

Hi, I am basically a java developer and just started learning elasticsearch. I have a requirement as below. I have a Customer and Address models in Java. Let's assume one Customer having 1000 addresses. If we get all ad…

---

## [Exception \[not an SSL/TLS record\] in es log and \[None of the configured nodes are available\] in java](https://discuss.elastic.co/t/exception-not-an-ssl-tls-record-in-es-log-and-none-of-the-configured-nodes-are-available-in-java/160875)

<div class="topic-metadata">

**Author:** [@lip](https://discuss.elastic.co/u/lip)\
**Replies:** 5\
**Last updated:** [December 17, 2018, 6:10am UTC](https://discuss.elastic.co/t/exception-not-an-ssl-tls-record-in-es-log-and-none-of-the-configured-nodes-are-available-in-java/160875 "2018-12-17T06:10:01Z")

</div>

There is another problem show out after i made dependencies right. Every time i try TransportClient search, es log : \[2018-12-14T16:57:38,235\]\[WARN \]\[o.e.x.s.t.n.SecurityNetty4ServerTransport\] \[PjlTJv4\] exception caug…

---

## [Convert string to int if it contains only int](https://discuss.elastic.co/t/convert-string-to-int-if-it-contains-only-int/161074)

<div class="topic-metadata">

**Author:** [@sid\_nikhil](https://discuss.elastic.co/u/sid_nikhil)\
**Replies:** 4\
**Last updated:** [December 17, 2018, 6:08am UTC](https://discuss.elastic.co/t/convert-string-to-int-if-it-contains-only-int/161074 "2018-12-17T06:08:03Z")

</div>

String parts = "123" parts.matches("\[0-9\]+") ?Integer.parseInt(parts): parts I am using above script to create a scripted field if a string contains integer : convert it to int and return else return as it is But i …

---

## [Elastic Indexer in nutch2.2](https://discuss.elastic.co/t/elastic-indexer-in-nutch2-2/159654)

<div class="topic-metadata">

**Author:** [@Subasini](https://discuss.elastic.co/u/Subasini)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 5:32am UTC](https://discuss.elastic.co/t/elastic-indexer-in-nutch2-2/159654 "2018-12-17T05:32:46Z")

</div>

Hi all, I am new to elasticsearch. I am using nutch2.2 as web crawler and elasticsearch 6.1.1. When I am trying to do the indexing, it is not working. I am executing the command - bin/nutch elasticindex elasticsearch …

---

## [Default number of fields allowed in Elasticsearch](https://discuss.elastic.co/t/default-number-of-fields-allowed-in-elasticsearch/161069)

<div class="topic-metadata">

**Author:** [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 4:12am UTC](https://discuss.elastic.co/t/default-number-of-fields-allowed-in-elasticsearch/161069 "2018-12-17T04:12:22Z")

</div>

Hi, I am indexing a document with over 1000 fields. But at first, I am creating mapping file for this. Due to this, my mapping file returns an exception. I have handled this issue by increasing the limit of fields to 2…

---

## [Curator\_cli jason query question](https://discuss.elastic.co/t/curator-cli-jason-query-question/161056)

<div class="topic-metadata">

**Author:** [@alexsamad](https://discuss.elastic.co/u/alexsamad)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 12:41am UTC](https://discuss.elastic.co/t/curator-cli-jason-query-question/161056 "2018-12-17T00:41:46Z")

</div>

Hi I have indexes like -filebeats-YYYY.MM.DD uat-filebeat-2018.05.25 dev-filebeat-2018.05.25 prod-filebeat-2018.05.25 I would like to keep say prod for 45 days and non prod for say 7 days. I found on here but I …

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

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