# Elasticsearch

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

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

**Page:** 1660

---

## [Find data with long when is null](https://discuss.elastic.co/t/find-data-with-long-when-is-null/135195)

<div class="topic-metadata">

**Author:** [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Replies:** 2\
**Last updated:** [June 8, 2018, 8:56pm UTC](https://discuss.elastic.co/t/find-data-with-long-when-is-null/135195 "2018-06-08T20:56:07Z")

</div>

How is possible find a data when a long value is null? I try to do this, but an error occurs: { "query":{ "bool":{ "must":\[ { "term":{ "account":123 …

---

## [Is there any external implementation to cache a query in elastic?](https://discuss.elastic.co/t/is-there-any-external-implementation-to-cache-a-query-in-elastic/135188)

<div class="topic-metadata">

**Author:** [@Suryatejreddy](https://discuss.elastic.co/u/Suryatejreddy)\
**Replies:** 5\
**Last updated:** [June 8, 2018, 8:06pm UTC](https://discuss.elastic.co/t/is-there-any-external-implementation-to-cache-a-query-in-elastic/135188 "2018-06-08T20:06:32Z")

</div>

I am trying to cache a query. so that next time when I do the same query, results from the cache are retrieved.

---

## [Querying on Nested Object retrieving wrong data](https://discuss.elastic.co/t/querying-on-nested-object-retrieving-wrong-data/134094)

<div class="topic-metadata">

**Author:** [@AJ\_Keresztes](https://discuss.elastic.co/u/AJ_Keresztes)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 8:03pm UTC](https://discuss.elastic.co/t/querying-on-nested-object-retrieving-wrong-data/134094 "2018-06-08T20:03:17Z")

</div>

Hi, I'm trying to create a sub query that I'm having trouble with. Here's sample data: { "Id": "5b0ef14df5a3f81d049c2a34", "Active": true, "Entit…

---

## [Elasticsearch mapping template not getting uploaded](https://discuss.elastic.co/t/elasticsearch-mapping-template-not-getting-uploaded/135180)

<div class="topic-metadata">

**Author:** [@Vikrant\_Aggarwal](https://discuss.elastic.co/u/Vikrant_Aggarwal)\
**Replies:** 3\
**Last updated:** [June 8, 2018, 6:42pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-template-not-getting-uploaded/135180 "2018-06-08T18:42:14Z")

</div>

Getting the following error while uploading the ES index template. $ curl -H 'Content-Type: application/json' -XPUT http://localhost:9200/\_template/logs\_template?pretty -d @logs\_template.json { "error" : { "root…

---

## [Sense and Windows 32-bit](https://discuss.elastic.co/t/sense-and-windows-32-bit/135185)

<div class="topic-metadata">

**Author:** [@httpex](https://discuss.elastic.co/u/httpex)\
**Replies:** 0\
**Last updated:** [June 8, 2018, 6:16pm UTC](https://discuss.elastic.co/t/sense-and-windows-32-bit/135185 "2018-06-08T18:16:03Z")

</div>

Kibana looks to only be 64-bit. I'm still using 32-bit. How can I utilize Sense since you don't appear to have a 32bit version of Kibana? The Chrome extension now has malware apparently.... Need visibility. Thanks,

---

## [Cannot Open Shared Object File](https://discuss.elastic.co/t/cannot-open-shared-object-file/134267)

<div class="topic-metadata">

**Author:** [@CDR](https://discuss.elastic.co/u/CDR)\
**Replies:** 15\
**Last updated:** [June 8, 2018, 5:43pm UTC](https://discuss.elastic.co/t/cannot-open-shared-object-file/134267 "2018-06-08T17:43:29Z")

</div>

I am trying to start Elasticsearch on a Linux machine and keep getting the response: /opt/cust/suite/javabin/jre/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file o…

---

## [Monthly rolling period with Curator](https://discuss.elastic.co/t/monthly-rolling-period-with-curator/135140)

<div class="topic-metadata">

**Author:** [@Mogztter](https://discuss.elastic.co/u/Mogztter)\
**Replies:** 2\
**Last updated:** [June 8, 2018, 4:59pm UTC](https://discuss.elastic.co/t/monthly-rolling-period-with-curator/135140 "2018-06-08T16:59:00Z")

</div>

Hello, Is it possible to define a monthly rolling period policy with Curator ? I'm using daily indices with the following pattern metrics\_%{YYYY.MM.dd}. Today index is metrics\_2018.08.06. What I want is to keep 1 mont…

---

## [Create a places API](https://discuss.elastic.co/t/create-a-places-api/135171)

<div class="topic-metadata">

**Author:** [@arkkanoid](https://discuss.elastic.co/u/arkkanoid)\
**Replies:** 2\
**Last updated:** [June 8, 2018, 4:55pm UTC](https://discuss.elastic.co/t/create-a-places-api/135171 "2018-06-08T16:55:28Z")

</div>

Hi, I need to transform a text about a place (i.e. Copenhagen , Capital Region, Denmark) in a structured data: { "professionals": 15644, "elevation": "", "name": "Copenhagen", "modification\_date": "2012-11-26", "c…

---

## [Elasticsearch data node crashing with OutOfMemoryError](https://discuss.elastic.co/t/elasticsearch-data-node-crashing-with-outofmemoryerror/133873)

<div class="topic-metadata">

**Author:** [@farin99](https://discuss.elastic.co/u/farin99)\
**Replies:** 6\
**Last updated:** [June 8, 2018, 4:32pm UTC](https://discuss.elastic.co/t/elasticsearch-data-node-crashing-with-outofmemoryerror/133873 "2018-06-08T16:32:21Z")

</div>

Seems related to queries as it happened at the same time on multiple data nodes in the cluster. From the memory dump, it seems that ~70% of the heap is taken by objects that are waiting for GC (not reachable from the ro…

---

## [Docker monitoring](https://discuss.elastic.co/t/docker-monitoring/134364)

<div class="topic-metadata">

**Author:** [@JensVanDeynse](https://discuss.elastic.co/u/JensVanDeynse)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 4:17pm UTC](https://discuss.elastic.co/t/docker-monitoring/134364 "2018-06-08T16:17:40Z")

</div>

Hello I recently started to implement an ELK stack for our application logs and this goes well for all the filebeat hosts which aren't docker but we've got several docker applications and it's possible to set the host f…

---

## [Update id of existing document](https://discuss.elastic.co/t/update-id-of-existing-document/135062)

<div class="topic-metadata">

**Author:** [@jagrutsharma](https://discuss.elastic.co/u/jagrutsharma)\
**Replies:** 2\
**Last updated:** [June 8, 2018, 4:16pm UTC](https://discuss.elastic.co/t/update-id-of-existing-document/135062 "2018-06-08T16:16:24Z")

</div>

Can the \_id of existing documents in index be updated? Thanks.

---

## [Insufficient memory for the Java Runtime Environment to continue](https://discuss.elastic.co/t/insufficient-memory-for-the-java-runtime-environment-to-continue/135169)

<div class="topic-metadata">

**Author:** [@SimpleCC](https://discuss.elastic.co/u/SimpleCC)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 4:08pm UTC](https://discuss.elastic.co/t/insufficient-memory-for-the-java-runtime-environment-to-continue/135169 "2018-06-08T16:08:43Z")

</div>

I configured the environment and use ./elasticsearch to launched the Elasticsearch-6.2.4，then I got the error message: \[6\] the log content is: \[1\] \[415\] --------------- S Y S T E M --------------- OS:CentOS Linux…

---

## [How can I relate \_Id from diferents Index](https://discuss.elastic.co/t/how-can-i-relate-id-from-diferents-index/134582)

<div class="topic-metadata">

**Author:** [@Reverse\_Flash\_DC](https://discuss.elastic.co/u/Reverse_Flash_DC)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 3:42pm UTC](https://discuss.elastic.co/t/how-can-i-relate-id-from-diferents-index/134582 "2018-06-08T15:42:39Z")

</div>

I can to relate two index by an ID. How can I do that?

---

## [Match with forward slash and dash](https://discuss.elastic.co/t/match-with-forward-slash-and-dash/134121)

<div class="topic-metadata">

**Author:** [@zhex900](https://discuss.elastic.co/u/zhex900)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 3:39pm UTC](https://discuss.elastic.co/t/match-with-forward-slash-and-dash/134121 "2018-06-08T15:39:11Z")

</div>

Hi, I am trying for find the best way to index addresses. The problem is that I get no match when input search have forward slash. For example: I get no match for 1/3 example st. I think the problem is the whitespace…

---

## [Curator delete\_indices doesn't](https://discuss.elastic.co/t/curator-delete-indices-doesnt/135154)

<div class="topic-metadata">

**Author:** [@adamcheney](https://discuss.elastic.co/u/adamcheney)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 3:22pm UTC](https://discuss.elastic.co/t/curator-delete-indices-doesnt/135154 "2018-06-08T15:22:53Z")

</div>

Hi folks, Please accept a pre-emptive apology for what might be a dumb, noob question...! Elasticsearch 6.2 Curator 5.5 I'm trying to set up a simple curator job to clean up old indices. I've been playing around with…

---

## [Elastic Plugin suddenly stopped](https://discuss.elastic.co/t/elastic-plugin-suddenly-stopped/134227)

<div class="topic-metadata">

**Author:** [@abhat](https://discuss.elastic.co/u/abhat)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 3:18pm UTC](https://discuss.elastic.co/t/elastic-plugin-suddenly-stopped/134227 "2018-06-08T15:18:48Z")

</div>

Hi Team, The elastic plugin suddenly started to show RED in Kibana dashboard. Port 9200 is listening and process is also up but curl is giving some authentication errors. Note - Nginx and X-PACK is not yet installed. …

---

## [Iam trying to add a new element(object) to an array](https://discuss.elastic.co/t/iam-trying-to-add-a-new-element-object-to-an-array/134170)

<div class="topic-metadata">

**Author:** [@pidugusundeep](https://discuss.elastic.co/u/pidugusundeep)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 3:13pm UTC](https://discuss.elastic.co/t/iam-trying-to-add-a-new-element-object-to-an-array/134170 "2018-06-08T15:13:39Z")

</div>

https://pastebin.com/1jnSVVJ7 this has the code which iam referring to and the method starting from LINE\_23 is always adding a null to the array list how do i fix this ?

---

## [Is my response time is ok?](https://discuss.elastic.co/t/is-my-response-time-is-ok/134326)

<div class="topic-metadata">

**Author:** [@artpolikarpov](https://discuss.elastic.co/u/artpolikarpov)\
**Replies:** 17\
**Last updated:** [June 8, 2018, 2:58pm UTC](https://discuss.elastic.co/t/is-my-response-time-is-ok/134326 "2018-06-08T14:58:53Z")

</div>

Hi there! I am a novice in ES. And I want to know if I’m doing something wrong or trying to achieve impossible things. I think my searches are slow. I have index messages (22.9 GB, 77m docs). Mapping is simple: esClien…

---

## [Custom similarity scoring](https://discuss.elastic.co/t/custom-similarity-scoring/135168)

<div class="topic-metadata">

**Author:** [@matanster](https://discuss.elastic.co/u/matanster)\
**Replies:** 0\
**Last updated:** [June 8, 2018, 2:18pm UTC](https://discuss.elastic.co/t/custom-similarity-scoring/135168 "2018-06-08T14:18:34Z")

</div>

Hi, I'm interested in implementing a custom version of Levenshtein Distance that accumulates edit distance in a finer-grained way than the base algorithm, namely basing the distance on specific characters being deleted/…

---

## [Updating one nested object](https://discuss.elastic.co/t/updating-one-nested-object/135166)

<div class="topic-metadata">

**Author:** [@carasel](https://discuss.elastic.co/u/carasel)\
**Replies:** 2\
**Last updated:** [June 8, 2018, 2:10pm UTC](https://discuss.elastic.co/t/updating-one-nested-object/135166 "2018-06-08T14:10:23Z")

</div>

I have an index of documents containing an array of objects (nested). I am aware that the normal way to update this would be to query to get the array, update the object I want to update, then replace the entire array in…

---

## [Is it possible to delete fields from Elasticsearch?](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237)

<div class="topic-metadata">

**Author:** [@amruth](https://discuss.elastic.co/u/amruth)\
**Replies:** 3\
**Last updated:** [June 8, 2018, 2:04pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237 "2018-06-08T14:04:07Z")

</div>

Hi, I am ingesting data to elasticsearch using logstash and my indexes are created every month(sample-%{+YYYY.MM}). sample-2018.04 and sample-2018.05 indexes have unwanted fields(nearly 8000 fields). Now, I've correcte…

---

## [Multi-match query](https://discuss.elastic.co/t/multi-match-query/134838)

<div class="topic-metadata">

**Author:** [@pli](https://discuss.elastic.co/u/pli)\
**Replies:** 4\
**Last updated:** [June 8, 2018, 2:02pm UTC](https://discuss.elastic.co/t/multi-match-query/134838 "2018-06-08T14:02:03Z")

</div>

Hi All, I try to find a value ( from different field" ) in two index. ( and return false if the value is not present in the two indexes. here is my examples. I have an index ( known\_issues ) filled with the current e…

---

## [Elasticsearch nested objects MUST bool filter](https://discuss.elastic.co/t/elasticsearch-nested-objects-must-bool-filter/135145)

<div class="topic-metadata">

**Author:** [@Adam\_Krajcs](https://discuss.elastic.co/u/Adam_Krajcs)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 1:41pm UTC](https://discuss.elastic.co/t/elasticsearch-nested-objects-must-bool-filter/135145 "2018-06-08T13:41:01Z")

</div>

Hi, I've the following nested index structure: "sector\_parametric": \[ { "sector": \[ "2" \], "experience": 1.7, "adv\_business\_sector\_id": "637" }, { "sector": \[ "1", "2", "10003" \], "experience": 2.7, "adv…

---

## [Update(upsert) with query support](https://discuss.elastic.co/t/update-upsert-with-query-support/135098)

<div class="topic-metadata">

**Author:** [@Hitesh\_Baldaniya](https://discuss.elastic.co/u/Hitesh_Baldaniya)\
**Replies:** 5\
**Last updated:** [June 8, 2018, 1:20pm UTC](https://discuss.elastic.co/t/update-upsert-with-query-support/135098 "2018-06-08T13:20:11Z")

</div>

Hi All, Consider following situation. PUT {{Index}}/{{Type}}/{{ID}}?query={"range": {"version": {"lt": 2}}} { "doc": { "title": "Test1" "version": 2 } } I want to upsert document if it absent, otherwise update the doc…

---

## [REST client initialization](https://discuss.elastic.co/t/rest-client-initialization/134128)

<div class="topic-metadata">

**Author:** [@keithag](https://discuss.elastic.co/u/keithag)\
**Replies:** 3\
**Last updated:** [June 8, 2018, 12:56pm UTC](https://discuss.elastic.co/t/rest-client-initialization/134128 "2018-06-08T12:56:18Z")

</div>

Assume I have a cluster containing master-eligible nodes, data nodes and coordinating nodes. When I initialize a REST client, which of the above node types should I include? All of the nodes, only the data nodes, only …

---

## [Elasticsearch cluster with docker - handshake failed](https://discuss.elastic.co/t/elasticsearch-cluster-with-docker-handshake-failed/134223)

<div class="topic-metadata">

**Author:** [@maciejgawlowski](https://discuss.elastic.co/u/maciejgawlowski)\
**Replies:** 3\
**Last updated:** [June 8, 2018, 12:05pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-with-docker-handshake-failed/134223 "2018-06-08T12:05:04Z")

</div>

Hi, I try to connect one elasticsearch data node to another elasticsearch data-master node. Both elasticsearch are running in docker containers on two different virtual machines. When I try to connect I get error: \[2018…

---

## [How to build my Elasticsearch query](https://discuss.elastic.co/t/how-to-build-my-elasticsearch-query/135142)

<div class="topic-metadata">

**Author:** [@ExtraBall77](https://discuss.elastic.co/u/ExtraBall77)\
**Replies:** 0\
**Last updated:** [June 8, 2018, 11:37am UTC](https://discuss.elastic.co/t/how-to-build-my-elasticsearch-query/135142 "2018-06-08T11:37:12Z")

</div>

Hello, I have a problem that seems simple, but I can not solve it. If in my index I have as data : country | id | n1 | n2 | n3 | other ---------+----+----+----+----+------- 1 | 1 | 0 | 2 | 0 | 1 …

---

## [How can we decrypt JWT based cookies in logstash and](https://discuss.elastic.co/t/how-can-we-decrypt-jwt-based-cookies-in-logstash-and/135139)

<div class="topic-metadata">

**Author:** [@salil](https://discuss.elastic.co/u/salil)\
**Replies:** 0\
**Last updated:** [June 8, 2018, 11:25am UTC](https://discuss.elastic.co/t/how-can-we-decrypt-jwt-based-cookies-in-logstash-and/135139 "2018-06-08T11:25:12Z")

</div>

I have nginx logs in json format which has incoded JWT auth\_cookie field. How can i parse auth\_cookie field in logstash so i can parse the auth\_email value from auth\_cookie field to send it elastic search. i check http…

---

## [What is My fail](https://discuss.elastic.co/t/what-is-my-fail/135137)

<div class="topic-metadata">

**Author:** [@firattaskin93](https://discuss.elastic.co/u/firattaskin93)\
**Replies:** 0\
**Last updated:** [June 8, 2018, 11:10am UTC](https://discuss.elastic.co/t/what-is-my-fail/135137 "2018-06-08T11:10:57Z")

</div>

Hi Everyone, My problem is about filter and get terms. İ wanna get term counts like zalando.de When i clicked any color other colors not seeing after refresh. I could not found any example for nested products and fil…

---

## [Java rest client 5.6, fetch if "Type" exists](https://discuss.elastic.co/t/java-rest-client-5-6-fetch-if-type-exists/134020)

<div class="topic-metadata">

**Author:** [@Neha\_goswami](https://discuss.elastic.co/u/Neha_goswami)\
**Replies:** 1\
**Last updated:** [June 8, 2018, 11:01am UTC](https://discuss.elastic.co/t/java-rest-client-5-6-fetch-if-type-exists/134020 "2018-06-08T11:01:00Z")

</div>

I am working on migration from Transport client to rest client: To start with the simple change: earlier in transport client to find a "type" exists ,we did this: boolean typexists = this.client.admin().indices().prep…

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

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