# Elasticsearch

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

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

**Page:** 631

---

## [Is it possible to obtain results with different term queries that each could have a percentage weight?](https://discuss.elastic.co/t/is-it-possible-to-obtain-results-with-different-term-queries-that-each-could-have-a-percentage-weight/275578)

<div class="topic-metadata">

**Author:** [@mstirling](https://discuss.elastic.co/u/mstirling)\
**Replies:** 1\
**Last updated:** [June 10, 2021, 8:25pm UTC](https://discuss.elastic.co/t/is-it-possible-to-obtain-results-with-different-term-queries-that-each-could-have-a-percentage-weight/275578 "2021-06-10T20:25:00Z")

</div>

Does anyone know if it's possible to obtain results to use an alternative term search based on a percentage? For example Imagine I have an Apple index. I'd like to have 40% of the results to be color red while 60% to be…

---

## [How to get the heap size used by an indices?](https://discuss.elastic.co/t/how-to-get-the-heap-size-used-by-an-indices/275531)

<div class="topic-metadata">

**Author:** [@rebug](https://discuss.elastic.co/u/rebug)\
**Replies:** 1\
**Last updated:** [June 10, 2021, 6:37pm UTC](https://discuss.elastic.co/t/how-to-get-the-heap-size-used-by-an-indices/275531 "2021-06-10T18:37:53Z")

</div>

Hello, I would like to know is there a possibility to get the heap used by a particular indices in elastic search ? Thanks :grinning:

---

## [Elaticsearch multiMatchQuery with wildcard](https://discuss.elastic.co/t/elaticsearch-multimatchquery-with-wildcard/275590)

<div class="topic-metadata">

**Author:** [@saiteja](https://discuss.elastic.co/u/saiteja)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 3:08pm UTC](https://discuss.elastic.co/t/elaticsearch-multimatchquery-with-wildcard/275590 "2021-06-10T15:08:27Z")

</div>

Hello, I have a requirement to search in all the fileds data with wild card in java using elaticsearch spring data in spring boot Here is my code String queryString = "362\*"; final Query searchQuery = new…

---

## [ElasticSearch: Configuring keep alive time for scaling threads](https://discuss.elastic.co/t/elasticsearch-configuring-keep-alive-time-for-scaling-threads/275586)

<div class="topic-metadata">

**Author:** [@SatyaAditya](https://discuss.elastic.co/u/SatyaAditya)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 2:16pm UTC](https://discuss.elastic.co/t/elasticsearch-configuring-keep-alive-time-for-scaling-threads/275586 "2021-06-10T14:16:01Z")

</div>

I am facing Java Out Of Memory issue while successive index operations. I have a custom ES plugin, which makes an API call, so for each document an API call is made and a new thread is being created for that API call. Fo…

---

## [Getting org.elasticsearch.hadoop.rest.EsHadoopRemoteException: too\_many\_clauses: too\_many\_clauses: maxClauseCount is set to 1024\\n](https://discuss.elastic.co/t/getting-org-elasticsearch-hadoop-rest-eshadoopremoteexception-too-many-clauses-too-many-clauses-maxclausecount-is-set-to-1024-n/275580)

<div class="topic-metadata">

**Author:** [@Chilaka\_Ramakrishna](https://discuss.elastic.co/u/Chilaka_Ramakrishna)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 1:37pm UTC](https://discuss.elastic.co/t/getting-org-elasticsearch-hadoop-rest-eshadoopremoteexception-too-many-clauses-too-many-clauses-maxclausecount-is-set-to-1024-n/275580 "2021-06-10T13:37:43Z")

</div>

Getting the following error while running spark-sql for a simple in query org.elasticsearch.hadoop.rest.EsHadoopRemoteException: too\_many\_clauses: too\_many\_clauses: maxClauseCount is set to 1024\\n

---

## [Geo-polygon query inside ingest pipeline](https://discuss.elastic.co/t/geo-polygon-query-inside-ingest-pipeline/274886)

<div class="topic-metadata">

**Author:** [@Roy\_Levy](https://discuss.elastic.co/u/Roy_Levy)\
**Replies:** 9\
**Last updated:** [June 10, 2021, 12:00pm UTC](https://discuss.elastic.co/t/geo-polygon-query-inside-ingest-pipeline/274886 "2021-06-10T12:00:45Z")

</div>

Hey, I want to use the Geo-polygon query (Geo-polygon query | Elasticsearch Guide \[7.13\] | Elastic) inside an ingest pipeline and I've been thinking how to do it - as there is no query processor and the example for the …

---

## [Bypassing CORS policy in elasticsearch](https://discuss.elastic.co/t/bypassing-cors-policy-in-elasticsearch/275560)

<div class="topic-metadata">

**Author:** [@aishwarya\_Varadaraju](https://discuss.elastic.co/u/aishwarya_Varadaraju)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 11:49am UTC](https://discuss.elastic.co/t/bypassing-cors-policy-in-elasticsearch/275560 "2021-06-10T11:49:22Z")

</div>

Hi Team, Kindly let me know how to divert CORS policy error in elastic search, as I need to integrate my custom app with elastic search.

---

## [How to manage multiple namespaces with a single elastic operator](https://discuss.elastic.co/t/how-to-manage-multiple-namespaces-with-a-single-elastic-operator/275542)

<div class="topic-metadata">

**Author:** [@Josue](https://discuss.elastic.co/u/Josue)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 8:52am UTC](https://discuss.elastic.co/t/how-to-manage-multiple-namespaces-with-a-single-elastic-operator/275542 "2021-06-10T08:52:17Z")

</div>

Hello - i would like to install ECK one time and manage several namespaces, but it seems not working ! I performed : ./elastic-operator manager --namespaces=elastec,elastec2 without success ! No pods creation on es…

---

## [Range query not giving right result for lte](https://discuss.elastic.co/t/range-query-not-giving-right-result-for-lte/275460)

<div class="topic-metadata">

**Author:** [@soumyas](https://discuss.elastic.co/u/soumyas)\
**Replies:** 4\
**Last updated:** [June 10, 2021, 8:45am UTC](https://discuss.elastic.co/t/range-query-not-giving-right-result-for-lte/275460 "2021-06-10T08:45:27Z")

</div>

The result includes 23/03 in the result and miss to show 17/04. Where in data is present in the system. Any help is appreciated. "range" : { "timestamp" : { "from" : "2021-03-23", "to" : "2021-…

---

## [Can you filter a GET search field based on a String value?](https://discuss.elastic.co/t/can-you-filter-a-get-search-field-based-on-a-string-value/275539)

<div class="topic-metadata">

**Author:** [@SeanO95](https://discuss.elastic.co/u/SeanO95)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 8:44am UTC](https://discuss.elastic.co/t/can-you-filter-a-get-search-field-based-on-a-string-value/275539 "2021-06-10T08:44:19Z")

</div>

Looking to search a field's result for specific results. So if I have a name field and want to find names beginning with A, I should be able to input 'A\*' and it'll bring back all names beginning with A. So far I've onl…

---

## [How to use filter exception syslog messages using logstash](https://discuss.elastic.co/t/how-to-use-filter-exception-syslog-messages-using-logstash/275536)

<div class="topic-metadata">

**Author:** [@MdRashid](https://discuss.elastic.co/u/MdRashid)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 8:26am UTC](https://discuss.elastic.co/t/how-to-use-filter-exception-syslog-messages-using-logstash/275536 "2021-06-10T08:26:16Z")

</div>

Ok, let me explain u Below is the exception message Exception Alert @timestamp: 2021-06-01T11:59:38Z \_id: 6N5yx3kBz7SOxaiwHV-c \_index: logstash-2021.06.01 \_type: \_doc message: \<30\>Jun 1 11:59:38 fx-prod-1 prod\_fx-con…

---

## [What's the sort default score difference between elasticsearch7.9.3 and elasticsearch6.8.0](https://discuss.elastic.co/t/whats-the-sort-default-score-difference-between-elasticsearch7-9-3-and-elasticsearch6-8-0/274711)

<div class="topic-metadata">

**Author:** [@sunweiconfidence](https://discuss.elastic.co/u/sunweiconfidence)\
**Replies:** 6\
**Last updated:** [June 10, 2021, 6:42am UTC](https://discuss.elastic.co/t/whats-the-sort-default-score-difference-between-elasticsearch7-9-3-and-elasticsearch6-8-0/274711 "2021-06-10T06:42:30Z")

</div>

hi, i test in the elasticsearch7.9.3 using below query clause: URL: https://elastic:password@MACHINENAME:9500/indexname/\_search query post body: { "explain": true, "from": 0, "size": 130, "query": { "bool": { …

---

## [Elastic Search Compatability](https://discuss.elastic.co/t/elastic-search-compatability/274341)

<div class="topic-metadata">

**Author:** [@geek\_007](https://discuss.elastic.co/u/geek_007)\
**Replies:** 4\
**Last updated:** [June 10, 2021, 6:37am UTC](https://discuss.elastic.co/t/elastic-search-compatability/274341 "2021-06-10T06:37:51Z")

</div>

We are running elasticsearch 6.4.0 cluster in our production environment. For a new use case we are planning to roll out a new es cluster with version 7.10.0. Will high level java rest client version 6.8.0 be compatible …

---

## [How to retrieve metric data from prometheus](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411)

<div class="topic-metadata">

**Author:** [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Replies:** 6\
**Last updated:** [June 10, 2021, 6:20am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411 "2021-06-10T06:20:28Z")

</div>

I would like to visualize data from a prometheus server in kibana, any idea how to do it? I tried to use the module of metricbeat called prometheus, but this looks like is just monitoring the service, it doesn't give me…

---

## [Monitoring ES search requesters](https://discuss.elastic.co/t/monitoring-es-search-requesters/274010)

<div class="topic-metadata">

**Author:** [@Shachar0n](https://discuss.elastic.co/u/Shachar0n)\
**Replies:** 2\
**Last updated:** [June 10, 2021, 5:32am UTC](https://discuss.elastic.co/t/monitoring-es-search-requesters/274010 "2021-06-10T05:32:02Z")

</div>

Hi guys, Is there a way to get top clients that call a certain ES API (or any API) ? for example, I'm looking for some output that would give me information like this (not necessarily exactly this output): in last 1 h…

---

## [Constant Unassigned Shards](https://discuss.elastic.co/t/constant-unassigned-shards/275486)

<div class="topic-metadata">

**Author:** [@Oleksandr.Tedikov](https://discuss.elastic.co/u/Oleksandr.Tedikov)\
**Replies:** 7\
**Last updated:** [June 10, 2021, 4:21am UTC](https://discuss.elastic.co/t/constant-unassigned-shards/275486 "2021-06-10T04:21:05Z")

</div>

Hello, I have Elastic Cluster with the following Configuration: 3 Master Nodes (JVM Heap Ram 4 GB, 1 CPU, 1 GB Disk) 10 Data/Ingest Nodes (JVM Heap Ram 8 GB, 2 CPU, 500 GB Disk) ~200 Indexes Each Index has 2 Replica…

---

## [Understanding scaling for a read heavy cluster](https://discuss.elastic.co/t/understanding-scaling-for-a-read-heavy-cluster/275322)

<div class="topic-metadata">

**Author:** [@andyleanlibrary](https://discuss.elastic.co/u/andyleanlibrary)\
**Replies:** 3\
**Last updated:** [June 10, 2021, 1:05am UTC](https://discuss.elastic.co/t/understanding-scaling-for-a-read-heavy-cluster/275322 "2021-06-10T01:05:36Z")

</div>

Hi, I'm trying to understand how to scale an Elasticsearch cluster which is extremely slow right now! Can anyone help? It's approx. 124,000,000 documents totalling about 60GB. I index the data once per month. In term…

---

## [How to round a value in an aggregation query?](https://discuss.elastic.co/t/how-to-round-a-value-in-an-aggregation-query/275509)

<div class="topic-metadata">

**Author:** [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 12:31am UTC](https://discuss.elastic.co/t/how-to-round-a-value-in-an-aggregation-query/275509 "2021-06-10T00:31:53Z")

</div>

Hi Im trying to round the value of "forecast\_prediction" in an aggs query, I have tried bucket script aggregation but is not working "aggs": { "jobid": { "terms": { "field…

---

## [Elasticsearch 7.13 "Cannot Find License/Not a Valid License"](https://discuss.elastic.co/t/elasticsearch-7-13-cannot-find-license-not-a-valid-license/275362)

<div class="topic-metadata">

**Author:** [@pkward](https://discuss.elastic.co/u/pkward)\
**Replies:** 2\
**Last updated:** [June 9, 2021, 9:55pm UTC](https://discuss.elastic.co/t/elasticsearch-7-13-cannot-find-license-not-a-valid-license/275362 "2021-06-09T21:55:54Z")

</div>

I was ingesting data via Logstash, and I was using the \_count API to view how many documents were being ingested. And all of a sudden my Elasticsearch master was unreachable, and it stated that the license cannot be foun…

---

## [I can't start elastcsearch](https://discuss.elastic.co/t/i-cant-start-elastcsearch/275436)

<div class="topic-metadata">

**Author:** [@sk88](https://discuss.elastic.co/u/sk88)\
**Replies:** 2\
**Last updated:** [June 9, 2021, 9:13pm UTC](https://discuss.elastic.co/t/i-cant-start-elastcsearch/275436 "2021-06-09T21:13:31Z")

</div>

type or paste code here STATUS: ● elasticsearch.service - Elasticsearch Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Wed 2021-06-0…

---

## [Successful authentication after 3 failures](https://discuss.elastic.co/t/successful-authentication-after-3-failures/275491)

<div class="topic-metadata">

**Author:** [@bilel\_meddeb](https://discuss.elastic.co/u/bilel_meddeb)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 7:04pm UTC](https://discuss.elastic.co/t/successful-authentication-after-3-failures/275491 "2021-06-09T19:04:03Z")

</div>

Hello, I'm new in ELK I want to create an alert if a windows user makes a successful login after he make 3 failed authentication that's mean after 3 failed (4625 event id ) and 1 success (4624 event id ) he make alert …

---

## [How to get output in CSV format in Elastic Node Sql POST method](https://discuss.elastic.co/t/how-to-get-output-in-csv-format-in-elastic-node-sql-post-method/275330)

<div class="topic-metadata">

**Author:** [@Resington\_R](https://discuss.elastic.co/u/Resington_R)\
**Replies:** 4\
**Last updated:** [June 9, 2021, 7:42pm UTC](https://discuss.elastic.co/t/how-to-get-output-in-csv-format-in-elastic-node-sql-post-method/275330 "2021-06-09T19:42:26Z")

</div>

Hi... Can someone help to format the output in CSV for this Node JS code. I am using Elastic 7.10.2. I have tried change the path like /\_sql?format=csv its not working. But the same path in Kibana Dev Terminal, I am abl…

---

## [Elasticsearch php vs raw](https://discuss.elastic.co/t/elasticsearch-php-vs-raw/275424)

<div class="topic-metadata">

**Author:** [@Rammi22](https://discuss.elastic.co/u/Rammi22)\
**Replies:** 1\
**Last updated:** [June 9, 2021, 5:32pm UTC](https://discuss.elastic.co/t/elasticsearch-php-vs-raw/275424 "2021-06-09T17:32:00Z")

</div>

Hi, i asked also on Github:ongr-io/ElasticsearchDSL. used: ElsaticsearchPHP Elasticsearch DSL library Browser-Extension Elasticvue (Chrome) Executing an search request with both clients, IMHO with the same query con…

---

## [ElasticSearch Query string returns total hits different than scroll](https://discuss.elastic.co/t/elasticsearch-query-string-returns-total-hits-different-than-scroll/275462)

<div class="topic-metadata">

**Author:** [@telebh](https://discuss.elastic.co/u/telebh)\
**Replies:** 2\
**Last updated:** [June 9, 2021, 5:01pm UTC](https://discuss.elastic.co/t/elasticsearch-query-string-returns-total-hits-different-than-scroll/275462 "2021-06-09T17:01:11Z")

</div>

Hi There, I run query string against new ES V7 which expected to return 25k result set, but only returns total hit 1000, when running the same query but using scroll, it returns the expected correct count of 25k as a to…

---

## [There is a way to use multiple analyzers?](https://discuss.elastic.co/t/there-is-a-way-to-use-multiple-analyzers/275472)

<div class="topic-metadata">

**Author:** [@Sebastian\_Marroquin](https://discuss.elastic.co/u/Sebastian_Marroquin)\
**Replies:** 1\
**Last updated:** [June 9, 2021, 4:34pm UTC](https://discuss.elastic.co/t/there-is-a-way-to-use-multiple-analyzers/275472 "2021-06-09T16:34:11Z")

</div>

Hi everyone, I'm starting my way to learn and use elasticsearch alongside the "MEN" stack. And I was wondering if there is a way to use multiple parsers, I show you the section of code that I want to use: query = { …

---

## [Creating index on monthly basis](https://discuss.elastic.co/t/creating-index-on-monthly-basis/274762)

<div class="topic-metadata">

**Author:** [@Gourav\_Aggarwal](https://discuss.elastic.co/u/Gourav_Aggarwal)\
**Replies:** 6\
**Last updated:** [June 9, 2021, 3:18pm UTC](https://discuss.elastic.co/t/creating-index-on-monthly-basis/274762 "2021-06-09T15:18:23Z")

</div>

Is there any way by which we can create index named \<prefix\>-yyyy.mm on the first day of every month and getting the alias pointed to this newly created index? I learned about date time but that changes the name only wh…

---

## [How to add analyzers for node clients search](https://discuss.elastic.co/t/how-to-add-analyzers-for-node-clients-search/275459)

<div class="topic-metadata">

**Author:** [@thislekan](https://discuss.elastic.co/u/thislekan)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 3:17pm UTC](https://discuss.elastic.co/t/how-to-add-analyzers-for-node-clients-search/275459 "2021-06-09T15:17:47Z")

</div>

Hi. This is my first time trying elastic search and I am looking for a way to include an analyzer in my code. I have a bug at work that prevents me from doing a search like this, where the search term is 1:45 am. I want…

---

## [Problem with German charater ß](https://discuss.elastic.co/t/problem-with-german-charater-ss/275450)

<div class="topic-metadata">

**Author:** [@Stefan\_F1](https://discuss.elastic.co/u/Stefan_F1)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 2:08pm UTC](https://discuss.elastic.co/t/problem-with-german-charater-ss/275450 "2021-06-09T14:08:35Z")

</div>

Hi, I added a document to my index with the name abcß. Then I tried to read the data with a query over postman: {"query":"SELECT \*, id FROM sapalink\_fi WHERE name = 'abcß' and (repository='rfHN5c3RlbXwxfFNGfC8=') AND (…

---

## [Migration from Elastic Cloud to Elastic on Docker](https://discuss.elastic.co/t/migration-from-elastic-cloud-to-elastic-on-docker/275132)

<div class="topic-metadata">

**Author:** [@Danigrail](https://discuss.elastic.co/u/Danigrail)\
**Replies:** 4\
**Last updated:** [June 9, 2021, 1:41pm UTC](https://discuss.elastic.co/t/migration-from-elastic-cloud-to-elastic-on-docker/275132 "2021-06-09T13:41:15Z")

</div>

Hi community, im using ES on my Docker, i try to migrate data from my other Elasticsearch on Cloud, i tried to aim to my Elasticsearch ID but on Dev Tools doesn't work. I restarted container also, and added to the white…

---

## [How use complex params in java](https://discuss.elastic.co/t/how-use-complex-params-in-java/275446)

<div class="topic-metadata">

**Author:** [@saberfate](https://discuss.elastic.co/u/saberfate)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 1:39pm UTC](https://discuss.elastic.co/t/how-use-complex-params-in-java/275446 "2021-06-09T13:39:43Z")

</div>

Hi, I'm using painless to do some complex json replacement. In REST call, I can use params like below "params": { "doc": \[{"b": "value3", "b1": "value33"}, {"d": "value44", "array1": \["abc", "123"\]}\], "total": …

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

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