# Elasticsearch

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

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

**Page:** 1317

---

## [Question about Elasticsearch schema and query](https://discuss.elastic.co/t/question-about-elasticsearch-schema-and-query/178999)

<div class="topic-metadata">

**Author:** [@Devon\_Yoo](https://discuss.elastic.co/u/Devon_Yoo)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 11:55pm UTC](https://discuss.elastic.co/t/question-about-elasticsearch-schema-and-query/178999 "2019-04-29T23:55:09Z")

</div>

I am setting up an Elasticsearch cluster for searching vectors associated to an id. For example, Given data: Parent id / Object id / vectors P1 / BD / 123, 125, 235 ... 10304, 50305 P1 / DF / 125, 235, 240 ... 10305, …

---

## [Indexing same documents with different timestamps and aggregate on single ones](https://discuss.elastic.co/t/indexing-same-documents-with-different-timestamps-and-aggregate-on-single-ones/178988)

<div class="topic-metadata">

**Author:** [@John\_Diaz](https://discuss.elastic.co/u/John_Diaz)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 8:54pm UTC](https://discuss.elastic.co/t/indexing-same-documents-with-different-timestamps-and-aggregate-on-single-ones/178988 "2019-04-29T20:54:26Z")

</div>

Hi, I'm currently defining a new model for our indexation that is being used for calculating trends of metrics, right now, i'm indexing all documents in a single index using a prefix of date 2019-01-01, and a combinatio…

---

## [Questions about backup strategy](https://discuss.elastic.co/t/questions-about-backup-strategy/178893)

<div class="topic-metadata">

**Author:** [@asp](https://discuss.elastic.co/u/asp)\
**Replies:** 3\
**Last updated:** [April 29, 2019, 8:48pm UTC](https://discuss.elastic.co/t/questions-about-backup-strategy/178893 "2019-04-29T20:48:22Z")

</div>

Hi folks, In my last project, a backup of the indices had been quite unimportant. If gone it's gone, so I only did a snapshot of kibana index once a day. For my new project I need to create a backup plan. Not loosing d…

---

## [How does custom template work in elasticsearch?](https://discuss.elastic.co/t/how-does-custom-template-work-in-elasticsearch/178731)

<div class="topic-metadata">

**Author:** [@exocore123](https://discuss.elastic.co/u/exocore123)\
**Replies:** 4\
**Last updated:** [April 29, 2019, 8:40pm UTC](https://discuss.elastic.co/t/how-does-custom-template-work-in-elasticsearch/178731 "2019-04-29T20:40:02Z")

</div>

I've asked a question a while back, but cant seem to find a proper solution or a work around... I currently have a filter that parse a certain amount of logs and aggregate it all together to finalize a final log (each A…

---

## [Very old events are published in Elastic Search](https://discuss.elastic.co/t/very-old-events-are-published-in-elastic-search/178522)

<div class="topic-metadata">

**Author:** [@Jaepyoung\_Kim](https://discuss.elastic.co/u/Jaepyoung_Kim)\
**Replies:** 4\
**Last updated:** [April 29, 2019, 8:35pm UTC](https://discuss.elastic.co/t/very-old-events-are-published-in-elastic-search/178522 "2019-04-29T20:35:26Z")

</div>

When I checked logs kibana today, log events at 4/12 is being published now. For example, |@timestamp| |April 25th 2019, 11:15:15.213| | offset |1,395,503,642 |raw\_message| |####\<2019/04/12 17:3…

---

## [Put JSON into elasticsearch?](https://discuss.elastic.co/t/put-json-into-elasticsearch/178971)

<div class="topic-metadata">

**Author:** [@Moxyze](https://discuss.elastic.co/u/Moxyze)\
**Replies:** 4\
**Last updated:** [April 29, 2019, 7:24pm UTC](https://discuss.elastic.co/t/put-json-into-elasticsearch/178971 "2019-04-29T19:24:43Z")

</div>

Hello! This topic may be a duplicate, but I couldn't find anything appropriate, so please bare with me on this one. So anyway, how do I import a JSON file into elasticsearch from command line? I was trying something …

---

## [Problem Couldn't find any Elasticsearch data](https://discuss.elastic.co/t/problem-couldnt-find-any-elasticsearch-data/178798)

<div class="topic-metadata">

**Author:** [@kumar4](https://discuss.elastic.co/u/kumar4)\
**Replies:** 14\
**Last updated:** [April 29, 2019, 7:17pm UTC](https://discuss.elastic.co/t/problem-couldnt-find-any-elasticsearch-data/178798 "2019-04-29T19:17:22Z")

</div>

hi my friend, i installed ealstichsearch, logstach, kibana and filebeat on the same server but my problem is that cant visulaize my data in kibana, when tryin to create an index ig give me an error "Couldn't find any Ela…

---

## [Efficiently detecting gaps in a numeric range using Elasticsearch](https://discuss.elastic.co/t/efficiently-detecting-gaps-in-a-numeric-range-using-elasticsearch/178979)

<div class="topic-metadata">

**Author:** [@Evan1](https://discuss.elastic.co/u/Evan1)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 6:36pm UTC](https://discuss.elastic.co/t/efficiently-detecting-gaps-in-a-numeric-range-using-elasticsearch/178979 "2019-04-29T18:36:39Z")

</div>

I need to construct a query that will return a list of gaps in sequence numbers in timeseries data. This question was asked a few years ago Detecting gaps in numeric range using ElasticSearch but never received any repl…

---

## [Nodes monitoring data goes missing in 7.0.0](https://discuss.elastic.co/t/nodes-monitoring-data-goes-missing-in-7-0-0/178978)

<div class="topic-metadata">

**Author:** [@elasticsearch\_user](https://discuss.elastic.co/u/elasticsearch_user)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 6:32pm UTC](https://discuss.elastic.co/t/nodes-monitoring-data-goes-missing-in-7-0-0/178978 "2019-04-29T18:32:30Z")

</div>

Hi, I have enabled monitoring using the API: PUT \_cluster/settings { "persistent": { "xpack.monitoring.collection.enabled": true } } I can see all other monitoring tabs namely overview, indices, jobs and ccr but …

---

## [Importing Dashboards Fail](https://discuss.elastic.co/t/importing-dashboards-fail/178972)

<div class="topic-metadata">

**Author:** [@stefan2017](https://discuss.elastic.co/u/stefan2017)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 5:49pm UTC](https://discuss.elastic.co/t/importing-dashboards-fail/178972 "2019-04-29T17:49:56Z")

</div>

Greetings All, I'm trying to import dashboards but not having any luck. Filebeat logs the following error message. ERROR instance/beat.go:802 Exiting: Failed to import dashboard: Failed to load directory C:\\DevOps…

---

## [Aggregatable fields change after renaming them ? Elasticsearch 6.7](https://discuss.elastic.co/t/aggregatable-fields-change-after-renaming-them-elasticsearch-6-7/178967)

<div class="topic-metadata">

**Author:** [@mohammedayub44](https://discuss.elastic.co/u/mohammedayub44)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 5:25pm UTC](https://discuss.elastic.co/t/aggregatable-fields-change-after-renaming-them-elasticsearch-6-7/178967 "2019-04-29T17:25:08Z")

</div>

Hi , I'm wondering why my elasticsearch mappings are changing automatically after I rename fields like "city", "state", "statefp" etc. Also, this is effecting which fields can be aggregatable on the Kibana side. Before…

---

## [Sorting an \`ip\_range\` field based on the first IP in the network address](https://discuss.elastic.co/t/sorting-an-ip-range-field-based-on-the-first-ip-in-the-network-address/178962)

<div class="topic-metadata">

**Author:** [@Simon\_Westlake](https://discuss.elastic.co/u/Simon_Westlake)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 4:28pm UTC](https://discuss.elastic.co/t/sorting-an-ip-range-field-based-on-the-first-ip-in-the-network-address/178962 "2019-04-29T16:28:05Z")

</div>

Is this possible to do using Painless? I've been trying to figure out a way and haven't succeeded yet. E.g. given 3 records where the ip\_range field is 192.168.100.0/24, 192.168.0.0/16, 192.168.98.0/23, I'd like to sort…

---

## [PKI authentication for "elastic" user](https://discuss.elastic.co/t/pki-authentication-for-elastic-user/178960)

<div class="topic-metadata">

**Author:** [@tiuser4567](https://discuss.elastic.co/u/tiuser4567)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 4:11pm UTC](https://discuss.elastic.co/t/pki-authentication-for-elastic-user/178960 "2019-04-29T16:11:02Z")

</div>

Hello, We are trying to authenticate using PKI with elastic with native realm as the authorization realm. xpack.security.authc: realms: native: type: native order: 0 pki: type: pki order: 1 authorization\_realms…

---

## [Rank feature query doesn't work if dot is in field value](https://discuss.elastic.co/t/rank-feature-query-doesnt-work-if-dot-is-in-field-value/178957)

<div class="topic-metadata">

**Author:** [@amyc](https://discuss.elastic.co/u/amyc)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 2:55pm UTC](https://discuss.elastic.co/t/rank-feature-query-doesnt-work-if-dot-is-in-field-value/178957 "2019-04-29T14:55:49Z")

</div>

Hi, I am upgrading to ES 7, and using the new field datatype "rank features" for one of my field. The field values can have dot in the string, e.g. "sports", "sports.football". I encountered a problem with rank feature…

---

## [Which java Class is good for developing client in spring boot to fetch data from Elastic Search](https://discuss.elastic.co/t/which-java-class-is-good-for-developing-client-in-spring-boot-to-fetch-data-from-elastic-search/178901)

<div class="topic-metadata">

**Author:** [@localhost](https://discuss.elastic.co/u/localhost)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 1:47pm UTC](https://discuss.elastic.co/t/which-java-class-is-good-for-developing-client-in-spring-boot-to-fetch-data-from-elastic-search/178901 "2019-04-29T13:47:02Z")

</div>

I have used elasticsearch library in node js and build a simple app which can fetch any key from elastic index . Example: API POST End Point: http://localhost:8000/serach/index\_name/doc\_type data: { "\_source": \["use…

---

## [Joins in Elastic Query](https://discuss.elastic.co/t/joins-in-elastic-query/178942)

<div class="topic-metadata">

**Author:** [@directproducteur](https://discuss.elastic.co/u/directproducteur)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 1:33pm UTC](https://discuss.elastic.co/t/joins-in-elastic-query/178942 "2019-04-29T13:33:17Z")

</div>

Requirement : Objective is to calculate the metrics which is equivalent to SQL Query below. SELECT COUNT(DISTINCT (required\_column\_name)) FROM table\_1 A INNER JOIN table\_1 B ON A.matching\_column\_name = B.matching\_column…

---

## [How to Find the size of nested field/ array?](https://discuss.elastic.co/t/how-to-find-the-size-of-nested-field-array/178734)

<div class="topic-metadata">

**Author:** [@rssapra7](https://discuss.elastic.co/u/rssapra7)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 12:48pm UTC](https://discuss.elastic.co/t/how-to-find-the-size-of-nested-field-array/178734 "2019-04-29T12:48:03Z")

</div>

Structure looks like this : { "heads": { "mappings": { "head": { "dynamic": "false", "properties": { "nestedField1": { "type": "nested", "properties": { "nestedField2": { "type": "nested", "properties": { "…

---

## [Elasticsearch Disk Space alerts](https://discuss.elastic.co/t/elasticsearch-disk-space-alerts/178878)

<div class="topic-metadata">

**Author:** [@BKG](https://discuss.elastic.co/u/BKG)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 12:35pm UTC](https://discuss.elastic.co/t/elasticsearch-disk-space-alerts/178878 "2019-04-29T12:35:09Z")

</div>

Hi, How can we get alerted if disk space drops below 10% on Elastic Cloud? We had a major outage due to low disk space on Friday when all indexes automatically got marked read-only.

---

## [Processors: How to add custom fields based on a set of field values?](https://discuss.elastic.co/t/processors-how-to-add-custom-fields-based-on-a-set-of-field-values/178851)

<div class="topic-metadata">

**Author:** [@thurse](https://discuss.elastic.co/u/thurse)\
**Replies:** 0\
**Last updated:** [April 29, 2019, 7:22am UTC](https://discuss.elastic.co/t/processors-how-to-add-custom-fields-based-on-a-set-of-field-values/178851 "2019-04-29T07:22:29Z")

</div>

Hi, I have a list of mime types associated wth custom "doctypes", i.e. (shortened): { "binary":\[ "application/octet-stream" \], "latex":\[ "application/x-bibtex-text-file", "application/x-latex…

---

## [NoSuchMethodError for client.updateByQuery(...)](https://discuss.elastic.co/t/nosuchmethoderror-for-client-updatebyquery/176647)

<div class="topic-metadata">

**Author:** [@BlueSpirit](https://discuss.elastic.co/u/BlueSpirit)\
**Replies:** 14\
**Last updated:** [April 29, 2019, 11:33am UTC](https://discuss.elastic.co/t/nosuchmethoderror-for-client-updatebyquery/176647 "2019-04-29T11:33:17Z")

</div>

Elasticsearch version (6.7.1): JVM version (1.8.0\_121): OS version (windows-7): Description of the problem including expected versus actual behavior: While issuing a request to update by query using RestHighLevelClie…

---

## [Inter-Node Response Times](https://discuss.elastic.co/t/inter-node-response-times/178669)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 5\
**Last updated:** [April 29, 2019, 11:29am UTC](https://discuss.elastic.co/t/inter-node-response-times/178669 "2019-04-29T11:29:53Z")

</div>

Hi, Is there a metric I can track which will tell me how long nodes are taking to respond to pings and cluster state updates? Regards, D

---

## [Elasticsearch 2.1.2 after update , unexpected result](https://discuss.elastic.co/t/elasticsearch-2-1-2-after-update-unexpected-result/178853)

<div class="topic-metadata">

**Author:** [@sshling](https://discuss.elastic.co/u/sshling)\
**Replies:** 4\
**Last updated:** [April 29, 2019, 11:07am UTC](https://discuss.elastic.co/t/elasticsearch-2-1-2-after-update-unexpected-result/178853 "2019-04-29T11:07:06Z")

</div>

GET cross\_dms\_receive\_send\_diff/cross\_dms\_receive\_send\_diff/\_search { "query": { "bool": { "must": \[ { "term": { "waybill\_code": "VD52794532626" } …

---

## [Reindex to version 6 and unknown error parsing response](https://discuss.elastic.co/t/reindex-to-version-6-and-unknown-error-parsing-response/178900)

<div class="topic-metadata">

**Author:** [@magorbe](https://discuss.elastic.co/u/magorbe)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 11:01am UTC](https://discuss.elastic.co/t/reindex-to-version-6-and-unknown-error-parsing-response/178900 "2019-04-29T11:01:13Z")

</div>

Hello. When i do reindex i have this error : {"error":{"root\_cause":\[{"type":"exception","reason":"Error parsing the response, remote is likely not an Elasticsearch instance"}\],"type":"exception","reason":"Error parsin…

---

## [Using Dynamic Templates](https://discuss.elastic.co/t/using-dynamic-templates/178887)

<div class="topic-metadata">

**Author:** [@PeterPain](https://discuss.elastic.co/u/PeterPain)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 10:41am UTC](https://discuss.elastic.co/t/using-dynamic-templates/178887 "2019-04-29T10:41:47Z")

</div>

Hey there, i am a beginner and want to use a dynamic template i wanted to test dynamic templates by using the example in the documentation. PUT my\_index { "mappings": { "dynamic\_templates": \[ { "longs\_as\_string…

---

## [Unable to add mongodb dashboard in kibana](https://discuss.elastic.co/t/unable-to-add-mongodb-dashboard-in-kibana/178842)

<div class="topic-metadata">

**Author:** [@Rajesh\_Sai](https://discuss.elastic.co/u/Rajesh_Sai)\
**Replies:** 3\
**Last updated:** [April 29, 2019, 9:58am UTC](https://discuss.elastic.co/t/unable-to-add-mongodb-dashboard-in-kibana/178842 "2019-04-29T09:58:14Z")

</div>

---

## [Issue with elasticsearch-rest-high-level-client in maven](https://discuss.elastic.co/t/issue-with-elasticsearch-rest-high-level-client-in-maven/178877)

<div class="topic-metadata">

**Author:** [@Martin.Sp](https://discuss.elastic.co/u/Martin.Sp)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 9:47am UTC](https://discuss.elastic.co/t/issue-with-elasticsearch-rest-high-level-client-in-maven/178877 "2019-04-29T09:47:27Z")

</div>

Hi guys, I have an issue with high level rest client. I'm using version 6.7.1 of the client, and every time I build my project I get version version 5.2.2 of org.elasticsearch:elasticsearch instead of 6.7.1. This issu…

---

## [Elasticsearch and other components failed](https://discuss.elastic.co/t/elasticsearch-and-other-components-failed/177703)

<div class="topic-metadata">

**Author:** [@samerlol](https://discuss.elastic.co/u/samerlol)\
**Replies:** 23\
**Last updated:** [April 29, 2019, 9:29am UTC](https://discuss.elastic.co/t/elasticsearch-and-other-components-failed/177703 "2019-04-29T09:29:39Z")

</div>

Hello elastic members, I am new to elastic and I got into problems, I Installed elasticsearch, logstash and kibana in a virtual machine and when it's run, it's run all services kibana elastic search etc... but when I …

---

## [ElasticSearch Java API search over given source](https://discuss.elastic.co/t/elasticsearch-java-api-search-over-given-source/178864)

<div class="topic-metadata">

**Author:** [@cskr](https://discuss.elastic.co/u/cskr)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 9:15am UTC](https://discuss.elastic.co/t/elasticsearch-java-api-search-over-given-source/178864 "2019-04-29T09:15:58Z")

</div>

Hello, extreme noob here. I am using Java API, and I have some objects with String fields that I want to scan for matches. How can I pull that of using elasticsearch ? I've read lots of tutorials but none of them shows …

---

## [Use alluxio as shared file system](https://discuss.elastic.co/t/use-alluxio-as-shared-file-system/178850)

<div class="topic-metadata">

**Author:** [@yiguolei](https://discuss.elastic.co/u/yiguolei)\
**Replies:** 5\
**Last updated:** [April 29, 2019, 9:12am UTC](https://discuss.elastic.co/t/use-alluxio-as-shared-file-system/178850 "2019-04-29T09:12:47Z")

</div>

Does elasticsearch will support alluxio as the underly shared filesystem. I think it has following advantages: It will reduce cpu usage since data will be send only to primary replica and build index and the replicas …

---

## [Is there any way to fire multiple query against a index in one request](https://discuss.elastic.co/t/is-there-any-way-to-fire-multiple-query-against-a-index-in-one-request/178859)

<div class="topic-metadata">

**Author:** [@BleedCode](https://discuss.elastic.co/u/BleedCode)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 8:30am UTC](https://discuss.elastic.co/t/is-there-any-way-to-fire-multiple-query-against-a-index-in-one-request/178859 "2019-04-29T08:30:39Z")

</div>

I am trying to figure out a way by using which i can run multiple query against a index and get a collected response from the request. I am using search builder in java to search using query string but i want to perform …

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

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