# Elasticsearch

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

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

**Page:** 1941

---

## [Questions Migrating to Java High Level Rest Client 5.6](https://discuss.elastic.co/t/questions-migrating-to-java-high-level-rest-client-5-6/101677)

<div class="topic-metadata">

**Author:** [@Herm\_Flink](https://discuss.elastic.co/u/Herm_Flink)\
**Replies:** 2\
**Last updated:** [September 25, 2017, 11:30am UTC](https://discuss.elastic.co/t/questions-migrating-to-java-high-level-rest-client-5-6/101677 "2017-09-25T11:30:54Z")

</div>

Hi All, At the moment, we are investigating efforts to move away from the Java Transport Client to the new Java High Level Rest Client. Two questions already popped up: For the BulkProcessor we now need to make use o…

---

## [Creating custom nGram analyzers with mongoosastic](https://discuss.elastic.co/t/creating-custom-ngram-analyzers-with-mongoosastic/101685)

<div class="topic-metadata">

**Author:** [@marcose18](https://discuss.elastic.co/u/marcose18)\
**Replies:** 0\
**Last updated:** [September 25, 2017, 11:09am UTC](https://discuss.elastic.co/t/creating-custom-ngram-analyzers-with-mongoosastic/101685 "2017-09-25T11:09:02Z")

</div>

Hi ! I am trying to use elastic search with mongoosastic to find associated search terms. Let's say If I have some email id as abcdef@xyz.com , then if the user types 'cde', this email should be returned as a search re…

---

## [Get doc \_parent value in sort script](https://discuss.elastic.co/t/get-doc--parent-value-in-sort-script/101688)

<div class="topic-metadata">

**Author:** [@Anton\_Dzemuh](https://discuss.elastic.co/u/Anton_Dzemuh)\
**Replies:** 0\
**Last updated:** [September 25, 2017, 11:26am UTC](https://discuss.elastic.co/t/get-doc--parent-value-in-sort-script/101688 "2017-09-25T11:26:15Z")

</div>

I have parent/child relation, and i want to access to \_parent field in sort script. It is possible? It's body on php 'body' =\> \[ 'from' =\> $offset, 'size' =\> $size, 'sort' =\> \[ …

---

## [ES with plugin OMELASTICSEARCH (rsyslog) Content type detection for rest requests is deprecated](https://discuss.elastic.co/t/es-with-plugin-omelasticsearch-rsyslog-content-type-detection-for-rest-requests-is-deprecated/101678)

<div class="topic-metadata">

**Author:** [@Pierre31](https://discuss.elastic.co/u/Pierre31)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 11:07am UTC](https://discuss.elastic.co/t/es-with-plugin-omelasticsearch-rsyslog-content-type-detection-for-rest-requests-is-deprecated/101678 "2017-09-25T11:07:15Z")

</div>

Hello I work with Elasticsearch 5.2 with OMELASTICSEARCH RSYSLOG plugin in RH EL 7.3. Plugin version is : rsyslog-elasticsearch-7.4.7-16 It works well , but log file : elasticsearch\_deprecation.log fills every second …

---

## [Help with search on website](https://discuss.elastic.co/t/help-with-search-on-website/100321)

<div class="topic-metadata">

**Author:** [@tomsk](https://discuss.elastic.co/u/tomsk)\
**Replies:** 16\
**Last updated:** [September 25, 2017, 10:28am UTC](https://discuss.elastic.co/t/help-with-search-on-website/100321 "2017-09-25T10:28:11Z")

</div>

I am creating a search on website based on ElasticSearch, and I am very new to ElasticSearch so I would be happy for any help. This is a structure of my ElasticSearch content: hits: 0: \_index: "mysite"…

---

## [Elastic Search 5.6 : Sharding and Replication](https://discuss.elastic.co/t/elastic-search-5-6-sharding-and-replication/101627)

<div class="topic-metadata">

**Author:** [@Nakshathri](https://discuss.elastic.co/u/Nakshathri)\
**Replies:** 10\
**Last updated:** [September 25, 2017, 9:13am UTC](https://discuss.elastic.co/t/elastic-search-5-6-sharding-and-replication/101627 "2017-09-25T09:13:33Z")

</div>

Hello there, We are using latest 5.6.0 version of the elastic search in production running on CentOs 7. We have a 3 node cluster (all of them are master eligible data nodes) setup. We went through the detailed documenta…

---

## [A bug for the score calculation in Elastic Search](https://discuss.elastic.co/t/a-bug-for-the-score-calculation-in-elastic-search/101465)

<div class="topic-metadata">

**Author:** [@sbickle](https://discuss.elastic.co/u/sbickle)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 8:50am UTC](https://discuss.elastic.co/t/a-bug-for-the-score-calculation-in-elastic-search/101465 "2017-09-25T08:50:41Z")

</div>

Hi, Expert, I just found one wired issue for the score of matching. The message is like this: GET /scenario/group\_2/1 { "message" : "test search 1, 0", "score":8.201733 } After matching by phrase, i got: "hits":…

---

## [Help me understand why you shouldn't ask Elasticsearch to pretty print everything](https://discuss.elastic.co/t/help-me-understand-why-you-shouldnt-ask-elasticsearch-to-pretty-print-everything/101219)

<div class="topic-metadata">

**Author:** [@Logan](https://discuss.elastic.co/u/Logan)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 8:47am UTC](https://discuss.elastic.co/t/help-me-understand-why-you-shouldnt-ask-elasticsearch-to-pretty-print-everything/101219 "2017-09-25T08:47:54Z")

</div>

I already know that adding ?pretty=true to your production queries is a bad idea and that the documentation specifically says "use it for debugging only!" I just want to understand how bad of an idea this is and if there…

---

## [Cluster(s) scale and failure design (ES 5.4)](https://discuss.elastic.co/t/cluster-s-scale-and-failure-design-es-5-4/101443)

<div class="topic-metadata">

**Author:** [@Eduard\_Kubanda](https://discuss.elastic.co/u/Eduard_Kubanda)\
**Replies:** 8\
**Last updated:** [September 24, 2017, 12:13pm UTC](https://discuss.elastic.co/t/cluster-s-scale-and-failure-design-es-5-4/101443 "2017-09-24T12:13:22Z")

</div>

Hi guys, I decided to post a question about ES cluster(s) design because I think my actual design sucks a bit. My goal is to set up ES infrastructure which will: be able to index/update 10 000 - 100 000 (and more) da…

---

## [Elasticsearch:java.lang.OutOfMemoryError: Java heap space](https://discuss.elastic.co/t/elasticsearch-java-lang-outofmemoryerror-java-heap-space/101300)

<div class="topic-metadata">

**Author:** [@lunatic](https://discuss.elastic.co/u/lunatic)\
**Replies:** 8\
**Last updated:** [September 25, 2017, 7:59am UTC](https://discuss.elastic.co/t/elasticsearch-java-lang-outofmemoryerror-java-heap-space/101300 "2017-09-25T07:59:34Z")

</div>

When I query data in past 7 days in Kibana (search on 1 dashboard contains 9 visualization panels, including aggregations, and descending size are about 10~20) I got these error: \[2017-09-21T03:08:24,180\]\[WARN \]\[o.…

---

## [Getting Timeouts from elasticsearch](https://discuss.elastic.co/t/getting-timeouts-from-elasticsearch/101639)

<div class="topic-metadata">

**Author:** [@gayathri](https://discuss.elastic.co/u/gayathri)\
**Replies:** 3\
**Last updated:** [September 25, 2017, 7:08am UTC](https://discuss.elastic.co/t/getting-timeouts-from-elasticsearch/101639 "2017-09-25T07:08:54Z")

</div>

Hi Team, All of our Nodes are Up and Green in state. But we are getting below timeout errors in log and all indeces and search actions are too slow in Kibana. We are using ELK Version 5.0.2. \[2017-09-24T22:35:05,709\]\[…

---

## [Rest Client listener timeout after waiting for \[30000\] ms](https://discuss.elastic.co/t/rest-client-listener-timeout-after-waiting-for-30000-ms/101326)

<div class="topic-metadata">

**Author:** [@ajit](https://discuss.elastic.co/u/ajit)\
**Replies:** 5\
**Last updated:** [September 25, 2017, 6:35am UTC](https://discuss.elastic.co/t/rest-client-listener-timeout-after-waiting-for-30000-ms/101326 "2017-09-25T06:35:39Z")

</div>

I am using RestClient bulk api to push excel data to elasticsearch but I am getting listener timeout after waiting for \[30000\] ms. my jar version are httpasyncclient-4.1.2.jar httpclient-4.5.2.jar httpcore-4.4.5.jar …

---

## [Elastic query incremental problems](https://discuss.elastic.co/t/elastic-query-incremental-problems/101280)

<div class="topic-metadata">

**Author:** [@NorkG](https://discuss.elastic.co/u/NorkG)\
**Replies:** 2\
**Last updated:** [September 25, 2017, 6:33am UTC](https://discuss.elastic.co/t/elastic-query-incremental-problems/101280 "2017-09-25T06:33:48Z")

</div>

Hello guys, I'm facing strange problem with query performance/visualization on two different environments: 5.0 and 5.6 (hardware is same) It looks like on my 5.0 ELK stack query runs incrementally, kibana/elastic waits…

---

## [How to allocate ES data shards among 20 es data nodes effectively?](https://discuss.elastic.co/t/how-to-allocate-es-data-shards-among-20-es-data-nodes-effectively/101619)

<div class="topic-metadata">

**Author:** [@Robin\_Guo](https://discuss.elastic.co/u/Robin_Guo)\
**Replies:** 4\
**Last updated:** [September 25, 2017, 5:41am UTC](https://discuss.elastic.co/t/how-to-allocate-es-data-shards-among-20-es-data-nodes-effectively/101619 "2017-09-25T05:41:34Z")

</div>

Dear folks, Current we have total 26 nodes in an ES cluster, 3 masters, and 2 clients, 20 data node. We have 16 cores,32GM mem, HDD raid5 4.6T, 1000Mbps NIC for each server of es data nodes. We want to store all inde…

---

## [Unable to access /tmp/jna--1985354563/jna1905218698016583564.tmp:](https://discuss.elastic.co/t/unable-to-access-tmp-jna-1985354563-jna1905218698016583564-tmp/100760)

<div class="topic-metadata">

**Author:** [@vaddanam](https://discuss.elastic.co/u/vaddanam)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 5:47am UTC](https://discuss.elastic.co/t/unable-to-access-tmp-jna-1985354563-jna1905218698016583564-tmp/100760 "2017-09-25T05:47:53Z")

</div>

Hi Team, I am running elastic search as service in linux. I am receiving the below error message "\[2017-09-16T11:13:10,538\]\[WARN \]\[o.e.b.Natives\] unable to load JNA native support library, native methods will be disable…

---

## [Is there a way to use related file path when grant java.io.FilePermission in plugin?](https://discuss.elastic.co/t/is-there-a-way-to-use-related-file-path-when-grant-java-io-filepermission-in-plugin/101622)

<div class="topic-metadata">

**Author:** [@makeyang](https://discuss.elastic.co/u/makeyang)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 5:23am UTC](https://discuss.elastic.co/t/is-there-a-way-to-use-related-file-path-when-grant-java-io-filepermission-in-plugin/101622 "2017-09-25T05:23:52Z")

</div>

if so, how to grant file/directory under my plugin?

---

## [Custom Realm Example help](https://discuss.elastic.co/t/custom-realm-example-help/101341)

<div class="topic-metadata">

**Author:** [@adesouza](https://discuss.elastic.co/u/adesouza)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 5:02am UTC](https://discuss.elastic.co/t/custom-realm-example-help/101341 "2017-09-25T05:02:29Z")

</div>

Hi, I'm trying out the custom realm example to try and get an idea of how custom realms work. I have X-Pack installed on Elasticsearch and Kibana. I built the custom realm plugin and installed it on the Elasticsearch no…

---

## [Can elasticsearch do spatial queries? (not just geospatial)](https://discuss.elastic.co/t/can-elasticsearch-do-spatial-queries-not-just-geospatial/101631)

<div class="topic-metadata">

**Author:** [@TealFawn](https://discuss.elastic.co/u/TealFawn)\
**Replies:** 0\
**Last updated:** [September 25, 2017, 4:49am UTC](https://discuss.elastic.co/t/can-elasticsearch-do-spatial-queries-not-just-geospatial/101631 "2017-09-25T04:49:34Z")

</div>

I would like to know if you can do a spatial query that is not just a geospatial query?

---

## [Timeout of put mapping ,with time to change about it](https://discuss.elastic.co/t/timeout-of-put-mapping-with-time-to-change-about-it/100433)

<div class="topic-metadata">

**Author:** [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Replies:** 1\
**Last updated:** [September 25, 2017, 4:19am UTC](https://discuss.elastic.co/t/timeout-of-put-mapping-with-time-to-change-about-it/100433 "2017-09-25T04:19:40Z")

</div>

timeout of put mapping ,with time to change about it. the default is 30s. \[DEBUG\]\[o.e.a.a.i.m.p.TransportPutMappingAction\] \[xxx\] failed to put mappings on indices \[\[\[xxx/HjtVkBKlSuWCMw5pkRB5iA\]\]\], type \[xxx\] org.elasti…

---

## [Elaticsearch not recognising path repo](https://discuss.elastic.co/t/elaticsearch-not-recognising-path-repo/101352)

<div class="topic-metadata">

**Author:** [@vishu.kolki](https://discuss.elastic.co/u/vishu.kolki)\
**Replies:** 18\
**Last updated:** [September 23, 2017, 2:38pm UTC](https://discuss.elastic.co/t/elaticsearch-not-recognising-path-repo/101352 "2017-09-23T14:38:03Z")

</div>

Hi, My elasticsearch applications are running on docker. i have mounted the path.repo but i am getting following error: {"error":"RepositoryException\[\[my\_backup\] failed to create repository\]; nested: CreationException\[…

---

## [Map open source alternative for elasticsearch?](https://discuss.elastic.co/t/map-open-source-alternative-for-elasticsearch/101593)

<div class="topic-metadata">

**Author:** [@Blason](https://discuss.elastic.co/u/Blason)\
**Replies:** 2\
**Last updated:** [September 25, 2017, 3:27am UTC](https://discuss.elastic.co/t/map-open-source-alternative-for-elasticsearch/101593 "2017-09-25T03:27:34Z")

</div>

Hi Guys, Just keen to know if any other third party open source alternative is available for map which is now I believe part of X-pack?

---

## [In elasticsearch 5.4.3 can't go to green the x-pack monitoring Shard Activity error Phase\[1\] phase1 failed](https://discuss.elastic.co/t/in-elasticsearch-5-4-3-cant-go-to-green-the-x-pack-monitoring-shard-activity-error-phase-1-phase1-failed/99138)

<div class="topic-metadata">

**Author:** [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Replies:** 10\
**Last updated:** [September 25, 2017, 2:58am UTC](https://discuss.elastic.co/t/in-elasticsearch-5-4-3-cant-go-to-green-the-x-pack-monitoring-shard-activity-error-phase-1-phase1-failed/99138 "2017-09-25T02:58:33Z")

</div>

in elasticsearch 5.4.3 the x-pack monitoring Shard Activity error, the Files and Bytes zero, Translog is n/a as so, the elasticsearch is yellow,and much time can’t go to green. the recovery is very slow,about two hours…

---

## [Elasticsearch-PHP application not working](https://discuss.elastic.co/t/elasticsearch-php-application-not-working/101618)

<div class="topic-metadata">

**Author:** [@SamA](https://discuss.elastic.co/u/SamA)\
**Replies:** 0\
**Last updated:** [September 25, 2017, 1:49am UTC](https://discuss.elastic.co/t/elasticsearch-php-application-not-working/101618 "2017-09-25T01:49:12Z")

</div>

I have an Elasticsearch-PHP application and it works locally. However, when I put it on an RHEL 6 server that only supports PHP 5.3, it does not work. When I go to the console, I get GET http://xx.x.xxx.xxx:xxxx/init.ph…

---

## [Match special pattern](https://discuss.elastic.co/t/match-special-pattern/101463)

<div class="topic-metadata">

**Author:** [@Jenny\_Hsiao](https://discuss.elastic.co/u/Jenny_Hsiao)\
**Replies:** 0\
**Last updated:** [September 22, 2017, 9:48am UTC](https://discuss.elastic.co/t/match-special-pattern/101463 "2017-09-22T09:48:19Z")

</div>

I have a question about how to parse the pattern: "hString(4 digit numbers)" Start with h follow by any string number in brackets I want to parse the brackets. Can some one help me to figure out the problem? GET …

---

## [Unable to connect to elasticsearch from other machine](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-from-other-machine/101594)

<div class="topic-metadata">

**Author:** [@yevsh](https://discuss.elastic.co/u/yevsh)\
**Replies:** 1\
**Last updated:** [September 24, 2017, 10:33am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-from-other-machine/101594 "2017-09-24T10:33:57Z")

</div>

I copied elasticsearch to a unix machine, and started it ../elasticsearch-5.6.1/bin\>./elasticsearch tested the connection: curl 'localhost:9200/\_cat/health?v' and got elasticsearch green when I tired to connect r…

---

## [Many to one parent child relationship](https://discuss.elastic.co/t/many-to-one-parent-child-relationship/101595)

<div class="topic-metadata">

**Author:** [@kumar\_soumitra](https://discuss.elastic.co/u/kumar_soumitra)\
**Replies:** 0\
**Last updated:** [September 24, 2017, 7:38am UTC](https://discuss.elastic.co/t/many-to-one-parent-child-relationship/101595 "2017-09-24T07:38:22Z")

</div>

I have an index which stores metrics of applications during its lifecycle. There are 0 or more documents when application '1' is running and 1 document when application has finished. I am using parent-child relationship …

---

## [File conflict upgrading Elasticsearch](https://discuss.elastic.co/t/file-conflict-upgrading-elasticsearch/101591)

<div class="topic-metadata">

**Author:** [@Mr.Flakes](https://discuss.elastic.co/u/Mr.Flakes)\
**Replies:** 0\
**Last updated:** [September 24, 2017, 5:34am UTC](https://discuss.elastic.co/t/file-conflict-upgrading-elasticsearch/101591 "2017-09-24T05:34:13Z")

</div>

Hello guys, I ran into a little problem while trying to upgrade Elasticsearch 5.6.0 to 5.6.1. Note that I don't have internet connection on the server. The error I get: rpm --install elasticsearch-5.6.1.rpm file /usr/…

---

## [HELP: Injecting PCAP to ELK](https://discuss.elastic.co/t/help-injecting-pcap-to-elk/101560)

<div class="topic-metadata">

**Author:** [@nuggetinu](https://discuss.elastic.co/u/nuggetinu)\
**Replies:** 1\
**Last updated:** [September 23, 2017, 7:40pm UTC](https://discuss.elastic.co/t/help-injecting-pcap-to-elk/101560 "2017-09-23T19:40:52Z")

</div>

I have an access point from which I would like to capture traffic and visualize it through ELK. I am collecting traffic from the AP by using plink.exe on Windows to ssh the AP and running tcp dump on the AP outputting to…

---

## [Uniqueness analyzer](https://discuss.elastic.co/t/uniqueness-analyzer/101578)

<div class="topic-metadata">

**Author:** [@138e8420591d7fd009c2](https://discuss.elastic.co/u/138e8420591d7fd009c2)\
**Replies:** 0\
**Last updated:** [September 23, 2017, 6:05pm UTC](https://discuss.elastic.co/t/uniqueness-analyzer/101578 "2017-09-23T18:05:51Z")

</div>

Is anybody know some decision to analyze uniqueness of field to other fields in database. I need get some kind of uniqueness index of article.

---

## [How to get term frequency in Elastic Search 5.6](https://discuss.elastic.co/t/how-to-get-term-frequency-in-elastic-search-5-6/101577)

<div class="topic-metadata">

**Author:** [@hchovatia](https://discuss.elastic.co/u/hchovatia)\
**Replies:** 0\
**Last updated:** [September 23, 2017, 5:54pm UTC](https://discuss.elastic.co/t/how-to-get-term-frequency-in-elastic-search-5-6/101577 "2017-09-23T17:54:42Z")

</div>

Here is my ES Queries: === Create the index === PUT /sample === Insert Data === PUT /sample/docs/1 {"data": "And the world said, 'Disarm, disclose, or face serious consequences'—and therefore, we worked with the wor…

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

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