# Elasticsearch

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

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

**Page:** 1886

---

## [Return many values from Painless script to aggregation](https://discuss.elastic.co/t/return-many-values-from-painless-script-to-aggregation/108150)

<div class="topic-metadata">

**Author:** [@merito](https://discuss.elastic.co/u/merito)\
**Replies:** 1\
**Last updated:** [November 17, 2017, 3:05pm UTC](https://discuss.elastic.co/t/return-many-values-from-painless-script-to-aggregation/108150 "2017-11-17T15:05:19Z")

</div>

Hi, is it possible to get more than one value from script in e.g., terms aggregation from one document? I would like to have an aggregation of values of two fields using the script. I know I can use copy\_to in mapping o…

---

## [Access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")](https://discuss.elastic.co/t/access-denied-java-lang-runtimepermission-accessdeclaredmembers/108132)

<div class="topic-metadata">

**Author:** [@Vivek\_Unni](https://discuss.elastic.co/u/Vivek_Unni)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 2:53pm UTC](https://discuss.elastic.co/t/access-denied-java-lang-runtimepermission-accessdeclaredmembers/108132 "2017-11-17T14:53:29Z")

</div>

I am trying to map the JSON response from other service to a POJO class(AMAUser class from an external jar ama-user-service.jar) using ObjectMapper. I have configured the policy file as below in /elasticsearch-5.6.0/plu…

---

## [ES 5.6.2 OutOfMemory heap space](https://discuss.elastic.co/t/es-5-6-2-outofmemory-heap-space/104900)

<div class="topic-metadata">

**Author:** [@Jeff\_Bolle](https://discuss.elastic.co/u/Jeff_Bolle)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 2:14pm UTC](https://discuss.elastic.co/t/es-5-6-2-outofmemory-heap-space/104900 "2017-11-17T14:14:24Z")

</div>

It appears that I experienced the same error at the same time on 2 servers in my cluster. Previously we had similar issues with aggregations that caused a heap overflow, but I thought that had been resolved. This looks…

---

## [Not seeing search results](https://discuss.elastic.co/t/not-seeing-search-results/107769)

<div class="topic-metadata">

**Author:** [@avenky](https://discuss.elastic.co/u/avenky)\
**Replies:** 5\
**Last updated:** [November 17, 2017, 1:56pm UTC](https://discuss.elastic.co/t/not-seeing-search-results/107769 "2017-11-17T13:56:21Z")

</div>

Hi, I installed elasticsearch 2.3.3 and have created an index by pumping the data from my sql server DB. But when I issued a search query from browser, I don't see the results. Instead I see the following. {"took":300…

---

## [Inverse Document Frequency Scoring with Shared Indices and Routing](https://discuss.elastic.co/t/inverse-document-frequency-scoring-with-shared-indices-and-routing/108143)

<div class="topic-metadata">

**Author:** [@jayers](https://discuss.elastic.co/u/jayers)\
**Replies:** 0\
**Last updated:** [November 17, 2017, 1:50pm UTC](https://discuss.elastic.co/t/inverse-document-frequency-scoring-with-shared-indices-and-routing/108143 "2017-11-17T13:50:19Z")

</div>

Given the removal of mapping types in Elasticsearch 6.0, we are looking to use one index per document type. Following along with "The Definitive Guide", these will be shared indices, with routing per client, so smaller …

---

## [Count for fieldName & fieldName.keyword different](https://discuss.elastic.co/t/count-for-fieldname-fieldname-keyword-different/108017)

<div class="topic-metadata">

**Author:** [@thampton](https://discuss.elastic.co/u/thampton)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 1:40pm UTC](https://discuss.elastic.co/t/count-for-fieldname-fieldname-keyword-different/108017 "2017-11-17T13:40:28Z")

</div>

I'm using Elasticsearch 5.2.2 Trying to understand why the following queries are returning different count for some fields, while returning the same count for others. I would expect to get the same count for each of th…

---

## [Sum nested values while applying match conditions](https://discuss.elastic.co/t/sum-nested-values-while-applying-match-conditions/108032)

<div class="topic-metadata">

**Author:** [@Rory](https://discuss.elastic.co/u/Rory)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 1:24pm UTC](https://discuss.elastic.co/t/sum-nested-values-while-applying-match-conditions/108032 "2017-11-17T13:24:59Z")

</div>

Hi, I have a document which looks like: { "comments\_by\_day" : \[ { "dateofcomment" : "2017-09-20", "numberofcomments" : 10 }, { "dateofcomment" : "2017-09-24", "numberofcomments" : 5 }, { …

---

## [X-www-urlencoded not supported(?)](https://discuss.elastic.co/t/x-www-urlencoded-not-supported/108128)

<div class="topic-metadata">

**Author:** [@sancroth](https://discuss.elastic.co/u/sancroth)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 12:46pm UTC](https://discuss.elastic.co/t/x-www-urlencoded-not-supported/108128 "2017-11-17T12:46:39Z")

</div>

I am using an extension from a testing framework that is supposed to build up some indices and fill them with data on my elastic server. The extension works perfectly well with a demo server that the company behind the …

---

## [Remote Access to Elastic Search](https://discuss.elastic.co/t/remote-access-to-elastic-search/108108)

<div class="topic-metadata">

**Author:** [@sancroth](https://discuss.elastic.co/u/sancroth)\
**Replies:** 9\
**Last updated:** [November 17, 2017, 12:32pm UTC](https://discuss.elastic.co/t/remote-access-to-elastic-search/108108 "2017-11-17T12:32:34Z")

</div>

I have created a demo server to play around and i am trying to make elasticsearch remotely accessible for some services of mine. I have set network.host : 0.0.0.0 -\> not working network.host : xxx.xxx.xxx.xxx -\> not w…

---

## [Elastic Script](https://discuss.elastic.co/t/elastic-script/108119)

<div class="topic-metadata">

**Author:** [@RafaelPosthaus](https://discuss.elastic.co/u/RafaelPosthaus)\
**Replies:** 0\
**Last updated:** [November 17, 2017, 11:27am UTC](https://discuss.elastic.co/t/elastic-script/108119 "2017-11-17T11:27:12Z")

</div>

Good morning, how are you? I wanted to ask you a question that I think is easy for you. referring to using script, in my indexations and queries, once they told me that I should escape scripts, because they are slow ..…

---

## [Upgraded to 6.0.0 - Elasticsearch plugin is red](https://discuss.elastic.co/t/upgraded-to-6-0-0-elasticsearch-plugin-is-red/107679)

<div class="topic-metadata">

**Author:** [@undelete](https://discuss.elastic.co/u/undelete)\
**Replies:** 6\
**Last updated:** [November 17, 2017, 10:48am UTC](https://discuss.elastic.co/t/upgraded-to-6-0-0-elasticsearch-plugin-is-red/107679 "2017-11-17T10:48:21Z")

</div>

I just updated to 6.0.0 from 5.6.3 and now my Elasticsearch plugin is red. plugin:elasticsearch@6.0.0  Your Kibana index is out of date, reset it or use the X-Pack upgrade assistant. I have searched for resetting kiba…

---

## [How to get not too much similar documents?](https://discuss.elastic.co/t/how-to-get-not-too-much-similar-documents/104788)

<div class="topic-metadata">

**Author:** [@Illidan](https://discuss.elastic.co/u/Illidan)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 10:32am UTC](https://discuss.elastic.co/t/how-to-get-not-too-much-similar-documents/104788 "2017-11-17T10:32:24Z")

</div>

I have a requirement to retrieve similar documents, but not too much similar (because we have in database many almost identical documents, which we want to skip in search). I looking into "More Like This" documentation,…

---

## [Top hits query with same score?](https://discuss.elastic.co/t/top-hits-query-with-same-score/107018)

<div class="topic-metadata">

**Author:** [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Replies:** 4\
**Last updated:** [November 17, 2017, 10:28am UTC](https://discuss.elastic.co/t/top-hits-query-with-same-score/107018 "2017-11-17T10:28:53Z")

</div>

I would like to ask a basic question about top hits aggregation . How does top hits aggregation choose the document when the score is the same? As condition , sort order is set as default and size is set to 1. In b…

---

## [NEST - UpdateByQuery](https://discuss.elastic.co/t/nest-updatebyquery/105744)

<div class="topic-metadata">

**Author:** [@Illidan](https://discuss.elastic.co/u/Illidan)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 10:23am UTC](https://discuss.elastic.co/t/nest-updatebyquery/105744 "2017-11-17T10:23:45Z")

</div>

Is there any "strong typed" way to tell what I want to update during 'UpdateByQuery' operation? I find only 'Script' property which accepts a script text. I prefer to avoid "free texts" as much as possible (free text =…

---

## [Pentaho data integration with Elastic Search](https://discuss.elastic.co/t/pentaho-data-integration-with-elastic-search/107245)

<div class="topic-metadata">

**Author:** [@Bhanu\_Y](https://discuss.elastic.co/u/Bhanu_Y)\
**Replies:** 1\
**Last updated:** [November 17, 2017, 10:08am UTC](https://discuss.elastic.co/t/pentaho-data-integration-with-elastic-search/107245 "2017-11-17T10:08:35Z")

</div>

Hi, I want to connect Pentaho-7.0(Spoon) with Elastic Search-5.4. But in ES Bulk Insertion after giving address and port #, when i click test connection it is gives the following error. Please Help...!!! \[image\]

---

## [Performance on multi term query with "should" clause](https://discuss.elastic.co/t/performance-on-multi-term-query-with-should-clause/108102)

<div class="topic-metadata">

**Author:** [@imoghira](https://discuss.elastic.co/u/imoghira)\
**Replies:** 0\
**Last updated:** [November 17, 2017, 10:07am UTC](https://discuss.elastic.co/t/performance-on-multi-term-query-with-should-clause/108102 "2017-11-17T10:07:37Z")

</div>

I am working on this query which involves term match of around 100 queries with "should" clause. It goes something like this. "query": { "function\_score": { "query": { "filtered": { "query": { "bool": { "must": \[ …

---

## [New Unassigned shards every day](https://discuss.elastic.co/t/new-unassigned-shards-every-day/108089)

<div class="topic-metadata">

**Author:** [@Tino\_Zidore](https://discuss.elastic.co/u/Tino_Zidore)\
**Replies:** 6\
**Last updated:** [November 17, 2017, 9:49am UTC](https://discuss.elastic.co/t/new-unassigned-shards-every-day/108089 "2017-11-17T09:49:17Z")

</div>

Hi I have installed ELK stack and it has been running great. I followed this guide for the setup: http://pfelk.3ilson.com/ I needed a grok debugger and therefore I installed x-pack with a basic license. When installi…

---

## [Working with strings in Painless](https://discuss.elastic.co/t/working-with-strings-in-painless/107896)

<div class="topic-metadata">

**Author:** [@merito](https://discuss.elastic.co/u/merito)\
**Replies:** 5\
**Last updated:** [November 16, 2017, 9:17pm UTC](https://discuss.elastic.co/t/working-with-strings-in-painless/107896 "2017-11-16T21:17:43Z")

</div>

Hi, I'm trying to manipulate strings doing an aggregation, but I fail. I've got a field mapped as a keyword, let's call it my\_field. There are some data like 12.0343.13, 3.253.88 in this field in docs. I try to do the a…

---

## [Upgrade to 6.0 with basic license](https://discuss.elastic.co/t/upgrade-to-6-0-with-basic-license/107690)

<div class="topic-metadata">

**Author:** [@Zsolt](https://discuss.elastic.co/u/Zsolt)\
**Replies:** 7\
**Last updated:** [November 17, 2017, 9:22am UTC](https://discuss.elastic.co/t/upgrade-to-6-0-with-basic-license/107690 "2017-11-17T09:22:04Z")

</div>

I'm on 5.6.3 and the upgrade assistant is telling me to reindex .watches and .triggered\_watches - but this fails with "current license is non-compliant for \[watcher\]". .triggered\_watches I just deleted, but .watches ind…

---

## [How to filter result with python script file](https://discuss.elastic.co/t/how-to-filter-result-with-python-script-file/107882)

<div class="topic-metadata">

**Author:** [@MengPhantom](https://discuss.elastic.co/u/MengPhantom)\
**Replies:** 4\
**Last updated:** [November 17, 2017, 8:45am UTC](https://discuss.elastic.co/t/how-to-filter-result-with-python-script-file/107882 "2017-11-17T08:45:59Z")

</div>

I want filter search result with my local python script,I have try es2.4 's python script file ,It won't work even call a simple function.What should I do?

---

## [Elasticsearch Index Pattern](https://discuss.elastic.co/t/elasticsearch-index-pattern/108075)

<div class="topic-metadata">

**Author:** [@Sanjeev\_Routray](https://discuss.elastic.co/u/Sanjeev_Routray)\
**Replies:** 3\
**Last updated:** [November 17, 2017, 8:40am UTC](https://discuss.elastic.co/t/elasticsearch-index-pattern/108075 "2017-11-17T08:40:21Z")

</div>

I am sourcing data from the end point using metricbeat. What I have noticed is that the index pattern date changes everyday (for example it was metricbeat-6.0.0-2017.11.16 yesterday and today it is metricbeat-6.0.0-2017.…

---

## [Find documents where field1 is equal to substring of field2](https://discuss.elastic.co/t/find-documents-where-field1-is-equal-to-substring-of-field2/108025)

<div class="topic-metadata">

**Author:** [@Pierig\_LeSaux](https://discuss.elastic.co/u/Pierig_LeSaux)\
**Replies:** 1\
**Last updated:** [November 17, 2017, 8:13am UTC](https://discuss.elastic.co/t/find-documents-where-field1-is-equal-to-substring-of-field2/108025 "2017-11-17T08:13:45Z")

</div>

Hello, I am writing a query to find all documents that have a field equal to a substring of another field { "query": { "bool" : { "filter" : { "script" : { "s…

---

## [Connecting ElasticSearch by python code on remote node](https://discuss.elastic.co/t/connecting-elasticsearch-by-python-code-on-remote-node/107147)

<div class="topic-metadata">

**Author:** [@pathakhcst](https://discuss.elastic.co/u/pathakhcst)\
**Replies:** 1\
**Last updated:** [November 17, 2017, 8:08am UTC](https://discuss.elastic.co/t/connecting-elasticsearch-by-python-code-on-remote-node/107147 "2017-11-17T08:08:01Z")

</div>

I am hosting the ES server on one computer at my home and wants to push data from other computer remotely. In this case the remote server may or may not be available all the time so my remote python code crashes when eve…

---

## [Java 1.4 : Send data to ElasticSearch](https://discuss.elastic.co/t/java-1-4-send-data-to-elasticsearch/107931)

<div class="topic-metadata">

**Author:** [@oxygenan](https://discuss.elastic.co/u/oxygenan)\
**Replies:** 4\
**Last updated:** [November 17, 2017, 7:58am UTC](https://discuss.elastic.co/t/java-1-4-send-data-to-elasticsearch/107931 "2017-11-17T07:58:00Z")

</div>

Hi, We are using Java 1.4 and we would like to write data to ELK stack. Can you please suggest the API to push data in such a setup? Regards

---

## [Dell Server elasticsearch debian Initial Setup Networking](https://discuss.elastic.co/t/dell-server-elasticsearch-debian-initial-setup-networking/108018)

<div class="topic-metadata">

**Author:** [@Julian\_Daly](https://discuss.elastic.co/u/Julian_Daly)\
**Replies:** 3\
**Last updated:** [November 17, 2017, 7:39am UTC](https://discuss.elastic.co/t/dell-server-elasticsearch-debian-initial-setup-networking/108018 "2017-11-17T07:39:35Z")

</div>

Hello Please excuse me, I am not big into elasticsearch. I have to get it installed for Development Dept. This will be done on two Dell PowerEdge R730, one in each Datacenter ( same location, different buildings) . Th…

---

## [Settings to use with RestHighLevelClient and BulkProcessor](https://discuss.elastic.co/t/settings-to-use-with-resthighlevelclient-and-bulkprocessor/107433)

<div class="topic-metadata">

**Author:** [@gringogordo](https://discuss.elastic.co/u/gringogordo)\
**Replies:** 1\
**Last updated:** [November 17, 2017, 7:35am UTC](https://discuss.elastic.co/t/settings-to-use-with-resthighlevelclient-and-bulkprocessor/107433 "2017-11-17T07:35:00Z")

</div>

I am have written the very basic first steps of a java app to build 6 indexes. All works okay with somethign along these lines - \`highLevelRestClient.bulkAsync(request, bulkActionListener);\` until I add concurrency a…

---

## [What is mapping type in index template?](https://discuss.elastic.co/t/what-is-mapping-type-in-index-template/108057)

<div class="topic-metadata">

**Author:** [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Replies:** 1\
**Last updated:** [November 17, 2017, 6:01am UTC](https://discuss.elastic.co/t/what-is-mapping-type-in-index-template/108057 "2017-11-17T06:01:13Z")

</div>

Hi, I am using Elaasticsearch GA 5.0.0. I am tring to apply index template, and from this link I was able to get a tutorial with examples. Below is the sample template defined there. PUT \_template/template\_1 { "templ…

---

## [How convert Hashmap to JSON string in painless script?](https://discuss.elastic.co/t/how-convert-hashmap-to-json-string-in-painless-script/107994)

<div class="topic-metadata">

**Author:** [@RomainXie](https://discuss.elastic.co/u/RomainXie)\
**Replies:** 2\
**Last updated:** [November 17, 2017, 5:28am UTC](https://discuss.elastic.co/t/how-convert-hashmap-to-json-string-in-painless-script/107994 "2017-11-17T05:28:26Z")

</div>

Hi, I want to convert a hashmap to a json object or a json string in the painless script. I know I can use the {{#tojson}} to convert it in the mustache. But I need add slash before each double-quote in the output. Is…

---

## [Some problem with geoip](https://discuss.elastic.co/t/some-problem-with-geoip/108053)

<div class="topic-metadata">

**Author:** [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Replies:** 3\
**Last updated:** [November 17, 2017, 4:48am UTC](https://discuss.elastic.co/t/some-problem-with-geoip/108053 "2017-11-17T04:48:48Z")

</div>

this is the log, and I have remove the geoip plugin. \[2017-11-17T11:32:22,598\]\[DEBUG\]\[o.e.a.b.TransportBulkAction\] \[Ku2xA7C\] failed to execute pipeline \[geoip-info\] for document \[packetbeat-2017.11.17/doc/null\] java.la…

---

## [Curator 5.4 SSL module is not available](https://discuss.elastic.co/t/curator-5-4-ssl-module-is-not-available/108009)

<div class="topic-metadata">

**Author:** [@nradonicich](https://discuss.elastic.co/u/nradonicich)\
**Replies:** 3\
**Last updated:** [November 17, 2017, 4:07am UTC](https://discuss.elastic.co/t/curator-5-4-ssl-module-is-not-available/108009 "2017-11-17T04:07:57Z")

</div>

Hello, Installed curator 5.4 to manage a new ES6 instance (was RC1 now GA). When running curator against ES6 with X-Pack security (SSL enabled) an error is received from urllib3 seen from below debug log. This is on a RH…

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

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