# Elasticsearch

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

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

**Page:** 1950

---

## [Getting java.net.NetPermission with xpack.monitoring.exporters (elasticsearch-6.0.0-beta2)](https://discuss.elastic.co/t/getting-java-net-netpermission-with-xpack-monitoring-exporters-elasticsearch-6-0-0-beta2/100607)

<div class="topic-metadata">

**Author:** [@Jayme](https://discuss.elastic.co/u/Jayme)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 8:55pm UTC](https://discuss.elastic.co/t/getting-java-net-netpermission-with-xpack-monitoring-exporters-elasticsearch-6-0-0-beta2/100607 "2017-09-14T20:55:57Z")

</div>

When I add xpack.monitoring.exporters: id1: type: http host: \["http://192.168.14.53:9200", "http://192.168.14.54:9200"\] to my elastic config, I get a java.net.NetPermission error.. xpack.security.enabled: fa…

---

## [Multiple calls to setQuery() in one SearchRequestBuilder](https://discuss.elastic.co/t/multiple-calls-to-setquery-in-one-searchrequestbuilder/100599)

<div class="topic-metadata">

**Author:** [@Pritom\_Ahmed](https://discuss.elastic.co/u/Pritom_Ahmed)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 7:38pm UTC](https://discuss.elastic.co/t/multiple-calls-to-setquery-in-one-searchrequestbuilder/100599 "2017-09-14T19:38:55Z")

</div>

Hi, I was wondering what happens if I call the function setQuery() multiple times in one SearchRequestBuilder. For Example, .setQuery(QueryBuilders.wildcardQuery("path", "\*front\*")) .setQuery(QueryBuilders.wildcardQue…

---

## [Elastic Query Returning Results With doc\_count Lower Than Expected](https://discuss.elastic.co/t/elastic-query-returning-results-with-doc-count-lower-than-expected/100254)

<div class="topic-metadata">

**Author:** [@cb2015](https://discuss.elastic.co/u/cb2015)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 6:49pm UTC](https://discuss.elastic.co/t/elastic-query-returning-results-with-doc-count-lower-than-expected/100254 "2017-09-14T18:49:42Z")

</div>

Hi, So I am running a query to get the number of api calls in my logs. When I use this query, the numbers come in too low { "query": { "bool": { "must": \[ { "query\_string": { "analyze\_wildcard": tru…

---

## [Is index.merge.scheduler.max\_thread\_count per node or per index setting?](https://discuss.elastic.co/t/is-index-merge-scheduler-max-thread-count-per-node-or-per-index-setting/100572)

<div class="topic-metadata">

**Author:** [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 4:06pm UTC](https://discuss.elastic.co/t/is-index-merge-scheduler-max-thread-count-per-node-or-per-index-setting/100572 "2017-09-14T16:06:30Z")

</div>

I'm confused by this setting. I used to set this in elasticsearch.yml in v1.7 but now the setting move to index level setting. Does that means: Per index can have a different value? Let's say index abc put 1 and index …

---

## [Query Object in Mapping?](https://discuss.elastic.co/t/query-object-in-mapping/100423)

<div class="topic-metadata">

**Author:** [@krmathieu](https://discuss.elastic.co/u/krmathieu)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 3:48pm UTC](https://discuss.elastic.co/t/query-object-in-mapping/100423 "2017-09-14T15:48:51Z")

</div>

I ran pushed a 1000 docs into ES 5.4 to allow the mapping to be automatically generated and see the object below in the mapping but it is not coming from my data. Any idea what this is and what it is used for? Any info w…

---

## [Terms Aggregation of long value](https://discuss.elastic.co/t/terms-aggregation-of-long-value/100223)

<div class="topic-metadata">

**Author:** [@Moshe\_Saada](https://discuss.elastic.co/u/Moshe_Saada)\
**Replies:** 7\
**Last updated:** [September 14, 2017, 2:55pm UTC](https://discuss.elastic.co/t/terms-aggregation-of-long-value/100223 "2017-09-14T14:55:48Z")

</div>

Hi, I've created data table visualization with terms aggregation and I saw the aggregation isn't working on some values, I think it's connected to the long but not sure. For example, the following value is aggregatable…

---

## [How to get the count of a pair of field values?](https://discuss.elastic.co/t/how-to-get-the-count-of-a-pair-of-field-values/100562)

<div class="topic-metadata">

**Author:** [@WoJ](https://discuss.elastic.co/u/WoJ)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 2:37pm UTC](https://discuss.elastic.co/t/how-to-get-the-count-of-a-pair-of-field-values/100562 "2017-09-14T14:37:25Z")

</div>

Hello I need to build a heatmap from the data I have in elasticsearch. The heatmap is the count of cases where two specific fields have the same value. For the data {'name': 'john', 'age': '10', 'car': 'peugeot'} {'nam…

---

## [Using bucket aggregation on IPs not giving expected results](https://discuss.elastic.co/t/using-bucket-aggregation-on-ips-not-giving-expected-results/100165)

<div class="topic-metadata">

**Author:** [@Sambit\_Kabi](https://discuss.elastic.co/u/Sambit_Kabi)\
**Replies:** 11\
**Last updated:** [September 14, 2017, 2:26pm UTC](https://discuss.elastic.co/t/using-bucket-aggregation-on-ips-not-giving-expected-results/100165 "2017-09-14T14:26:15Z")

</div>

\[image\] Hello, I am trying to search for documents containing an IP which falls under a range. As specified in the image the docs have IP 192.168.255.100 which falls under the mask: 192.168.0.0/24. But the result that …

---

## [Index level setting is not working for the merge factory and concurrency paramater](https://discuss.elastic.co/t/index-level-setting-is-not-working-for-the-merge-factory-and-concurrency-paramater/99427)

<div class="topic-metadata">

**Author:** [@JAYALAKSHMI](https://discuss.elastic.co/u/JAYALAKSHMI)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 2:25pm UTC](https://discuss.elastic.co/t/index-level-setting-is-not-working-for-the-merge-factory-and-concurrency-paramater/99427 "2017-09-14T14:25:08Z")

</div>

Hi All, We have installed the 2.4.5 and 5.5.0 cluster in one environment and currently we are moving the data from 2.4.5 to 5.5.0 cluster using logstash. For making the indexing speed we have enabled the following facto…

---

## [Inaccurate results using fuzzy queries](https://discuss.elastic.co/t/inaccurate-results-using-fuzzy-queries/100547)

<div class="topic-metadata">

**Author:** [@searcher](https://discuss.elastic.co/u/searcher)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 1:48pm UTC](https://discuss.elastic.co/t/inaccurate-results-using-fuzzy-queries/100547 "2017-09-14T13:48:27Z")

</div>

The results of my query should be ordered as follows: 1: query term matches exactly one word 2: query term exactly matches a part of a word 3: unexact matches using Levenshtein distance 4: other unexact matches Until …

---

## [Wich conditions is used in search's prefilter on 5.6.0?](https://discuss.elastic.co/t/wich-conditions-is-used-in-searchs-prefilter-on-5-6-0/100544)

<div class="topic-metadata">

**Author:** [@mvleandro](https://discuss.elastic.co/u/mvleandro)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 1:24pm UTC](https://discuss.elastic.co/t/wich-conditions-is-used-in-searchs-prefilter-on-5-6-0/100544 "2017-09-14T13:24:10Z")

</div>

Hello everyone, I tried to find this information on doc but i couldn't. I want to know wich factors the Elasticsearch will use to elect the correct shards to route the search request and if it is customizable. Another…

---

## [About certgen, csr, and wildcard certificates](https://discuss.elastic.co/t/about-certgen-csr-and-wildcard-certificates/100380)

<div class="topic-metadata">

**Author:** [@Cornoualis](https://discuss.elastic.co/u/Cornoualis)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 12:48pm UTC](https://discuss.elastic.co/t/about-certgen-csr-and-wildcard-certificates/100380 "2017-09-14T12:48:11Z")

</div>

Hi, I'm desperately trying to enable TLS on my cluster (I want the node to use TLS for transport communication, for API access, and https for kibana). My cluster is composed of 9 nodes, but may evolve in the future so …

---

## [PostgreSQL + Elasticsearch synchronization](https://discuss.elastic.co/t/postgresql-elasticsearch-synchronization/100530)

<div class="topic-metadata">

**Author:** [@rrader](https://discuss.elastic.co/u/rrader)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 12:32pm UTC](https://discuss.elastic.co/t/postgresql-elasticsearch-synchronization/100530 "2017-09-14T12:32:44Z")

</div>

WE use Java and in application we write, modify and delete data in PostgreSQL. How to synchronize data between PostgreSQL and Elasticsearch? so, they will have same data.

---

## [Error while connecting to Elastic Cloud using RestClient or Transport Client](https://discuss.elastic.co/t/error-while-connecting-to-elastic-cloud-using-restclient-or-transport-client/100483)

<div class="topic-metadata">

**Author:** [@chiranjeevi](https://discuss.elastic.co/u/chiranjeevi)\
**Replies:** 5\
**Last updated:** [September 14, 2017, 12:30pm UTC](https://discuss.elastic.co/t/error-while-connecting-to-elastic-cloud-using-restclient-or-transport-client/100483 "2017-09-14T12:30:21Z")

</div>

If i Connect with Transport Client returned error is: Exception in thread "main" java.lang.VerifyError: class org.elasticsearch.shield.ShieldPlugin overrides final method onModule.(Lorg/elasticsearch/action/ActionModule…

---

## [Prod Architecture design document](https://discuss.elastic.co/t/prod-architecture-design-document/100410)

<div class="topic-metadata">

**Author:** [@shroh](https://discuss.elastic.co/u/shroh)\
**Replies:** 4\
**Last updated:** [September 14, 2017, 12:02pm UTC](https://discuss.elastic.co/t/prod-architecture-design-document/100410 "2017-09-14T12:02:22Z")

</div>

Hi Experts, We are considering onboarding ELK on production with multi node architecture. 3 ES data nodes, 3 ES master nodes, 2 Logstash, 2 Kibana. Main challenges: We will be using AWS for the infra and challenge i…

---

## [Index document only if it is unique by property](https://discuss.elastic.co/t/index-document-only-if-it-is-unique-by-property/100524)

<div class="topic-metadata">

**Author:** [@dbrezoev](https://discuss.elastic.co/u/dbrezoev)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 11:57am UTC](https://discuss.elastic.co/t/index-document-only-if-it-is-unique-by-property/100524 "2017-09-14T11:57:37Z")

</div>

Is there a way to index a document only if it is unique by property name for example. I already have read about the opType options, but they force me to use ID when I index a document, and I don\`t know to. My goal is to…

---

## [Elasticsearch throwing execption while starting](https://discuss.elastic.co/t/elasticsearch-throwing-execption-while-starting/100465)

<div class="topic-metadata">

**Author:** [@Kishore](https://discuss.elastic.co/u/Kishore)\
**Replies:** 7\
**Last updated:** [September 14, 2017, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-throwing-execption-while-starting/100465 "2017-09-14T11:52:47Z")

</div>

I am getting below error while starting elasticsearch version 5.0 indent preformatted text by 4 spacesException in thread "main" java.lang.NoSuchMethodError: org.apache.logging.log4j.core.config.properties.PropertiesCon…

---

## [Where to send requests in a cluster](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478)

<div class="topic-metadata">

**Author:** [@Jonathan\_Kosgei](https://discuss.elastic.co/u/Jonathan_Kosgei)\
**Replies:** 8\
**Last updated:** [September 14, 2017, 11:50am UTC](https://discuss.elastic.co/t/where-to-send-requests-in-a-cluster/100478 "2017-09-14T11:50:51Z")

</div>

We have the following cluster setup; 3 masters 2 client nodes 1 ingest node 1 data node Each group of nodes has a dns loadbalancer infront of them. The question is, where do I point to in my applicatons? Do I do t…

---

## [Retrieve distinct values from multiple fields in ElasticSearch](https://discuss.elastic.co/t/retrieve-distinct-values-from-multiple-fields-in-elasticsearch/100523)

<div class="topic-metadata">

**Author:** [@stackf01](https://discuss.elastic.co/u/stackf01)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 11:39am UTC](https://discuss.elastic.co/t/retrieve-distinct-values-from-multiple-fields-in-elasticsearch/100523 "2017-09-14T11:39:03Z")

</div>

Hello, How can I retrieve distinct values from multiple fields in elasticsearch ? I have used the below method, but it seems too nested. Can someone provide a more efficient way of doing it ? { "size":"0", "aggs" : …

---

## [Rest High Level Client compatibility?](https://discuss.elastic.co/t/rest-high-level-client-compatibility/100505)

<div class="topic-metadata">

**Author:** [@tsachev](https://discuss.elastic.co/u/tsachev)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 11:30am UTC](https://discuss.elastic.co/t/rest-high-level-client-compatibility/100505 "2017-09-14T11:30:23Z")

</div>

I think one of the main reasons for the rest client is to provide better compatibility between clients and nodes. Now as 5.6.0 high level client is released what should be the expectations? Rest client version X.Y.Z wi…

---

## [Elasticsearch not performing search parallely](https://discuss.elastic.co/t/elasticsearch-not-performing-search-parallely/100515)

<div class="topic-metadata">

**Author:** [@pverma0312](https://discuss.elastic.co/u/pverma0312)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 10:44am UTC](https://discuss.elastic.co/t/elasticsearch-not-performing-search-parallely/100515 "2017-09-14T10:44:32Z")

</div>

Hi, We have set up elasticsearch of 6 nodes cluster, each having 40 cores and 512 Gb Ram. Our index size is around 2.6 Tb and we have created 90 shards for that index. We are having on OLTP application but we are obser…

---

## [No longer configurable for merge policy segments\_per\_tier?](https://discuss.elastic.co/t/no-longer-configurable-for-merge-policy-segments-per-tier/100514)

<div class="topic-metadata">

**Author:** [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 10:43am UTC](https://discuss.elastic.co/t/no-longer-configurable-for-merge-policy-segments-per-tier/100514 "2017-09-14T10:43:29Z")

</div>

For some reason, I tuned merge policy params ann got good performance in my project based on ES 1.7.2 But recently I upgraded to 5.4 and it seems to me those merge policy params are not supported? Is this true and what …

---

## [How can I give database credentials to elastic users?](https://discuss.elastic.co/t/how-can-i-give-database-credentials-to-elastic-users/100454)

<div class="topic-metadata">

**Author:** [@Varun\_Patel](https://discuss.elastic.co/u/Varun_Patel)\
**Replies:** 2\
**Last updated:** [September 14, 2017, 9:27am UTC](https://discuss.elastic.co/t/how-can-i-give-database-credentials-to-elastic-users/100454 "2017-09-14T09:27:48Z")

</div>

I have integrated Kibana in my application, which is accessible to all. I want to restrict the access to valid user ( Database users) only. How can I achieve this ?

---

## [Query string query doesn't work with synonyms](https://discuss.elastic.co/t/query-string-query-doesnt-work-with-synonyms/100479)

<div class="topic-metadata">

**Author:** [@aslamy](https://discuss.elastic.co/u/aslamy)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 7:55am UTC](https://discuss.elastic.co/t/query-string-query-doesnt-work-with-synonyms/100479 "2017-09-14T07:55:58Z")

</div>

Hello ! Why query string query doesn't work with synonyms ? I use synonym\_graph token filter, including multi-word synonyms. How can I make query string query works in combination with synonyms ?

---

## [Java Native script example for Update API](https://discuss.elastic.co/t/java-native-script-example-for-update-api/100447)

<div class="topic-metadata">

**Author:** [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 4:07am UTC](https://discuss.elastic.co/t/java-native-script-example-for-update-api/100447 "2017-09-14T04:07:36Z")

</div>

I couldn't find any example of java native script for upadte API. I found this one written by @Igor\_Motov - https://github.com/imotov/elasticsearch-native-script-example But then it did not have an example on Update AP…

---

## [V1.7.3 Chinese Search](https://discuss.elastic.co/t/v1-7-3-chinese-search/100430)

<div class="topic-metadata">

**Author:** [@yosiasz](https://discuss.elastic.co/u/yosiasz)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 7:13am UTC](https://discuss.elastic.co/t/v1-7-3-chinese-search/100430 "2017-09-14T07:13:17Z")

</div>

Greetings, I have inherited an application that uses v1.7.3 elastic search. To enable searching Chinese characters I installed plugin install elasticsearch/elasticsearch-analysis-smartcn/2.7.0 But when searching for w…

---

## [Settings for index.merge.policy.\* move?](https://discuss.elastic.co/t/settings-for-index-merge-policy-move/100462)

<div class="topic-metadata">

**Author:** [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 6:32am UTC](https://discuss.elastic.co/t/settings-for-index-merge-policy-move/100462 "2017-09-14T06:32:57Z")

</div>

Hi, I move to ES 5.4 from ES 1.7 recently and it seems to me that some configuration was changed. Like index.merge.policy.\* I used to set this in elasticsearch.yml but in 5.4 has been moved as index settings. #1. Does …

---

## [How to use language analyzer in nested mapping](https://discuss.elastic.co/t/how-to-use-language-analyzer-in-nested-mapping/100445)

<div class="topic-metadata">

**Author:** [@honey](https://discuss.elastic.co/u/honey)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 4:00am UTC](https://discuss.elastic.co/t/how-to-use-language-analyzer-in-nested-mapping/100445 "2017-09-14T04:00:25Z")

</div>

I am presently working with language analyzer. In this I found that if we need to use the analyzer for searching documents then we need to define mapping along with analyzer. In my case, if document contains a normal te…

---

## [Resize slow?](https://discuss.elastic.co/t/resize-slow/100418)

<div class="topic-metadata">

**Author:** [@fdavis](https://discuss.elastic.co/u/fdavis)\
**Replies:** 1\
**Last updated:** [September 13, 2017, 9:09pm UTC](https://discuss.elastic.co/t/resize-slow/100418 "2017-09-13T21:09:12Z")

</div>

Hello, I doubled the size of fcb0df The second instance spun up over an hour ago and has not changed from 1.6% storage used. Is storage a bad way to track progress of the new instance? Please advice, Fletcher

---

## [All shards of an index allocated to same node, despite space on other nodes](https://discuss.elastic.co/t/all-shards-of-an-index-allocated-to-same-node-despite-space-on-other-nodes/100361)

<div class="topic-metadata">

**Author:** [@lecko](https://discuss.elastic.co/u/lecko)\
**Replies:** 1\
**Last updated:** [September 13, 2017, 9:00pm UTC](https://discuss.elastic.co/t/all-shards-of-an-index-allocated-to-same-node-despite-space-on-other-nodes/100361 "2017-09-13T21:00:16Z")

</div>

Hello, I am new to this community. Hello, I have a cluster of 5 graylog nodes connected with 5 elasticsearch nodes, all with similar size disk , RAM, cpu, network. elastricsearch is version 2.3.4. The message traffi…

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

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