# Elasticsearch

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

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

**Page:** 1262

---

## [Hotel search with stay budget](https://discuss.elastic.co/t/hotel-search-with-stay-budget/186050)

<div class="topic-metadata">

**Author:** [@valod](https://discuss.elastic.co/u/valod)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 11:18am UTC](https://discuss.elastic.co/t/hotel-search-with-stay-budget/186050 "2019-06-17T11:18:33Z")

</div>

Hi! I have been trying to model an ES application to search for hotels. An hotel contains a name, descriptions in several languages, tags and GPS position, making it easy to search by description, filter by tags or geo…

---

## [How to apply relevance ranking to ES indices?](https://discuss.elastic.co/t/how-to-apply-relevance-ranking-to-es-indices/186038)

<div class="topic-metadata">

**Author:** [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Replies:** 8\
**Last updated:** [June 17, 2019, 11:09am UTC](https://discuss.elastic.co/t/how-to-apply-relevance-ranking-to-es-indices/186038 "2019-06-17T11:09:48Z")

</div>

Hello, Can anyone guide me use of relevance ranking in elasticsearch. Is there any relevance ranking modules available in ES? And how relevance ranking is used in ES? Thanks & Regards, Priyanka

---

## [Real time sync MongoDB with Elasticseach](https://discuss.elastic.co/t/real-time-sync-mongodb-with-elasticseach/186048)

<div class="topic-metadata">

**Author:** [@Marco\_Sousa](https://discuss.elastic.co/u/Marco_Sousa)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 11:03am UTC](https://discuss.elastic.co/t/real-time-sync-mongodb-with-elasticseach/186048 "2019-06-17T11:03:48Z")

</div>

Hello guys, Is there any plugin for Logstash to sync MongoDB data collections to Elasticseach in real time? Or is there any other way to sync data between Mongo and Elastic? Thanks, Marco Sousa

---

## [Mapping field values (multiple accounts (userIDs) issue)](https://discuss.elastic.co/t/mapping-field-values-multiple-accounts-userids-issue/186037)

<div class="topic-metadata">

**Author:** [@SejlaO](https://discuss.elastic.co/u/SejlaO)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 10:08am UTC](https://discuss.elastic.co/t/mapping-field-values-multiple-accounts-userids-issue/186037 "2019-06-17T10:08:30Z")

</div>

Hi All! We are currently importing matomo logs to Elastic Search and I have ran into an issue that I cannot seem to figure out how to solve. I am not sure how much you guys are familiar with Matomo (also known as Piwik…

---

## [Snapshots won't be restored](https://discuss.elastic.co/t/snapshots-wont-be-restored/185125)

<div class="topic-metadata">

**Author:** [@Imad\_Bouchakour](https://discuss.elastic.co/u/Imad_Bouchakour)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 9:41am UTC](https://discuss.elastic.co/t/snapshots-wont-be-restored/185125 "2019-06-17T09:41:23Z")

</div>

Hi, I'am trying to restore a snapshot from the elastic cloud interface but it doesn't work, and i'am getting that message index and alias names need to be unique, but the following duplicates were found \[.kibana (alias…

---

## [Forming Elasticsearch Cluster (v. 7.0.1)](https://discuss.elastic.co/t/forming-elasticsearch-cluster-v-7-0-1/186006)

<div class="topic-metadata">

**Author:** [@vasek](https://discuss.elastic.co/u/vasek)\
**Replies:** 7\
**Last updated:** [June 17, 2019, 9:34am UTC](https://discuss.elastic.co/t/forming-elasticsearch-cluster-v-7-0-1/186006 "2019-06-17T09:34:22Z")

</div>

Hi Elasticians, I am trying to form 1 cluster of 3 nodes. Could someone explain me why a cluster is not formed of this 3 nodes? PART 1: Intro I am working with ES 7.0.1 with 3 nodes. All nodes are master-eligible nod…

---

## [Docker Swarm and Elasticsearch](https://discuss.elastic.co/t/docker-swarm-and-elasticsearch/185774)

<div class="topic-metadata">

**Author:** [@zee.caniago](https://discuss.elastic.co/u/zee.caniago)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 9:18am UTC](https://discuss.elastic.co/t/docker-swarm-and-elasticsearch/185774 "2019-06-17T09:18:28Z")

</div>

Hi, Is there an example I can follow to setup Elasticsearch running on Docker Swarm? I am able to run Elasticsearch with Docker-Compose (single node). However, I am having a hard time to make Elasticsearch working on Do…

---

## [Query on multiple index using NEST](https://discuss.elastic.co/t/query-on-multiple-index-using-nest/185200)

<div class="topic-metadata">

**Author:** [@Chandru](https://discuss.elastic.co/u/Chandru)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 9:01am UTC](https://discuss.elastic.co/t/query-on-multiple-index-using-nest/185200 "2019-06-17T09:01:29Z")

</div>

Hi All , i'm new to elasticsearch ,and trying to implement "Free Text search" and the challenge to fetch records from two index , but there is no straightforward way to do this and i got the below link and i followed th…

---

## [Restrict CPU usage in Elastic search as a service in Windows](https://discuss.elastic.co/t/restrict-cpu-usage-in-elastic-search-as-a-service-in-windows/184554)

<div class="topic-metadata">

**Author:** [@SudevPK](https://discuss.elastic.co/u/SudevPK)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 8:44am UTC](https://discuss.elastic.co/t/restrict-cpu-usage-in-elastic-search-as-a-service-in-windows/184554 "2019-06-17T08:44:57Z")

</div>

Hi everyone, I have installed elastic search 7.0.1 as a windows service.Is there is any way to give restriction to CPU usage when elastic search running ? I need to set a limit to elastic search CPU usage.Any suggest…

---

## [Best practice for an "IP Check"](https://discuss.elastic.co/t/best-practice-for-an-ip-check/186000)

<div class="topic-metadata">

**Author:** [@MarcusCaepio](https://discuss.elastic.co/u/MarcusCaepio)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 8:05am UTC](https://discuss.elastic.co/t/best-practice-for-an-ip-check/186000 "2019-06-17T08:05:39Z")

</div>

Dear all, I am trying to realise a scenario and want to ask you, how this would be made best. The scenario looks like this: We are logging our firewalls via logstash / grok patterns and store the logs in elastic. On th…

---

## [All Elasticsearch Indices in red(25%) & yellow(75%)](https://discuss.elastic.co/t/all-elasticsearch-indices-in-red-25-yellow-75/185790)

<div class="topic-metadata">

**Author:** [@ManimaranS](https://discuss.elastic.co/u/ManimaranS)\
**Replies:** 7\
**Last updated:** [June 17, 2019, 8:08am UTC](https://discuss.elastic.co/t/all-elasticsearch-indices-in-red-25-yellow-75/185790 "2019-06-17T08:08:38Z")

</div>

Hi I'm using 6.6.2 version with 3 nodes, having 1 as master. The uploading indices are becoming red, whereas the existing ones are in Yellow(75%) and red(25%). Can i have some help to resolve this. Let me know if you ne…

---

## [CircuitBreakingException: \[parent\] Data too large](https://discuss.elastic.co/t/circuitbreakingexception-parent-data-too-large/186003)

<div class="topic-metadata">

**Author:** [@elk11](https://discuss.elastic.co/u/elk11)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 6:48am UTC](https://discuss.elastic.co/t/circuitbreakingexception-parent-data-too-large/186003 "2019-06-17T06:48:52Z")

</div>

Hi, I query elasticsearch data for displaying results on a website (after processing that data). but after migrating elasticsearch from 5.x to 7.0, when a query for a month's data i get: Error when trying to execute se…

---

## [Elasticsearch name of log file](https://discuss.elastic.co/t/elasticsearch-name-of-log-file/184876)

<div class="topic-metadata">

**Author:** [@vasek](https://discuss.elastic.co/u/vasek)\
**Replies:** 2\
**Last updated:** [June 17, 2019, 6:56am UTC](https://discuss.elastic.co/t/elasticsearch-name-of-log-file/184876 "2019-06-17T06:56:23Z")

</div>

Hi Elasticians, is it possible to force name of log file of elasticsearch instance in elasticsearch.yml file? In elasticsearch.yml I have: cluster.name: name-of-cluster path.logs: /var/log/elasticsearch Resulted name…

---

## [X-Pack Watcher Email Action Formatting Question](https://discuss.elastic.co/t/x-pack-watcher-email-action-formatting-question/185988)

<div class="topic-metadata">

**Author:** [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 3:55am UTC](https://discuss.elastic.co/t/x-pack-watcher-email-action-formatting-question/185988 "2019-06-17T03:55:26Z")

</div>

Hi all, I have the below watcher set up to email me when a specific condition it met. It emails the results related to what was found in the body of an email. The problem I have is it sends it as a raw JSON file in the…

---

## [Create index with JSON XContentBuilder get a error](https://discuss.elastic.co/t/create-index-with-json-xcontentbuilder-get-a-error/185945)

<div class="topic-metadata">

**Author:** [@hubo3085632](https://discuss.elastic.co/u/hubo3085632)\
**Replies:** 2\
**Last updated:** [June 17, 2019, 2:43am UTC](https://discuss.elastic.co/t/create-index-with-json-xcontentbuilder-get-a-error/185945 "2019-06-17T02:43:07Z")

</div>

Hi all , i met a weird issue , when i use JSON type XContentBuilder to create index's mapping ,it always return "Failed to close the XContentBuilder Caused by: java.io.IOException: Unclosed object or array found at org.…

---

## [Can we filter document in nested object with user.metadata jobs?](https://discuss.elastic.co/t/can-we-filter-document-in-nested-object-with-user-metadata-jobs/185876)

<div class="topic-metadata">

**Author:** [@jonathan\_Dee](https://discuss.elastic.co/u/jonathan_Dee)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 1:03am UTC](https://discuss.elastic.co/t/can-we-filter-document-in-nested-object-with-user-metadata-jobs/185876 "2019-06-17T01:03:23Z")

</div>

Hello, I'm new on Elastic solutions and i'm actually testing x-pack. I am searching to filter what can see users in an Elasticsearch index, futhermore I want to filter some document into a nested object. I will explai…

---

## [Elasticsearch not working after enabling X-Pack](https://discuss.elastic.co/t/elasticsearch-not-working-after-enabling-x-pack/185564)

<div class="topic-metadata">

**Author:** [@Dhrumil](https://discuss.elastic.co/u/Dhrumil)\
**Replies:** 4\
**Last updated:** [June 17, 2019, 12:59am UTC](https://discuss.elastic.co/t/elasticsearch-not-working-after-enabling-x-pack/185564 "2019-06-17T00:59:10Z")

</div>

Hello, I have installed elasticsearch version 6.8.0 in my production and have created a cluster with 3 master nodes and 20 data nodes. I have installed x-pack in all of the nodes and was trying to authenticate the clust…

---

## [Cluster runs out of memory and service stops during re-index](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711)

<div class="topic-metadata">

**Author:** [@jessgreen](https://discuss.elastic.co/u/jessgreen)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 12:34am UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-re-index/185711 "2019-06-17T00:34:50Z")

</div>

I use elasticsearch as our document content engine with HPE Content Manager. When I reindex my dataset the elasticservice stops due to bulkloader transactions timing out with the service. The memory reaches its threshhol…

---

## [Composite Filter and or Quarry?](https://discuss.elastic.co/t/composite-filter-and-or-quarry/185956)

<div class="topic-metadata">

**Author:** [@iukea](https://discuss.elastic.co/u/iukea)\
**Replies:** 2\
**Last updated:** [June 16, 2019, 6:06pm UTC](https://discuss.elastic.co/t/composite-filter-and-or-quarry/185956 "2019-06-16T18:06:58Z")

</div>

Hello is there a way to filter out results in a composite search? is there a way to set up a filter and or could I use a quarry? if so how would that look in the DSL search language?

---

## [Elastic search advanced query for showing price changes on time series indexes](https://discuss.elastic.co/t/elastic-search-advanced-query-for-showing-price-changes-on-time-series-indexes/185921)

<div class="topic-metadata">

**Author:** [@chandan\_mishra1](https://discuss.elastic.co/u/chandan_mishra1)\
**Replies:** 1\
**Last updated:** [June 16, 2019, 4:03pm UTC](https://discuss.elastic.co/t/elastic-search-advanced-query-for-showing-price-changes-on-time-series-indexes/185921 "2019-06-16T16:03:23Z")

</div>

I have separated my time-series data into day wise indexes. Let's say I have 2 days indexes. index1 data-timeseries-14-04-2019 : example data: {{"\_id": 1, "product\_name": "mobile1", "product\_id": "12145", "cr…

---

## [Documentation for scroll API is a bit confusing!](https://discuss.elastic.co/t/documentation-for-scroll-api-is-a-bit-confusing/185954)

<div class="topic-metadata">

**Author:** [@abcarroll](https://discuss.elastic.co/u/abcarroll)\
**Replies:** 1\
**Last updated:** [June 16, 2019, 3:40pm UTC](https://discuss.elastic.co/t/documentation-for-scroll-api-is-a-bit-confusing/185954 "2019-06-16T15:40:32Z")

</div>

I asked this in the (freenode) IRC channel, and if I happen to get an answer there in the mean-time, I will follow up. However, it's a quite specific question so I figured I'd "double-post" here. In the scroll documen…

---

## [Slow indexes search](https://discuss.elastic.co/t/slow-indexes-search/185930)

<div class="topic-metadata">

**Author:** [@Necus](https://discuss.elastic.co/u/Necus)\
**Replies:** 27\
**Last updated:** [June 16, 2019, 2:29pm UTC](https://discuss.elastic.co/t/slow-indexes-search/185930 "2019-06-16T14:29:29Z")

</div>

Hi, Each day elasticsearch creates index from two different devices. From the first device I get results really, really slow and even sometimes I got timeout error, from the second one it's still slow but I do not recei…

---

## [Fields not being mapped, Json decode error on event](https://discuss.elastic.co/t/fields-not-being-mapped-json-decode-error-on-event/185899)

<div class="topic-metadata">

**Author:** [@dataGuy](https://discuss.elastic.co/u/dataGuy)\
**Replies:** 0\
**Last updated:** [June 14, 2019, 6:22pm UTC](https://discuss.elastic.co/t/fields-not-being-mapped-json-decode-error-on-event/185899 "2019-06-14T18:22:36Z")

</div>

In v.7.0.1 Filebeat and Elasticsearch with v.3.0.2 Wireshark I am having the problem that my fields are not mapping and I get json decode errors. Tshark run command: .\\tshark -i Ethernet0 -T ek \> c:\\packetLogs\\packetLo…

---

## [How to access filename from index created by fscrawler](https://discuss.elastic.co/t/how-to-access-filename-from-index-created-by-fscrawler/183493)

<div class="topic-metadata">

**Author:** [@Denn](https://discuss.elastic.co/u/Denn)\
**Replies:** 1\
**Last updated:** [June 16, 2019, 4:52am UTC](https://discuss.elastic.co/t/how-to-access-filename-from-index-created-by-fscrawler/183493 "2019-06-16T04:52:01Z")

</div>

How can I access filename using elasticsearch from a code like this? { "\_index" : "fscrawler-rest-tests\_doc", "\_type" : "\_doc", "\_id" : "dd18bf3a8ea2a3e53e2661c7fb53534", "\_version" : 1, "found" : true, "\_source" …

---

## [Mapping file and the disk space](https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041)

<div class="topic-metadata">

**Author:** [@ivar](https://discuss.elastic.co/u/ivar)\
**Replies:** 2\
**Last updated:** [June 16, 2019, 2:39am UTC](https://discuss.elastic.co/t/mapping-file-and-the-disk-space/185041 "2019-06-16T02:39:52Z")

</div>

I have an index which has around 10 fields that are marked as "type": "text", "fields": { "keyword": { "type": "keyword", "ignore\_above": 256 } } now I created another index with same mappings except that I mark…

---

## [Azure AD SAML auth - 403 - Forbidden](https://discuss.elastic.co/t/azure-ad-saml-auth-403-forbidden/185900)

<div class="topic-metadata">

**Author:** [@OJA](https://discuss.elastic.co/u/OJA)\
**Replies:** 1\
**Last updated:** [June 15, 2019, 9:22pm UTC](https://discuss.elastic.co/t/azure-ad-saml-auth-403-forbidden/185900 "2019-06-15T21:22:55Z")

</div>

Hi, (oh wow, sorry, I obviously don't understand how to use the \</\> tag..) Spent a few hours configuring and reading the documentation, and I'm getting very close to completing the setup (I feel). But I need some help …

---

## [How can I use an array of phrases to be searched in an index](https://discuss.elastic.co/t/how-can-i-use-an-array-of-phrases-to-be-searched-in-an-index/185934)

<div class="topic-metadata">

**Author:** [@aiswarya](https://discuss.elastic.co/u/aiswarya)\
**Replies:** 5\
**Last updated:** [June 15, 2019, 5:32pm UTC](https://discuss.elastic.co/t/how-can-i-use-an-array-of-phrases-to-be-searched-in-an-index/185934 "2019-06-15T17:32:15Z")

</div>

Im having an array of phrases ,and I need these to be searched inside an index which I made with crawled data..is there any way to do this Thanks in advance

---

## [Shards refuse to relocate to different nodes using cluster.routing.allocation.exclude](https://discuss.elastic.co/t/shards-refuse-to-relocate-to-different-nodes-using-cluster-routing-allocation-exclude/185950)

<div class="topic-metadata">

**Author:** [@johndaniels](https://discuss.elastic.co/u/johndaniels)\
**Replies:** 2\
**Last updated:** [June 15, 2019, 5:29pm UTC](https://discuss.elastic.co/t/shards-refuse-to-relocate-to-different-nodes-using-cluster-routing-allocation-exclude/185950 "2019-06-15T17:29:00Z")

</div>

Hi, I'm trying to remove a server from our ElasticSearch cluster, and in order to do so, I would like to disable allocation from that server/node, and once all the shards have been moved, to shut the server down. I dis…

---

## [Overlap Forecast with results](https://discuss.elastic.co/t/overlap-forecast-with-results/185941)

<div class="topic-metadata">

**Author:** [@Bharath\_Kumar\_R](https://discuss.elastic.co/u/Bharath_Kumar_R)\
**Replies:** 1\
**Last updated:** [June 15, 2019, 4:45pm UTC](https://discuss.elastic.co/t/overlap-forecast-with-results/185941 "2019-06-15T16:45:12Z")

</div>

I ran a forecast for 2d yesterday on my ML job. Is there any way to rerun the job with current data and overlap the current results with the forecast results so that I can get to know the forecast accuracy

---

## [Need help on ES (seller+product)](https://discuss.elastic.co/t/need-help-on-es-seller-product/185923)

<div class="topic-metadata">

**Author:** [@Babu\_Babu](https://discuss.elastic.co/u/Babu_Babu)\
**Replies:** 1\
**Last updated:** [June 15, 2019, 9:32am UTC](https://discuss.elastic.co/t/need-help-on-es-seller-product/185923 "2019-06-15T09:32:38Z")

</div>

Hi, I am new to elastic search, I need some immediate help on my project data model. I need to display the following list on front end. SellerName ProductCount reviewdCount Seller1 2500 products 10…

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

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