# Elasticsearch

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

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

**Page:** 1929

---

## [Best way to search for number ranges in text](https://discuss.elastic.co/t/best-way-to-search-for-number-ranges-in-text/103010)

<div class="topic-metadata">

**Author:** [@carasel](https://discuss.elastic.co/u/carasel)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 1:15pm UTC](https://discuss.elastic.co/t/best-way-to-search-for-number-ranges-in-text/103010 "2017-10-06T13:15:03Z")

</div>

I have a field which contains a text description of a special offer, e.g. "get 10% off when you spend over $50 on this product!" I want to be able to search for documents where this field contains a number range "% off"…

---

## [Error: You must build the project with Gradle or download a pre-built package](https://discuss.elastic.co/t/error-you-must-build-the-project-with-gradle-or-download-a-pre-built-package/102820)

<div class="topic-metadata">

**Author:** [@m.francia](https://discuss.elastic.co/u/m.francia)\
**Replies:** 8\
**Last updated:** [October 6, 2017, 1:08pm UTC](https://discuss.elastic.co/t/error-you-must-build-the-project-with-gradle-or-download-a-pre-built-package/102820 "2017-10-06T13:08:06Z")

</div>

Hi! I have installed ES in a Debian 8 using dpkg -i and after install when I try to run ES appears this message. elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; dis…

---

## [Possible to aggregate and filter on the same key?](https://discuss.elastic.co/t/possible-to-aggregate-and-filter-on-the-same-key/102888)

<div class="topic-metadata">

**Author:** [@bjd14](https://discuss.elastic.co/u/bjd14)\
**Replies:** 0\
**Last updated:** [October 5, 2017, 5:51pm UTC](https://discuss.elastic.co/t/possible-to-aggregate-and-filter-on-the-same-key/102888 "2017-10-05T17:51:55Z")

</div>

I'm not very experienced with Elastic but is it possible to aggregate and filter on the same key? Say I want the departments of a certain city that is being filtered on. This may be a dumb question but is there anyway t…

---

## [Hash function for routing in ES 5.5](https://discuss.elastic.co/t/hash-function-for-routing-in-es-5-5/102865)

<div class="topic-metadata">

**Author:** [@jmartinter](https://discuss.elastic.co/u/jmartinter)\
**Replies:** 8\
**Last updated:** [October 6, 2017, 12:56pm UTC](https://discuss.elastic.co/t/hash-function-for-routing-in-es-5-5/102865 "2017-10-06T12:56:11Z")

</div>

Hi, all, I'd like to order a long list of doc ids according to the shard each document is stored in. I paginate this list and run a query by id per page so, if most of the ids in page correspond to a same shard, system …

---

## [\[ALERTING\] Malfored URLs when trying to create a chained input watch](https://discuss.elastic.co/t/alerting-malfored-urls-when-trying-to-create-a-chained-input-watch/101932)

<div class="topic-metadata">

**Author:** [@anishm](https://discuss.elastic.co/u/anishm)\
**Replies:** 4\
**Last updated:** [October 6, 2017, 12:54pm UTC](https://discuss.elastic.co/t/alerting-malfored-urls-when-trying-to-create-a-chained-input-watch/101932 "2017-10-06T12:54:17Z")

</div>

I am trying to create a chained input for watcher that involves reading response from an API and making another another API call to the service mentioned in the body of the first request. Here's what the input looks like…

---

## [Check query before sending it to data nodes](https://discuss.elastic.co/t/check-query-before-sending-it-to-data-nodes/103004)

<div class="topic-metadata">

**Author:** [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 12:30pm UTC](https://discuss.elastic.co/t/check-query-before-sending-it-to-data-nodes/103004 "2017-10-06T12:30:59Z")

</div>

In a typical cluster, we have a client node and data nodes. We send query to client node, that dispatch it to data nodes. Client node should check that the query is good (no parsing error) before sending it to data nod…

---

## [Help understanding Hotthreads Snapshot -\> IndexReader.hashCode, FilterLeafReader, WeightedSpanTermExtractor](https://discuss.elastic.co/t/help-understanding-hotthreads-snapshot-indexreader-hashcode-filterleafreader-weightedspantermextractor/99287)

<div class="topic-metadata">

**Author:** [@Oche\_J\_Ejembi](https://discuss.elastic.co/u/Oche_J_Ejembi)\
**Replies:** 8\
**Last updated:** [October 6, 2017, 11:51am UTC](https://discuss.elastic.co/t/help-understanding-hotthreads-snapshot-indexreader-hashcode-filterleafreader-weightedspantermextractor/99287 "2017-10-06T11:51:52Z")

</div>

Hi there, I’ve been working with Elasticsearch for about two weeks now so still trying to figure things out. My use-case is that I have some json files stored as rows in multiple MySQL tables and I’m trying to index them…

---

## [Heap space help](https://discuss.elastic.co/t/heap-space-help/102997)

<div class="topic-metadata">

**Author:** [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 11:48am UTC](https://discuss.elastic.co/t/heap-space-help/102997 "2017-10-06T11:48:29Z")

</div>

Hi , I have 5 node cluster 3 dedicated master nodes and 2 data nodes of ES 1.5.2 version. for CRUD operations i am pointing out to data node IP's but dedicated master nodes are in severe pressure. can any one help me wh…

---

## [ES Write timeout](https://discuss.elastic.co/t/es-write-timeout/102337)

<div class="topic-metadata">

**Author:** [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Replies:** 27\
**Last updated:** [October 6, 2017, 11:40am UTC](https://discuss.elastic.co/t/es-write-timeout/102337 "2017-10-06T11:40:49Z")

</div>

i have 3 data node cluster. each has 15gb memory for ES and 15gb for lucen have each record of sixe 5kb around around 100 fields pumping documents at 5000 per seconds after some time i am getting write timeout is it …

---

## [After I restart a node or a node disconnected with cluster, all data will copy from remote, why not recovery from local](https://discuss.elastic.co/t/after-i-restart-a-node-or-a-node-disconnected-with-cluster-all-data-will-copy-from-remote-why-not-recovery-from-local/102233)

<div class="topic-metadata">

**Author:** [@gangxiong\_chen](https://discuss.elastic.co/u/gangxiong_chen)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 10:15am UTC](https://discuss.elastic.co/t/after-i-restart-a-node-or-a-node-disconnected-with-cluster-all-data-will-copy-from-remote-why-not-recovery-from-local/102233 "2017-10-06T10:15:32Z")

</div>

es version 5.2.2 only few index will write, and others are BLOCK.WRITE setting a node left will cost 12+ hours to cluster becoming green

---

## [Elasticsearch S3 backup with custom KMS key encryption](https://discuss.elastic.co/t/elasticsearch-s3-backup-with-custom-kms-key-encryption/102807)

<div class="topic-metadata">

**Author:** [@sukanta](https://discuss.elastic.co/u/sukanta)\
**Replies:** 4\
**Last updated:** [October 6, 2017, 10:21am UTC](https://discuss.elastic.co/t/elasticsearch-s3-backup-with-custom-kms-key-encryption/102807 "2017-10-06T10:21:51Z")

</div>

When can we expect support for Elasticsearch S3 backup with custom KMS key encryption

---

## [Built in 'User' Role in Shield Vs x-pack](https://discuss.elastic.co/t/built-in-user-role-in-shield-vs-x-pack/102195)

<div class="topic-metadata">

**Author:** [@jackhouston1](https://discuss.elastic.co/u/jackhouston1)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 9:58am UTC](https://discuss.elastic.co/t/built-in-user-role-in-shield-vs-x-pack/102195 "2017-10-06T09:58:59Z")

</div>

Hi All, I have just upgraded my Elastic Search to 5.6.1 as well as x-pack. I am having hard time recreating the USER built in role available in shield into x-pack , for that i have defined the role in x-pack as PUT /…

---

## [Indexing document in multiple index](https://discuss.elastic.co/t/indexing-document-in-multiple-index/102984)

<div class="topic-metadata">

**Author:** [@Arian\_Dave\_Mabanag](https://discuss.elastic.co/u/Arian_Dave_Mabanag)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 9:43am UTC](https://discuss.elastic.co/t/indexing-document-in-multiple-index/102984 "2017-10-06T09:43:14Z")

</div>

Im currently working on a document which needs to be in a monthly index. This document contains 2 datetime fields which will be used as a reference to where it needs to indexed. The first one being the datetime when it i…

---

## [Disable hostname verification for xpack monitoring](https://discuss.elastic.co/t/disable-hostname-verification-for-xpack-monitoring/102893)

<div class="topic-metadata">

**Author:** [@lgee](https://discuss.elastic.co/u/lgee)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 9:22am UTC](https://discuss.elastic.co/t/disable-hostname-verification-for-xpack-monitoring/102893 "2017-10-06T09:22:31Z")

</div>

I'm seeing the following error in the Kibana logs: Request error, retrying\\nHEAD https://xxxxxx:9200/ =\> Hostname/IP doesn't match certificate's altnames: "Host: xxxxx.eu-west-2.elb.amazonaws.com. is not in the cert's a…

---

## [X-paxk: Login is currently disabled because the license could not be determined](https://discuss.elastic.co/t/x-paxk-login-is-currently-disabled-because-the-license-could-not-be-determined/102863)

<div class="topic-metadata">

**Author:** [@mbvelo](https://discuss.elastic.co/u/mbvelo)\
**Replies:** 7\
**Last updated:** [October 6, 2017, 8:54am UTC](https://discuss.elastic.co/t/x-paxk-login-is-currently-disabled-because-the-license-could-not-be-determined/102863 "2017-10-06T08:54:27Z")

</div>

Login is currently disabled because the license could not be determined. Please check that Elasticsearch is running, then refresh this page.

---

## [Problem with example in advanced script engine es 5.6](https://discuss.elastic.co/t/problem-with-example-in-advanced-script-engine-es-5-6/102972)

<div class="topic-metadata">

**Author:** [@Junon\_Lim](https://discuss.elastic.co/u/Junon_Lim)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 8:53am UTC](https://discuss.elastic.co/t/problem-with-example-in-advanced-script-engine-es-5-6/102972 "2017-10-06T08:53:29Z")

</div>

I was following the guide below. https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-engine.html The result I got was as below. I was debugging the code and the line "return p -\> new Searc…

---

## [Curl with elasticsearch](https://discuss.elastic.co/t/curl-with-elasticsearch/102961)

<div class="topic-metadata">

**Author:** [@f26227279](https://discuss.elastic.co/u/f26227279)\
**Replies:** 6\
**Last updated:** [October 6, 2017, 8:33am UTC](https://discuss.elastic.co/t/curl-with-elasticsearch/102961 "2017-10-06T08:33:05Z")

</div>

Hi everyone, My pc is windows 10. I want to use curl command to get the data from elasticsearch, but I have some problems. this is my curl command (a small test): curl -GET "http://localhost:9200/\_search" -d'{"query":…

---

## [Mapping Type removal - Study of alternatives](https://discuss.elastic.co/t/mapping-type-removal-study-of-alternatives/102956)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 8:10am UTC](https://discuss.elastic.co/t/mapping-type-removal-study-of-alternatives/102956 "2017-10-06T08:10:58Z")

</div>

Recently, i found that the mapping types will be removed once v6.0 is released. I would like to know the thoughts on suggested alternatives: Create index per type - I have around 30types. So indexes created will be 3…

---

## [Is it possible to fire query in two indices and based on the result update third index?](https://discuss.elastic.co/t/is-it-possible-to-fire-query-in-two-indices-and-based-on-the-result-update-third-index/102854)

<div class="topic-metadata">

**Author:** [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Replies:** 4\
**Last updated:** [October 6, 2017, 8:22am UTC](https://discuss.elastic.co/t/is-it-possible-to-fire-query-in-two-indices-and-based-on-the-result-update-third-index/102854 "2017-10-06T08:22:32Z")

</div>

Hi Exerts, I have 3 indices student (name=vg, gopal etc) teacher (teachername=robert, bob etc) Class (classname=maths, english etc) What I want is to check student and teacher indices and based on a condition result…

---

## [Metricbeat logs](https://discuss.elastic.co/t/metricbeat-logs/102969)

<div class="topic-metadata">

**Author:** [@JayArthur](https://discuss.elastic.co/u/JayArthur)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 8:22am UTC](https://discuss.elastic.co/t/metricbeat-logs/102969 "2017-10-06T08:22:18Z")

</div>

Hey guys, I successfully managed to install my ELK server a while back but haven't been able to make sense of the beats' logs as displayed below. Is everything al right or do I need to change something? Below find my m…

---

## [Elasticsearch 2.4.6 client node role reporting in \_cluster/stats output](https://discuss.elastic.co/t/elasticsearch-2-4-6-client-node-role-reporting-in-cluster-stats-output/102928)

<div class="topic-metadata">

**Author:** [@pdeaudney](https://discuss.elastic.co/u/pdeaudney)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 8:07am UTC](https://discuss.elastic.co/t/elasticsearch-2-4-6-client-node-role-reporting-in-cluster-stats-output/102928 "2017-10-06T08:07:16Z")

</div>

Hi, I am running ES 2.4.6; I have multiple "client" nodes with the config: node.data: false node.master: false However in the \_cluster/stats output, they're not listed as client nodes at all. "nodes": { …

---

## [Term is not working after some time](https://discuss.elastic.co/t/term-is-not-working-after-some-time/102664)

<div class="topic-metadata">

**Author:** [@nkk](https://discuss.elastic.co/u/nkk)\
**Replies:** 7\
**Last updated:** [October 6, 2017, 7:57am UTC](https://discuss.elastic.co/t/term-is-not-working-after-some-time/102664 "2017-10-06T07:57:15Z")

</div>

Hello, i am using elasticsearch 1.7, i have a mapping "testClass": { "type": "string" , "index": "not\_analyzed", "norms": { "enabled": false }} after posting mapping, i could run both match and term queries. b…

---

## [2-phase sorting/bucketed sorting](https://discuss.elastic.co/t/2-phase-sorting-bucketed-sorting/102962)

<div class="topic-metadata">

**Author:** [@mrkamel](https://discuss.elastic.co/u/mrkamel)\
**Replies:** 0\
**Last updated:** [October 6, 2017, 7:40am UTC](https://discuss.elastic.co/t/2-phase-sorting-bucketed-sorting/102962 "2017-10-06T07:40:08Z")

</div>

Hi, i need to do the following, but i've no idea where to hook in. I'm sorting results using a custom native plugin (weighting various attributes and ranking criteria like document age, keyword relevancy, geo info, etc…

---

## [I'm facing "NoNodeAvailableException" but doesn't now what I'm doing wrong!](https://discuss.elastic.co/t/im-facing-nonodeavailableexception-but-doesnt-now-what-im-doing-wrong/102806)

<div class="topic-metadata">

**Author:** [@sebF](https://discuss.elastic.co/u/sebF)\
**Replies:** 10\
**Last updated:** [October 6, 2017, 7:29am UTC](https://discuss.elastic.co/t/im-facing-nonodeavailableexception-but-doesnt-now-what-im-doing-wrong/102806 "2017-10-06T07:29:03Z")

</div>

Hi I create new topic because I did not find a solution to my pb in the other threads. My pb is that I face the following error when I try to perform a search query on elasticsearch thanks a java client: InetSocketAd…

---

## [How do I run More Like This query in a different index with different fields?](https://discuss.elastic.co/t/how-do-i-run-more-like-this-query-in-a-different-index-with-different-fields/102457)

<div class="topic-metadata">

**Author:** [@data.dev](https://discuss.elastic.co/u/data.dev)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 7:25am UTC](https://discuss.elastic.co/t/how-do-i-run-more-like-this-query-in-a-different-index-with-different-fields/102457 "2017-10-06T07:25:56Z")

</div>

Is it possible to run a More Like This (MLT) query searching a particular index, while specifying a source document in a different index, where the source document has different fields? I'm looking at this documentation…

---

## [Adding nodes to cluster cause all nodes Load](https://discuss.elastic.co/t/adding-nodes-to-cluster-cause-all-nodes-load/102864)

<div class="topic-metadata">

**Author:** [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Replies:** 6\
**Last updated:** [October 6, 2017, 7:21am UTC](https://discuss.elastic.co/t/adding-nodes-to-cluster-cause-all-nodes-load/102864 "2017-10-06T07:21:28Z")

</div>

Hi, Here is my strange story : We had a cluster with 5 nodes with one node having load. We have added 2 new nodes. After few days we have deleted 2 old ones because they had to much load, and we finally have added 2 n…

---

## [Need help with Performance and Storage Factors](https://discuss.elastic.co/t/need-help-with-performance-and-storage-factors/102939)

<div class="topic-metadata">

**Author:** [@sidra\_89](https://discuss.elastic.co/u/sidra_89)\
**Replies:** 5\
**Last updated:** [October 6, 2017, 7:20am UTC](https://discuss.elastic.co/t/need-help-with-performance-and-storage-factors/102939 "2017-10-06T07:20:46Z")

</div>

Hi .. i am new to elasticsearch and have some basic knowledge about it and at this point i dont know what and how performance will be altered with the choices i will make for using Elasticsearch. i came across some ques…

---

## [Compact timeline data](https://discuss.elastic.co/t/compact-timeline-data/102853)

<div class="topic-metadata">

**Author:** [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Replies:** 3\
**Last updated:** [October 6, 2017, 7:14am UTC](https://discuss.elastic.co/t/compact-timeline-data/102853 "2017-10-06T07:14:37Z")

</div>

Using beat to monitor everything, we would like to "compact" timeline data after 3 days: Change time scale from 1 minute to 1 hour . (by an average aggregation). In order to save disk space. Any plugin or suggestion?

---

## [Modify SearchDescriptor to Add field\_value\_factor using .NEST](https://discuss.elastic.co/t/modify-searchdescriptor-to-add-field-value-factor-using-nest/102483)

<div class="topic-metadata">

**Author:** [@ghohenstatt](https://discuss.elastic.co/u/ghohenstatt)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 7:14am UTC](https://discuss.elastic.co/t/modify-searchdescriptor-to-add-field-value-factor-using-nest/102483 "2017-10-06T07:14:32Z")

</div>

I need to revise a method that builds a SearchDescriptor using .Nest so that the score is higher for product search results for items having a contract price (value of zero). I captured the serialized version of the qu…

---

## [Beginner question about index creation with NEST](https://discuss.elastic.co/t/beginner-question-about-index-creation-with-nest/102371)

<div class="topic-metadata">

**Author:** [@Illidan](https://discuss.elastic.co/u/Illidan)\
**Replies:** 1\
**Last updated:** [October 6, 2017, 7:11am UTC](https://discuss.elastic.co/t/beginner-question-about-index-creation-with-nest/102371 "2017-10-06T07:11:44Z")

</div>

I reading documentation about creating index using .NET client (NEST), and I wondering where (and when) is the right place to do that: On server startup? Then, before attempt to create index I should check first if such…

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

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