# Elasticsearch

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

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

**Page:** 1300

---

## [Elasticsearch version 7.0 and JAVA version](https://discuss.elastic.co/t/elasticsearch-version-7-0-and-java-version/181202)

<div class="topic-metadata">

**Author:** [@ttdata](https://discuss.elastic.co/u/ttdata)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 1:33pm UTC](https://discuss.elastic.co/t/elasticsearch-version-7-0-and-java-version/181202 "2019-05-15T13:33:17Z")

</div>

Hey, I'm wondering about JAVA version with ES 7.0. Does ES 7.0 work better with java12 instead for instance java 8 ? My previous setup was ES 6.7.1 with shenandoah. Hot nodes : 196Go heap / 20 cores-40 threads / 2,5T…

---

## [Warning on elasticsearch logs](https://discuss.elastic.co/t/warning-on-elasticsearch-logs/181192)

<div class="topic-metadata">

**Author:** [@elk2](https://discuss.elastic.co/u/elk2)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 1:14pm UTC](https://discuss.elastic.co/t/warning-on-elasticsearch-logs/181192 "2019-05-15T13:14:47Z")

</div>

With an old version of elasticsearch ( 1.4.3 ) I have several warning. Can you explicate me what mean this warning? 29064:\[2019-04-15 20:27:37,045\]\[WARN \]\[monitor.jvm \] \[Node2\] \[gc\]\[old\]\[24838177\]\[1073…

---

## [Making the Timestamp's type "Date" instead of "String"](https://discuss.elastic.co/t/making-the-timestamps-type-date-instead-of-string/181196)

<div class="topic-metadata">

**Author:** [@WarriorHarb](https://discuss.elastic.co/u/WarriorHarb)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 12:47pm UTC](https://discuss.elastic.co/t/making-the-timestamps-type-date-instead-of-string/181196 "2019-05-15T12:47:40Z")

</div>

Hello , So i'm stuck with a problem here: I have some log files with an unstructured data. I parse them using logstash (grok filter). The problem is i want to display them in the same order in the log file (ordered by …

---

## [Sequence of clauses for performance](https://discuss.elastic.co/t/sequence-of-clauses-for-performance/181199)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 12:52pm UTC](https://discuss.elastic.co/t/sequence-of-clauses-for-performance/181199 "2019-05-15T12:52:14Z")

</div>

I was curious to know whether the sequence of the clauses matter when we query elasticsearch. If clause A matches 5k docs and clause B matches 2k docs. Which clause should be placed before the other one ? Or the sequenc…

---

## [Process data regularly](https://discuss.elastic.co/t/process-data-regularly/181198)

<div class="topic-metadata">

**Author:** [@hassen](https://discuss.elastic.co/u/hassen)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 12:52pm UTC](https://discuss.elastic.co/t/process-data-regularly/181198 "2019-05-15T12:52:07Z")

</div>

I would like to process the data I have in a regular way (let's say every 10m or more) in order to create new fields without the regular intervention of the user. To clarify more, I give you one concrete example : with …

---

## [Denormalized Data vs. Joins](https://discuss.elastic.co/t/denormalized-data-vs-joins/181041)

<div class="topic-metadata">

**Author:** [@donnie](https://discuss.elastic.co/u/donnie)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 12:51pm UTC](https://discuss.elastic.co/t/denormalized-data-vs-joins/181041 "2019-05-15T12:51:21Z")

</div>

If I have many posts that belong to a particular user, is it better to do a parent/child relationship or denormalize the data by putting the user in every post document. In my use-case, the user is regularly being updat…

---

## [Lucene collector took too much time, why?](https://discuss.elastic.co/t/lucene-collector-took-too-much-time-why/181168)

<div class="topic-metadata">

**Author:** [@traeyee](https://discuss.elastic.co/u/traeyee)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 11:50am UTC](https://discuss.elastic.co/t/lucene-collector-took-too-much-time-why/181168 "2019-05-15T11:50:15Z")

</div>

I'm using es 5.4 for searching purpose. I test it on single-node cluster and I've done the warmup to take advantage of the filesystem cache. After using profile to track the query, I found that the bottleneck is the time…

---

## [How to create Java query for a script](https://discuss.elastic.co/t/how-to-create-java-query-for-a-script/181162)

<div class="topic-metadata">

**Author:** [@Santosh\_Pandey](https://discuss.elastic.co/u/Santosh_Pandey)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 11:14am UTC](https://discuss.elastic.co/t/how-to-create-java-query-for-a-script/181162 "2019-05-15T11:14:15Z")

</div>

I have 2 attributes: price1 and price2. I need to filter the result if price1 \< price2 How to create Java code for it. I have written the following: QueryBuilders.boolQuery() .filter(QueryBuilders.scriptQuery("doc\['l…

---

## [Will reindex operation executes sequential if document ids mentioned in source](https://discuss.elastic.co/t/will-reindex-operation-executes-sequential-if-document-ids-mentioned-in-source/181149)

<div class="topic-metadata">

**Author:** [@kshi\_yelpale000](https://discuss.elastic.co/u/kshi_yelpale000)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 10:49am UTC](https://discuss.elastic.co/t/will-reindex-operation-executes-sequential-if-document-ids-mentioned-in-source/181149 "2019-05-15T10:49:09Z")

</div>

Hi all, If i mentioned list of document ids in source while reindex operation, then is it provable that all ids is been reindexed sequentially. I have concern here that if reindex operation stopped in any case then wha…

---

## [Is it possible to integrate SQL query into ElasticSearch Java API](https://discuss.elastic.co/t/is-it-possible-to-integrate-sql-query-into-elasticsearch-java-api/179063)

<div class="topic-metadata">

**Author:** [@Barun\_Kumar](https://discuss.elastic.co/u/Barun_Kumar)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 10:11am UTC](https://discuss.elastic.co/t/is-it-possible-to-integrate-sql-query-into-elasticsearch-java-api/179063 "2019-05-15T10:11:12Z")

</div>

I have to search some data using JAVA API. I can do the same using X\_PACK Sql query. Same needs to be done through JAVA API. I have searched a lot but didn't find the reult. My Sql Query is like: select map.serviceName…

---

## [ElasticSearch crashes in single node cluster- Issue #1](https://discuss.elastic.co/t/elasticsearch-crashes-in-single-node-cluster-issue-1/180781)

<div class="topic-metadata">

**Author:** [@HPVRNP](https://discuss.elastic.co/u/HPVRNP)\
**Replies:** 19\
**Last updated:** [May 15, 2019, 9:36am UTC](https://discuss.elastic.co/t/elasticsearch-crashes-in-single-node-cluster-issue-1/180781 "2019-05-15T09:36:36Z")

</div>

Hi, Environment: OS : Windows 64-bit ElasticSearch : 6.6.2 Java: 1.8.151 Cluster: Single Node cluster Index strategy: Indices are created daily and programmatically Shard: Single shard per index and no replicatio…

---

## [There are no living connections in the connection pool](https://discuss.elastic.co/t/there-are-no-living-connections-in-the-connection-pool/181021)

<div class="topic-metadata">

**Author:** [@Ludek](https://discuss.elastic.co/u/Ludek)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 8:29am UTC](https://discuss.elastic.co/t/there-are-no-living-connections-in-the-connection-pool/181021 "2019-05-15T08:29:08Z")

</div>

Hello, because of network problems, I build a separate internal network only for ELK nodes. Network nodeXY-elk-local. This network is used for Elastic communication. On another network card is network intranet used for …

---

## [How to add url parameters to elasticsearch UpdateByQuery in elasticsearch](https://discuss.elastic.co/t/how-to-add-url-parameters-to-elasticsearch-updatebyquery-in-elasticsearch/181118)

<div class="topic-metadata">

**Author:** [@blueren](https://discuss.elastic.co/u/blueren)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 8:26am UTC](https://discuss.elastic.co/t/how-to-add-url-parameters-to-elasticsearch-updatebyquery-in-elasticsearch/181118 "2019-05-15T08:26:06Z")

</div>

Hello, I have a nodejs app that calls ES's updateByQuery API like below: elasticsearchClient.updateByQuery({ index: 'logstash-dev-2019.05.14', body: { "query": { …

---

## [Find category type base on sub type](https://discuss.elastic.co/t/find-category-type-base-on-sub-type/180967)

<div class="topic-metadata">

**Author:** [@Alexandre\_Piel](https://discuss.elastic.co/u/Alexandre_Piel)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 7:47am UTC](https://discuss.elastic.co/t/find-category-type-base-on-sub-type/180967 "2019-05-15T07:47:35Z")

</div>

Hi, I am quiet new in elasticsearch and it's very hard to find right solution with all the possibilities elasticsearch offers. So maybe asking question here, will be easier. I need a way to identify some category, for e…

---

## [Tasks APIs](https://discuss.elastic.co/t/tasks-apis/181109)

<div class="topic-metadata">

**Author:** [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 7:25am UTC](https://discuss.elastic.co/t/tasks-apis/181109 "2019-05-15T07:25:14Z")

</div>

I need use java high rest api's tasks api,but what roles should have with user？

---

## [Score threshold for significant terms query](https://discuss.elastic.co/t/score-threshold-for-significant-terms-query/181106)

<div class="topic-metadata">

**Author:** [@Yonatan\_Omer](https://discuss.elastic.co/u/Yonatan_Omer)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 7:07am UTC](https://discuss.elastic.co/t/score-threshold-for-significant-terms-query/181106 "2019-05-15T07:07:16Z")

</div>

When displaying significant Terms results in a table in Kibana, we cannot display the score or compare doc\_count to bg-count. When data analytic view such a table, he cannot determine if the result is really unusual, or…

---

## [Using customized id\_key in elasticsearch](https://discuss.elastic.co/t/using-customized-id-key-in-elasticsearch/181103)

<div class="topic-metadata">

**Author:** [@ashleshmandke](https://discuss.elastic.co/u/ashleshmandke)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 6:42am UTC](https://discuss.elastic.co/t/using-customized-id-key-in-elasticsearch/181103 "2019-05-15T06:42:06Z")

</div>

Hi All, I am using td-agent v3.3 fluentd and elasticsearch/kibana v6.3. I have a file containing 5-6 columns and to avoid duplicates want to use customized id\_key which I am getting from file right away as in ac\_no My…

---

## [Match search is slow, but I can't figure out the reason even using profile API](https://discuss.elastic.co/t/match-search-is-slow-but-i-cant-figure-out-the-reason-even-using-profile-api/181100)

<div class="topic-metadata">

**Author:** [@traeyee](https://discuss.elastic.co/u/traeyee)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 6:36am UTC](https://discuss.elastic.co/t/match-search-is-slow-but-i-cant-figure-out-the-reason-even-using-profile-api/181100 "2019-05-15T06:36:41Z")

</div>

I'm using es 5.4 for searching purpose. But when I perform match query, I found that it costs hundreds of millisecond, which is unusual. I used the profile API to track the query and found that some words took unreasonab…

---

## [Elasticsearch 7.0 bootstrapping in AWS](https://discuss.elastic.co/t/elasticsearch-7-0-bootstrapping-in-aws/176491)

<div class="topic-metadata">

**Author:** [@kd5dbl](https://discuss.elastic.co/u/kd5dbl)\
**Replies:** 17\
**Last updated:** [May 15, 2019, 6:29am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-bootstrapping-in-aws/176491 "2019-05-15T06:29:34Z")

</div>

Has anyone else gone through the fun of bringing up a new cluster in AWS now that we have this new "bootstrapping" stuff in 7.0? The problem I seem to have is that the cluster wants me to specify the master nodes to boo…

---

## [How do I speed up this query?](https://discuss.elastic.co/t/how-do-i-speed-up-this-query/180631)

<div class="topic-metadata">

**Author:** [@rgelb](https://discuss.elastic.co/u/rgelb)\
**Replies:** 9\
**Last updated:** [May 15, 2019, 5:12am UTC](https://discuss.elastic.co/t/how-do-i-speed-up-this-query/180631 "2019-05-15T05:12:58Z")

</div>

I am trying to speed up a query and not sure if I am going about it the right way (being a newcomer to ES). I am trying to find an address in an index (that contains 200 million records) by it's constituent parts. And …

---

## [Elasticserach cluster log](https://discuss.elastic.co/t/elasticserach-cluster-log/181088)

<div class="topic-metadata">

**Author:** [@KevinShi](https://discuss.elastic.co/u/KevinShi)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 2:10am UTC](https://discuss.elastic.co/t/elasticserach-cluster-log/181088 "2019-05-15T02:10:32Z")

</div>

Elasticsearch version : 6.7.0 Three servers, all servers are node.master and node.data. config like this： cluster.name: ismartv-elk node.name: node1 path.data: /opt/elkdata path.logs: /var/log/elasticsearch node.ma…

---

## [Searching cross indes with per-index filtering](https://discuss.elastic.co/t/searching-cross-indes-with-per-index-filtering/181084)

<div class="topic-metadata">

**Author:** [@DaveG](https://discuss.elastic.co/u/DaveG)\
**Replies:** 0\
**Last updated:** [May 14, 2019, 11:56pm UTC](https://discuss.elastic.co/t/searching-cross-indes-with-per-index-filtering/181084 "2019-05-14T23:56:38Z")

</div>

Hi All, I have a requirement to search across multiple indexes (they will have a number of common fields) for a Global Search feature. I wish to do per-index filtering to get rid of rows on individual indexes based on …

---

## [Swapping primary and replica shard allocations in two node clusters](https://discuss.elastic.co/t/swapping-primary-and-replica-shard-allocations-in-two-node-clusters/181016)

<div class="topic-metadata">

**Author:** [@vigyas](https://discuss.elastic.co/u/vigyas)\
**Replies:** 4\
**Last updated:** [May 14, 2019, 9:32pm UTC](https://discuss.elastic.co/t/swapping-primary-and-replica-shard-allocations-in-two-node-clusters/181016 "2019-05-14T21:32:27Z")

</div>

Suppose there is a two node cluster and indices have 1 replica. Initial shard allocation distributes primaries and replicas across both nodes. node-1: \[p0, p2, p4, p6, p8, r1, r3, r5, r7, r9\] node-2: \[p1, p3, p5, p7, p9…

---

## [ERROR Bootstrap {node validation exceptio}](https://discuss.elastic.co/t/error-bootstrap-node-validation-exceptio/179426)

<div class="topic-metadata">

**Author:** [@jcesar\_key](https://discuss.elastic.co/u/jcesar_key)\
**Replies:** 4\
**Last updated:** [May 14, 2019, 6:50pm UTC](https://discuss.elastic.co/t/error-bootstrap-node-validation-exceptio/179426 "2019-05-14T18:50:45Z")

</div>

I'm having a problem installing my Elastic for the first time, I've already run it before in the lab, but when I try again on other machines I get this message below: \[ERROR\] \[o.e.b.Bootstrap\] \[\[$ jarvis\]\] node validati…

---

## [ELK not working curious viral](https://discuss.elastic.co/t/elk-not-working-curious-viral/180711)

<div class="topic-metadata">

**Author:** [@Aryan90](https://discuss.elastic.co/u/Aryan90)\
**Replies:** 4\
**Last updated:** [May 14, 2019, 6:19pm UTC](https://discuss.elastic.co/t/elk-not-working-curious-viral/180711 "2019-05-14T18:19:57Z")

</div>

Hi Guys, I have tomcat installed on this server and i also installed filebeat version 6 on the same tomcat server. But I’m not able to make connection to kibana. All the elasticsearch, kibana and logstash are configured…

---

## [Sorting breaks(May be because of number of shards)](https://discuss.elastic.co/t/sorting-breaks-may-be-because-of-number-of-shards/181049)

<div class="topic-metadata">

**Author:** [@sunilb0575](https://discuss.elastic.co/u/sunilb0575)\
**Replies:** 0\
**Last updated:** [May 14, 2019, 5:23pm UTC](https://discuss.elastic.co/t/sorting-breaks-may-be-because-of-number-of-shards/181049 "2019-05-14T17:23:47Z")

</div>

Elastic search version: 5.6 Here is the simple Query, one filter: Sort by name(asc), which breaks {"query":{"bool":{"should":\[{"bool":{"must":\[{"term":{"type.id":"6"}}\]}}\]}},"from":"0","size":"50","sort":\["\_score",{"n…

---

## [Alert configuration using watcher](https://discuss.elastic.co/t/alert-configuration-using-watcher/181036)

<div class="topic-metadata">

**Author:** [@Dhana](https://discuss.elastic.co/u/Dhana)\
**Replies:** 1\
**Last updated:** [May 14, 2019, 4:56pm UTC](https://discuss.elastic.co/t/alert-configuration-using-watcher/181036 "2019-05-14T16:56:30Z")

</div>

Hi, we have Version: 6.5.4 running, we would like to configure alerts using "watcher" based on the events that we are getting on the logs. We have several Fields on the CLS and we would like to trigger an alert when I s…

---

## [The default discovery settings are unsuitable for production use;](https://discuss.elastic.co/t/the-default-discovery-settings-are-unsuitable-for-production-use/181009)

<div class="topic-metadata">

**Author:** [@decodeit](https://discuss.elastic.co/u/decodeit)\
**Replies:** 2\
**Last updated:** [May 14, 2019, 3:44pm UTC](https://discuss.elastic.co/t/the-default-discovery-settings-are-unsuitable-for-production-use/181009 "2019-05-14T15:44:06Z")

</div>

{ "type": "server", "timestamp": "2019-05-14T13:15:27,972+0000", "level": "DEBUG", "component": "o.e.a.ActionModule", "cluster.name": "docker-cluster", "node.name": "309a9b4e906e", "message": "Using REST wrapper from plu…

---

## [Connection to remote cluster is failing](https://discuss.elastic.co/t/connection-to-remote-cluster-is-failing/181027)

<div class="topic-metadata">

**Author:** [@sandy2428](https://discuss.elastic.co/u/sandy2428)\
**Replies:** 0\
**Last updated:** [May 14, 2019, 3:32pm UTC](https://discuss.elastic.co/t/connection-to-remote-cluster-is-failing/181027 "2019-05-14T15:32:21Z")

</div>

Hello I am trying to setup ES cross cluster search but it is failing . Steps I did to follow I have 2 ES clusters(running as kubernetes clusters) say ES-cluster1 and ES-cluster2 in 2 separate AWS accounts. 2)I have o…

---

## [Pulling more than 10000 records from elasticsearch query](https://discuss.elastic.co/t/pulling-more-than-10000-records-from-elasticsearch-query/181000)

<div class="topic-metadata">

**Author:** [@ninder.singh](https://discuss.elastic.co/u/ninder.singh)\
**Replies:** 1\
**Last updated:** [May 14, 2019, 3:16pm UTC](https://discuss.elastic.co/t/pulling-more-than-10000-records-from-elasticsearch-query/181000 "2019-05-14T15:16:51Z")

</div>

We can get maximum 10000 records by using size parameter. What if we get more than 20000 records after applying filter query. Please update if there is any way to see records beyond 10000.

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

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