# Elasticsearch

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

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

**Page:** 1310

---

## [How to compare hostname field in two index and create a new fild with boolean value](https://discuss.elastic.co/t/how-to-compare-hostname-field-in-two-index-and-create-a-new-fild-with-boolean-value/179893)

<div class="topic-metadata">

**Author:** [@Anand4](https://discuss.elastic.co/u/Anand4)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 7:25am UTC](https://discuss.elastic.co/t/how-to-compare-hostname-field-in-two-index-and-create-a-new-fild-with-boolean-value/179893 "2019-05-07T07:25:18Z")

</div>

Guys, New to ES, i need to compare hostname field in two index and output the result to index3 whether it is available in index2 and index2 with the hostname field. pls guide me how to achieve it. Requirement to compar…

---

## [How to write match query on array data type object](https://discuss.elastic.co/t/how-to-write-match-query-on-array-data-type-object/179354)

<div class="topic-metadata">

**Author:** [@vinayak](https://discuss.elastic.co/u/vinayak)\
**Replies:** 6\
**Last updated:** [May 7, 2019, 6:59am UTC](https://discuss.elastic.co/t/how-to-write-match-query-on-array-data-type-object/179354 "2019-05-07T06:59:15Z")

</div>

i have created a index and indexed data in array data type.Index and data details are as follows: { "took" : 1, "timed\_out" : false, "\_shards" : { "total" : 5, "succe…

---

## [Show my Elasticsearch real time Data using library chart.js](https://discuss.elastic.co/t/show-my-elasticsearch-real-time-data-using-library-chart-js/179899)

<div class="topic-metadata">

**Author:** [@Damak\_Mahdi](https://discuss.elastic.co/u/Damak_Mahdi)\
**Replies:** 0\
**Last updated:** [May 7, 2019, 6:49am UTC](https://discuss.elastic.co/t/show-my-elasticsearch-real-time-data-using-library-chart-js/179899 "2019-05-07T06:49:46Z")

</div>

Hello guys, I am new here and this is my first topic. I am seeking for a little help here, i have some MQTT data coming from a raspberry which is measuring power. I managed to stock some data in an Es Index and now, i …

---

## [Elastic cloud Kibana rollup is not working](https://discuss.elastic.co/t/elastic-cloud-kibana-rollup-is-not-working/178220)

<div class="topic-metadata">

**Author:** [@Robin\_Guo](https://discuss.elastic.co/u/Robin_Guo)\
**Replies:** 6\
**Last updated:** [May 7, 2019, 6:48am UTC](https://discuss.elastic.co/t/elastic-cloud-kibana-rollup-is-not-working/178220 "2019-05-07T06:48:24Z")

</div>

Dear Elastic Team Members, Recently we've been testing Elastic Cloud Kibana features with the trail, Today we have encountered an issue that rollup is not working. As we have an active index called metricbeat is being …

---

## [Package service with elasticsearch client](https://discuss.elastic.co/t/package-service-with-elasticsearch-client/179874)

<div class="topic-metadata">

**Author:** [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Replies:** 11\
**Last updated:** [May 7, 2019, 6:15am UTC](https://discuss.elastic.co/t/package-service-with-elasticsearch-client/179874 "2019-05-07T06:15:00Z")

</div>

I want to use elasticsearch client,is there a recommend elasticsearch packaged service?

---

## [Why is no warmup defined in event-data-track challenge elasticlogs-querying](https://discuss.elastic.co/t/why-is-no-warmup-defined-in-event-data-track-challenge-elasticlogs-querying/177015)

<div class="topic-metadata">

**Author:** [@asp](https://discuss.elastic.co/u/asp)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 5:53am UTC](https://discuss.elastic.co/t/why-is-no-warmup-defined-in-event-data-track-challenge-elasticlogs-querying/177015 "2019-05-07T05:53:50Z")

</div>

Hi @Christian\_Dahlqvist / @danielmitterdorfer, I made quite some tests with the event-data-track. My testrun was like the following: restart elasticsearch import 250 mio events via challenge elasticlogs-1bn-load do…

---

## [Searckick + Elastick Search Failed to connect to localhost:9200](https://discuss.elastic.co/t/searckick-elastick-search-failed-to-connect-to-localhost-9200/179887)

<div class="topic-metadata">

**Author:** [@fmoudoute](https://discuss.elastic.co/u/fmoudoute)\
**Replies:** 0\
**Last updated:** [May 7, 2019, 5:30am UTC](https://discuss.elastic.co/t/searckick-elastick-search-failed-to-connect-to-localhost-9200/179887 "2019-05-07T05:30:40Z")

</div>

My application was working fine until a few minutes ago, I get the following error: Faraday::ConnectionFailed in Devise::SessionsController#create Failed to open TCP connection to localhost:9200 (Connection refused - co…

---

## [Update a field value using a script processor](https://discuss.elastic.co/t/update-a-field-value-using-a-script-processor/179766)

<div class="topic-metadata">

**Author:** [@sreed](https://discuss.elastic.co/u/sreed)\
**Replies:** 2\
**Last updated:** [May 7, 2019, 4:25am UTC](https://discuss.elastic.co/t/update-a-field-value-using-a-script-processor/179766 "2019-05-07T04:25:39Z")

</div>

My use-case: Before the document is indexed, I would like to update one of the fields using a script processor (defined in a pipeline). When I try to create a index using the pipeline with the script processor a null-poi…

---

## [Scroll api and some parsing issues. (Python)](https://discuss.elastic.co/t/scroll-api-and-some-parsing-issues-python/179864)

<div class="topic-metadata">

**Author:** [@iukea](https://discuss.elastic.co/u/iukea)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 3:51am UTC](https://discuss.elastic.co/t/scroll-api-and-some-parsing-issues-python/179864 "2019-05-07T03:51:59Z")

</div>

Hello, I am trying to print out all the values listed of max\_score and mobile: home From this JSON that came from elasticSearches scroll api. \`\`\` { "took": 3, "timed\_out": false, "\_shards": { "t…

---

## [Watcher Logging Action](https://discuss.elastic.co/t/watcher-logging-action/179712)

<div class="topic-metadata">

**Author:** [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Replies:** 2\
**Last updated:** [May 7, 2019, 2:25am UTC](https://discuss.elastic.co/t/watcher-logging-action/179712 "2019-05-07T02:25:15Z")

</div>

The logging action category's default is xpack.watcher.actions.logging, I want record to a single file.What category should I set?

---

## [Using the ElasticSeach API json error](https://discuss.elastic.co/t/using-the-elasticseach-api-json-error/178808)

<div class="topic-metadata">

**Author:** [@iukea](https://discuss.elastic.co/u/iukea)\
**Replies:** 9\
**Last updated:** [May 7, 2019, 1:53am UTC](https://discuss.elastic.co/t/using-the-elasticseach-api-json-error/178808 "2019-05-07T01:53:43Z")

</div>

Hello, I am trying to use the elastic Search API to just get a quick JSON object out of ElasticSearch. using the VScode extension listed below https://marketplace.visualstudio.com/items?itemName=ria.elastic using quer…

---

## [Is it possible to make a ingest-plugin which processor is able to make an HTTP request](https://discuss.elastic.co/t/is-it-possible-to-make-a-ingest-plugin-which-processor-is-able-to-make-an-http-request/178311)

<div class="topic-metadata">

**Author:** [@Borwick\_5576](https://discuss.elastic.co/u/Borwick_5576)\
**Replies:** 7\
**Last updated:** [May 6, 2019, 10:25pm UTC](https://discuss.elastic.co/t/is-it-possible-to-make-a-ingest-plugin-which-processor-is-able-to-make-an-http-request/178311 "2019-05-06T22:25:39Z")

</div>

The goal here is being able to send the data of documents to a service my companie has and then index the response as an anotation. Im having trouble opening a connection from the processor.

---

## [Duplicates and missing documents during bulk retrieval](https://discuss.elastic.co/t/duplicates-and-missing-documents-during-bulk-retrieval/179849)

<div class="topic-metadata">

**Author:** [@ashsskum](https://discuss.elastic.co/u/ashsskum)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 9:57pm UTC](https://discuss.elastic.co/t/duplicates-and-missing-documents-during-bulk-retrieval/179849 "2019-05-06T21:57:38Z")

</div>

When we identify events corresponding to a particular device, we get all the events associated with it, using Spark elasticsearch sql However, when we try to retrieve the complete index data (there will be on index crea…

---

## [Elasticsearch force merge](https://discuss.elastic.co/t/elasticsearch-force-merge/179847)

<div class="topic-metadata">

**Author:** [@bbking](https://discuss.elastic.co/u/bbking)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 9:46pm UTC](https://discuss.elastic.co/t/elasticsearch-force-merge/179847 "2019-05-06T21:46:58Z")

</div>

Hi everyone! I have some questions about segments merge in elasticsearch. Currently, the index I'm trying to merge is a single node index and is about 5GB. But it has 24 segments and some of those segments only contain …

---

## [Limit results based on percentage of sum aggregation](https://discuss.elastic.co/t/limit-results-based-on-percentage-of-sum-aggregation/179844)

<div class="topic-metadata">

**Author:** [@pmarques](https://discuss.elastic.co/u/pmarques)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 9:22pm UTC](https://discuss.elastic.co/t/limit-results-based-on-percentage-of-sum-aggregation/179844 "2019-05-06T21:22:31Z")

</div>

Hello All, My goal is to limit the results based on a percentage of a sum aggregation. I will try to clarify it with an example. { "name": "A", "value": 10 } { "name": "B", "value": 20 } { "name": "B", "value": 35 } …

---

## [Index monitoring document error](https://discuss.elastic.co/t/index-monitoring-document-error/179826)

<div class="topic-metadata">

**Author:** [@Farhan\_Umer](https://discuss.elastic.co/u/Farhan_Umer)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 5:59pm UTC](https://discuss.elastic.co/t/index-monitoring-document-error/179826 "2019-05-06T17:59:17Z")

</div>

I am getting this error: \[2019-05-06T13:28:32,108\]\[WARN \]\[o.e.x.m.e.l.LocalExporter\] \[qxAwDyn\] unexpected error while indexing monitoring document org.elasticsearch.xpack.monitoring.exporter.ExportException: Unavailabl…

---

## [Performance impact for searching high frequency word](https://discuss.elastic.co/t/performance-impact-for-searching-high-frequency-word/179240)

<div class="topic-metadata">

**Author:** [@Devon\_Yoo](https://discuss.elastic.co/u/Devon_Yoo)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 5:46pm UTC](https://discuss.elastic.co/t/performance-impact-for-searching-high-frequency-word/179240 "2019-05-06T17:46:15Z")

</div>

Hi, I have a question which is fundamental regarding the basics of ES. I could find lots of how to use it and what the queries look like but I can hardly find a document about the backend structures. Let's say I indexed…

---

## [Header value/HTMLRequest blocked by CORS policy (CORs in Elasticsearch)](https://discuss.elastic.co/t/header-value-htmlrequest-blocked-by-cors-policy-cors-in-elasticsearch/179827)

<div class="topic-metadata">

**Author:** [@Kehinde\_Owens](https://discuss.elastic.co/u/Kehinde_Owens)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 5:44pm UTC](https://discuss.elastic.co/t/header-value-htmlrequest-blocked-by-cors-policy-cors-in-elasticsearch/179827 "2019-05-06T17:44:44Z")

</div>

Morning, Currently I am facing an issue with CORs not allowing an XMLHTTPRequest from my localhost (when using a header) to my Public Internet URL for Kibana. The error message when making a call to my public URL using …

---

## [Setting index.mapper.dynamic was removed after version 6.0.0](https://discuss.elastic.co/t/setting-index-mapper-dynamic-was-removed-after-version-6-0-0/179776)

<div class="topic-metadata">

**Author:** [@sascha\_a](https://discuss.elastic.co/u/sascha_a)\
**Replies:** 3\
**Last updated:** [May 6, 2019, 5:36pm UTC](https://discuss.elastic.co/t/setting-index-mapper-dynamic-was-removed-after-version-6-0-0/179776 "2019-05-06T17:36:56Z")

</div>

Hello, we have trouble after elasticsearch 7.0.1 upgrade (from 6.7). The cluster itself exists since version 5.4 or even earlier always rolling upgrading. It always complains about: "Setting index.mapper.dynamic was …

---

## [Missing aggregation with value](https://discuss.elastic.co/t/missing-aggregation-with-value/179372)

<div class="topic-metadata">

**Author:** [@tharindudg](https://discuss.elastic.co/u/tharindudg)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 5:35pm UTC](https://discuss.elastic.co/t/missing-aggregation-with-value/179372 "2019-05-06T17:35:28Z")

</div>

Below is the structure of a document that I've indexed into elasticsearch 6.7 { "instance": { "id": 1, ... "relatedInstances": \[ { "id": 101, ... "instFields": \[ { "sourceFieldId": 202,…

---

## [Performance for Filter Context containing Query Context](https://discuss.elastic.co/t/performance-for-filter-context-containing-query-context/179225)

<div class="topic-metadata">

**Author:** [@Sam\_Sudekum](https://discuss.elastic.co/u/Sam_Sudekum)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 4:54pm UTC](https://discuss.elastic.co/t/performance-for-filter-context-containing-query-context/179225 "2019-05-06T16:54:55Z")

</div>

https://www.elastic.co/guide/en/elasticsearch/reference/2.4/query-filter-context.html I'm currently running ES 2.4 working on moving to 5.6. One paradigm shift that needs to happen is the use of bool.query/bool.filter. …

---

## [How do I first do a timerange filter on date field then extract distinct elements of another field?](https://discuss.elastic.co/t/how-do-i-first-do-a-timerange-filter-on-date-field-then-extract-distinct-elements-of-another-field/179531)

<div class="topic-metadata">

**Author:** [@siddharthiyer](https://discuss.elastic.co/u/siddharthiyer)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 4:49pm UTC](https://discuss.elastic.co/t/how-do-i-first-do-a-timerange-filter-on-date-field-then-extract-distinct-elements-of-another-field/179531 "2019-05-06T16:49:20Z")

</div>

I have a field cid that I need to get the distinct elements of. But I need the distinct elements based on when they were added to the database. I want to first do a timestamp range filter, then get the term aggregation o…

---

## [Question about backward matching query](https://discuss.elastic.co/t/question-about-backward-matching-query/179576)

<div class="topic-metadata">

**Author:** [@Devon\_Yoo](https://discuss.elastic.co/u/Devon_Yoo)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 4:38pm UTC](https://discuss.elastic.co/t/question-about-backward-matching-query/179576 "2019-05-06T16:38:58Z")

</div>

Hi, Indexed data in ES id(text) | words(keyword) A | "1 2 3 4 100 101 102 103 104 105" B | "1 2 3 100 101 102 103 104 105" C | "1 2 100" Search query "bool": { "should": \[ { "term": {"words":"1"}}, { "ter…

---

## [How to merge two nested fields](https://discuss.elastic.co/t/how-to-merge-two-nested-fields/179802)

<div class="topic-metadata">

**Author:** [@sesha](https://discuss.elastic.co/u/sesha)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 3:39pm UTC](https://discuss.elastic.co/t/how-to-merge-two-nested-fields/179802 "2019-05-06T15:39:14Z")

</div>

I have sample data like below. oldProduct and newProduct which consist of multiple colors, need to get the number of occurrences of each color from both nested fields (oldProduct, newProduct) { "oldProduct":\[ …

---

## [Changing mount point](https://discuss.elastic.co/t/changing-mount-point/179790)

<div class="topic-metadata">

**Author:** [@Maddy\_M](https://discuss.elastic.co/u/Maddy_M)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 3:30pm UTC](https://discuss.elastic.co/t/changing-mount-point/179790 "2019-05-06T15:30:50Z")

</div>

We would like to change the mount point from one partition to another partition. Could you please suggest good solution to migrate data from one mount point to another mount point within same server? We have to delete c…

---

## [Elasticsearch on Raspberry Pi 3+](https://discuss.elastic.co/t/elasticsearch-on-raspberry-pi-3/179764)

<div class="topic-metadata">

**Author:** [@vatolin](https://discuss.elastic.co/u/vatolin)\
**Replies:** 3\
**Last updated:** [May 6, 2019, 3:13pm UTC](https://discuss.elastic.co/t/elasticsearch-on-raspberry-pi-3/179764 "2019-05-06T15:13:11Z")

</div>

Hello. I am an absolute beginner. I've purchased a Raspberry Pi 3+ and set up my own NextCloud. That works. Now, I want to enable a full text search in my Nextcloud. Therefore, I want to install Elasticsearch on my Ras…

---

## [Issue with Elasticsearch service on FreeBSD](https://discuss.elastic.co/t/issue-with-elasticsearch-service-on-freebsd/179794)

<div class="topic-metadata">

**Author:** [@Andromedae93](https://discuss.elastic.co/u/Andromedae93)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 3:12pm UTC](https://discuss.elastic.co/t/issue-with-elasticsearch-service-on-freebsd/179794 "2019-05-06T15:12:36Z")

</div>

Hello everybody, I'm coming here in order to post my question which could help users. I installed elasticsearch thanks to pkg, but I have issues when I try to launch daemon commands on FreeBSD. This is my environment: …

---

## [Tips for combining nested with unnested behaviour](https://discuss.elastic.co/t/tips-for-combining-nested-with-unnested-behaviour/179792)

<div class="topic-metadata">

**Author:** [@cherry-wave](https://discuss.elastic.co/u/cherry-wave)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 3:02pm UTC](https://discuss.elastic.co/t/tips-for-combining-nested-with-unnested-behaviour/179792 "2019-05-06T15:02:28Z")

</div>

I think I have a very specific problem here and I was just looking for some data constellations/queries to might help =) Btw. still using ES 5.6.4 here =/ I decided to use nested document because we have multiple variat…

---

## [Field expansion matches too many fields, limit: 1024, got: 1369 with filebeat-6.6.0 indexes](https://discuss.elastic.co/t/field-expansion-matches-too-many-fields-limit-1024-got-1369-with-filebeat-6-6-0-indexes/178720)

<div class="topic-metadata">

**Author:** [@opoplawski](https://discuss.elastic.co/u/opoplawski)\
**Replies:** 2\
**Last updated:** [May 6, 2019, 2:40pm UTC](https://discuss.elastic.co/t/field-expansion-matches-too-many-fields-limit-1024-got-1369-with-filebeat-6-6-0-indexes/178720 "2019-05-06T14:40:02Z")

</div>

We're running elasticsearch 7.0 but are still importing data from some filebeat-6.6.0 systems though logstash. Running queries in kibana we see shard failures and elastic reports: Caused by: java.lang.IllegalArgumentEx…

---

## [Machine learning 6.7 - elastic cloud - out of memory](https://discuss.elastic.co/t/machine-learning-6-7-elastic-cloud-out-of-memory/179668)

<div class="topic-metadata">

**Author:** [@ustrauss](https://discuss.elastic.co/u/ustrauss)\
**Replies:** 1\
**Last updated:** [May 6, 2019, 2:32pm UTC](https://discuss.elastic.co/t/machine-learning-6-7-elastic-cloud-out-of-memory/179668 "2019-05-06T14:32:53Z")

</div>

Hi, We are running ML on elastic cloud 6.7. We're trying to run a few ml jobs but we're getting an out of memory error when submitting them via the API. In the current configuration that fails, we set a history of 1 mo…

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

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