# Elasticsearch

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

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

**Page:** 270

---

## [Geoshape query and spatial relations](https://discuss.elastic.co/t/geoshape-query-and-spatial-relations/330470)

<div class="topic-metadata">

**Author:** [@JbalancioLP](https://discuss.elastic.co/u/JbalancioLP)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 7:35pm UTC](https://discuss.elastic.co/t/geoshape-query-and-spatial-relations/330470 "2023-04-20T19:35:02Z")

</div>

I'd like to return documents using the geoshape query, but I'm having trouble deciding which spatial relation to use. The document has a location as a geopoint. I will be searching by providing a polygon. Should I use th…

---

## [Master node network bandwidth requirements](https://discuss.elastic.co/t/master-node-network-bandwidth-requirements/330468)

<div class="topic-metadata">

**Author:** [@Aurel1](https://discuss.elastic.co/u/Aurel1)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 7:22pm UTC](https://discuss.elastic.co/t/master-node-network-bandwidth-requirements/330468 "2023-04-20T19:22:57Z")

</div>

Hello, I have a cluster with dedicated master nodes. I recently noticed, that the current master has relatively high network bandwidth requirements (sustained non-stop ~15Mb/s in, and ~15Mb/s out). It seems that the traf…

---

## [Merging hybrid search results (BM25 + HNSW) in elastic 8.7](https://discuss.elastic.co/t/merging-hybrid-search-results-bm25-hnsw-in-elastic-8-7/330225)

<div class="topic-metadata">

**Author:** [@Francisco\_Rocha](https://discuss.elastic.co/u/Francisco_Rocha)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 5:57pm UTC](https://discuss.elastic.co/t/merging-hybrid-search-results-bm25-hnsw-in-elastic-8-7/330225 "2023-04-20T17:57:50Z")

</div>

Hi there! I'm new to Elastic and have been trying to do a information retrieval system for 500k documents of text using python and docker (for elastic 8.7). I'm not really sure how to go about doing an hybrid search (BM…

---

## [Elasticsearch 8.5 Java Client increase field weights during search](https://discuss.elastic.co/t/elasticsearch-8-5-java-client-increase-field-weights-during-search/330408)

<div class="topic-metadata">

**Author:** [@Denko](https://discuss.elastic.co/u/Denko)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 5:35pm UTC](https://discuss.elastic.co/t/elasticsearch-8-5-java-client-increase-field-weights-during-search/330408 "2023-04-20T17:35:04Z")

</div>

Hi! I'm trying to figure out how to boost weights for some of the fields in the index during a search. For instance, I have the name field and I'd like Elasticsearch to give it x2 relevance score. Is it possible to do th…

---

## [Modifiy a runtime field](https://discuss.elastic.co/t/modifiy-a-runtime-field/330430)

<div class="topic-metadata">

**Author:** [@abkrim](https://discuss.elastic.co/u/abkrim)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 5:30pm UTC](https://discuss.elastic.co/t/modifiy-a-runtime-field/330430 "2023-04-20T17:30:30Z")

</div>

If have a runtime filed in my index "runtime": { "total\_consumption": { "type": "double", "script": { "source": """ double sum = 0; if (doc\['pa1\_w'\].size() == …

---

## [Ingest node discovery](https://discuss.elastic.co/t/ingest-node-discovery/330399)

<div class="topic-metadata">

**Author:** [@frank\_2](https://discuss.elastic.co/u/frank_2)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 2:47pm UTC](https://discuss.elastic.co/t/ingest-node-discovery/330399 "2023-04-20T14:47:25Z")

</div>

Hello, I have a high write / ingest volume and have configured dedicated ingest nodes for my cluster. I have non-Elasticsearch workers in front of these ingest nodes which pre-process data and which are happily sending…

---

## [Unit test using Springboot to check if an index exists in Elasticsearch](https://discuss.elastic.co/t/unit-test-using-springboot-to-check-if-an-index-exists-in-elasticsearch/330384)

<div class="topic-metadata">

**Author:** [@Maleesha\_De\_Silva](https://discuss.elastic.co/u/Maleesha_De_Silva)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 1:40pm UTC](https://discuss.elastic.co/t/unit-test-using-springboot-to-check-if-an-index-exists-in-elasticsearch/330384 "2023-04-20T13:40:01Z")

</div>

How do I write a unit test case using Springboot to check if an index exists in Elasticsearch version 8.7?

---

## [Elastic to Snowflake index movemnet](https://discuss.elastic.co/t/elastic-to-snowflake-index-movemnet/330392)

<div class="topic-metadata">

**Author:** [@Shalinicts](https://discuss.elastic.co/u/Shalinicts)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 1:32pm UTC](https://discuss.elastic.co/t/elastic-to-snowflake-index-movemnet/330392 "2023-04-20T13:32:32Z")

</div>

Hi Team, We would like to move certain indices (4-5 indices ) from elasticsearch to snowflake on a day to day basis. Please provide the possible methods to do the same. ELK version :7.17 platinum Thanks, Shalini.

---

## [Elasticsearch with Tomcat nodecommunication](https://discuss.elastic.co/t/elasticsearch-with-tomcat-nodecommunication/330390)

<div class="topic-metadata">

**Author:** [@Siva\_Karan](https://discuss.elastic.co/u/Siva_Karan)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 1:04pm UTC](https://discuss.elastic.co/t/elasticsearch-with-tomcat-nodecommunication/330390 "2023-04-20T13:04:41Z")

</div>

Hi Team, We are using Tomcat application and elasticsearch 7.3 with Java 8 We are using the ransport client to communicate each other. Now we are planning to update the TOMCAT application node with java 17 and Elastic…

---

## [Unable to bringup up 3 node, 300gb elasticsearch setup from docker volume](https://discuss.elastic.co/t/unable-to-bringup-up-3-node-300gb-elasticsearch-setup-from-docker-volume/329852)

<div class="topic-metadata">

**Author:** [@coldcoder8502](https://discuss.elastic.co/u/coldcoder8502)\
**Replies:** 5\
**Last updated:** [April 20, 2023, 12:47pm UTC](https://discuss.elastic.co/t/unable-to-bringup-up-3-node-300gb-elasticsearch-setup-from-docker-volume/329852 "2023-04-20T12:47:03Z")

</div>

Hi all, Iam trying to bringup elasticsearch 3 node setup with default settings which has 300gb data on a single index, I copied data volume of elasticsearch names =\> es01,es02,es03 from 1 machine to another machine and …

---

## [Search latency comparison of using \_seq\_no vs a keyword field in random\_score function](https://discuss.elastic.co/t/search-latency-comparison-of-using-seq-no-vs-a-keyword-field-in-random-score-function/330381)

<div class="topic-metadata">

**Author:** [@shekimod](https://discuss.elastic.co/u/shekimod)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 10:31am UTC](https://discuss.elastic.co/t/search-latency-comparison-of-using-seq-no-vs-a-keyword-field-in-random-score-function/330381 "2023-04-20T10:31:59Z")

</div>

Hi all, We are using random\_score function with seed as System.nanoTime() and field as one of the keyword fields in the index for a use-case of returning random results from the index with pagination support. We are obs…

---

## [XOR on vector parameters](https://discuss.elastic.co/t/xor-on-vector-parameters/330368)

<div class="topic-metadata">

**Author:** [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 9:29am UTC](https://discuss.elastic.co/t/xor-on-vector-parameters/330368 "2023-04-20T09:29:32Z")

</div>

Hi, I want to do an xor on vectors in a painless scoring script. ATM I'm iterating over one vector and xoring each entry with the corresponding entry in the query vector. Is there a way I can do it in a single command…

---

## [Want to use Elasticsearch as a base image](https://discuss.elastic.co/t/want-to-use-elasticsearch-as-a-base-image/330295)

<div class="topic-metadata">

**Author:** [@ANUBHAV\_GUPTA](https://discuss.elastic.co/u/ANUBHAV_GUPTA)\
**Replies:** 7\
**Last updated:** [April 20, 2023, 9:23am UTC](https://discuss.elastic.co/t/want-to-use-elasticsearch-as-a-base-image/330295 "2023-04-20T09:23:30Z")

</div>

I want to use elasticsearch app as a base image and load a json file while booting up the ES instance. Can I do this? What will be the Entrypoint to start the container?

---

## [Elasticsearch wildcard keyword \* not working](https://discuss.elastic.co/t/elasticsearch-wildcard-keyword-not-working/330361)

<div class="topic-metadata">

**Author:** [@jiankunking](https://discuss.elastic.co/u/jiankunking)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 9:00am UTC](https://discuss.elastic.co/t/elasticsearch-wildcard-keyword-not-working/330361 "2023-04-20T09:00:11Z")

</div>

mapping { "jiankunking-dev": { "mappings": { "dynamic\_templates": \[ { "strings": { "match\_mapping\_type": "string", "mapping": { "type": "keyword" } } } \], "properti…

---

## [Schema optimization/alternative for nested objects](https://discuss.elastic.co/t/schema-optimization-alternative-for-nested-objects/329901)

<div class="topic-metadata">

**Author:** [@cbp698](https://discuss.elastic.co/u/cbp698)\
**Replies:** 5\
**Last updated:** [April 20, 2023, 8:56am UTC](https://discuss.elastic.co/t/schema-optimization-alternative-for-nested-objects/329901 "2023-04-20T08:56:06Z")

</div>

Hi, We are using Elastic search for storing product catalog in e-commerce domain. We have different prices in different regions for a given product. Every product belongs to certain category. Our query pattern is we s…

---

## [Does master node update cluster state document for upserts?](https://discuss.elastic.co/t/does-master-node-update-cluster-state-document-for-upserts/330365)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 8:24am UTC](https://discuss.elastic.co/t/does-master-node-update-cluster-state-document-for-upserts/330365 "2023-04-20T08:24:24Z")

</div>

So, I understand the master nodes updates cluster state documents when I create or delete an index. What if I just have one index ( I am not going to create or delete any other indices). and I constantly add data to this…

---

## [Nest.Time Casting Error](https://discuss.elastic.co/t/nest-time-casting-error/330364)

<div class="topic-metadata">

**Author:** [@LhamoDev](https://discuss.elastic.co/u/LhamoDev)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 8:21am UTC](https://discuss.elastic.co/t/nest-time-casting-error/330364 "2023-04-20T08:21:59Z")

</div>

Hi With the new Nest upgrade to 7.17, I'm getting this error Scroll = {"Unable to cast object of type 'System.TimeSpan' to type 'Nest.Time' On Client.Scrollall\<T\>(new ScrollAllRequest(\_halfminute, 5) {Search = query…

---

## [Limit index memory](https://discuss.elastic.co/t/limit-index-memory/330319)

<div class="topic-metadata">

**Author:** [@pabloochoa](https://discuss.elastic.co/u/pabloochoa)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 7:35am UTC](https://discuss.elastic.co/t/limit-index-memory/330319 "2023-04-20T07:35:46Z")

</div>

Don't know if this has already been asked, but I haven't been able to find either any question or documentation related to this issue. The thing is that I would like to limit the size of all the indeces of my Elastic, a…

---

## [Is there a way to find P95 search latency in elasticsearch?](https://discuss.elastic.co/t/is-there-a-way-to-find-p95-search-latency-in-elasticsearch/330356)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 6:44am UTC](https://discuss.elastic.co/t/is-there-a-way-to-find-p95-search-latency-in-elasticsearch/330356 "2023-04-20T06:44:17Z")

</div>

is there a way to find P95 latency in elasticsearch? If so, could you please share how I could do that?

---

## [Confirm force merging the index is running](https://discuss.elastic.co/t/confirm-force-merging-the-index-is-running/330189)

<div class="topic-metadata">

**Author:** [@ruslaniv](https://discuss.elastic.co/u/ruslaniv)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 5:09am UTC](https://discuss.elastic.co/t/confirm-force-merging-the-index-is-running/330189 "2023-04-20T05:09:18Z")

</div>

We are using a dense\_vector field for semantic search. Due to very slow performance on our index and based on several conversations here I decided to force\_merge the index to 1 segment. So it's been running asynchronous…

---

## [Query String with Wildcard not giving exact matches in the result set first](https://discuss.elastic.co/t/query-string-with-wildcard-not-giving-exact-matches-in-the-result-set-first/330106)

<div class="topic-metadata">

**Author:** [@Avin\_Pereira](https://discuss.elastic.co/u/Avin_Pereira)\
**Replies:** 7\
**Last updated:** [April 20, 2023, 4:02am UTC](https://discuss.elastic.co/t/query-string-with-wildcard-not-giving-exact-matches-in-the-result-set-first/330106 "2023-04-20T04:02:49Z")

</div>

If a Query is fired to Elastic Search as shown below GET purchase\_order/\_search { "query": { "query\_string": { "query": "\*HEAVENLUXE-SG23FEB2022\*", "fields": \[ "purchaseOrderNumber^4" \] …

---

## [Decrease score when field has additional values](https://discuss.elastic.co/t/decrease-score-when-field-has-additional-values/330341)

<div class="topic-metadata">

**Author:** [@MattG1](https://discuss.elastic.co/u/MattG1)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 3:38am UTC](https://discuss.elastic.co/t/decrease-score-when-field-has-additional-values/330341 "2023-04-20T03:38:52Z")

</div>

Hey, is it possible to decrease a score when a field has more values than is being matched for? const documents = \[ { id: 1, tags: \['a', 'b'\], }, { id: 2, tags: \['a'\], }, \]; const query = { bo…

---

## [Merge tokens (terms) after the tokenisation](https://discuss.elastic.co/t/merge-tokens-terms-after-the-tokenisation/330316)

<div class="topic-metadata">

**Author:** [@Ranjana](https://discuss.elastic.co/u/Ranjana)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 11:52pm UTC](https://discuss.elastic.co/t/merge-tokens-terms-after-the-tokenisation/330316 "2023-04-19T23:52:40Z")

</div>

Hi there, I am trying to find a solution to combine all tokens (terms) after tokenisation. for example - This analyser(my-analyser) produce n tokens after applying "custom\_stop" filter. Is there any way to combine all …

---

## [Getting compile error trying to access a field that include hyphens](https://discuss.elastic.co/t/getting-compile-error-trying-to-access-a-field-that-include-hyphens/330305)

<div class="topic-metadata">

**Author:** [@rorii](https://discuss.elastic.co/u/rorii)\
**Replies:** 2\
**Last updated:** [April 19, 2023, 10:27pm UTC](https://discuss.elastic.co/t/getting-compile-error-trying-to-access-a-field-that-include-hyphens/330305 "2023-04-19T22:27:34Z")

</div>

I have a painless script that I use in my watcher and I need to access a nested element but for some reason I am getting a compile error. I access the element in this way: hits.hits\[0\].\_source.getSomething.the-problema…

---

## [Use data view or direct index](https://discuss.elastic.co/t/use-data-view-or-direct-index/330239)

<div class="topic-metadata">

**Author:** [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Replies:** 7\
**Last updated:** [April 19, 2023, 9:22pm UTC](https://discuss.elastic.co/t/use-data-view-or-direct-index/330239 "2023-04-19T21:22:00Z")

</div>

I have 1000+ index myindex-\<date\>-00000x ( this is all rollover using ILM) in my REST calll should I use myindex-\* or use latest index by it's name like "myindex-\<date\>-00000x" most everytime I retrive data using @…

---

## [Can we extract the 7 days stored common value from the elastic search database and visulazize that information on kibana](https://discuss.elastic.co/t/can-we-extract-the-7-days-stored-common-value-from-the-elastic-search-database-and-visulazize-that-information-on-kibana/329883)

<div class="topic-metadata">

**Author:** [@Tanzeela](https://discuss.elastic.co/u/Tanzeela)\
**Replies:** 6\
**Last updated:** [April 19, 2023, 9:01pm UTC](https://discuss.elastic.co/t/can-we-extract-the-7-days-stored-common-value-from-the-elastic-search-database-and-visulazize-that-information-on-kibana/329883 "2023-04-19T21:01:19Z")

</div>

Hi @Andrew\_Tate , hope you are doing well. Can we write a query that will extract the common value that is stored in Elasticsearch for 7 days and create the visualisation for the extracted information? for example: da…

---

## [How to find difference between aggregate average and individual values](https://discuss.elastic.co/t/how-to-find-difference-between-aggregate-average-and-individual-values/330255)

<div class="topic-metadata">

**Author:** [@rahulkothanath](https://discuss.elastic.co/u/rahulkothanath)\
**Replies:** 0\
**Last updated:** [April 18, 2023, 10:56pm UTC](https://discuss.elastic.co/t/how-to-find-difference-between-aggregate-average-and-individual-values/330255 "2023-04-18T22:56:26Z")

</div>

I have a field "y" in the Elasticsearch index and I would like to find sum(y-y.avg) using aggregations for each person in my index. I am able to calculate y.avg for a person using the below query but need help in calcula…

---

## [Keyword search not behaving as expected](https://discuss.elastic.co/t/keyword-search-not-behaving-as-expected/330328)

<div class="topic-metadata">

**Author:** [@developer3124](https://discuss.elastic.co/u/developer3124)\
**Replies:** 4\
**Last updated:** [April 19, 2023, 7:06pm UTC](https://discuss.elastic.co/t/keyword-search-not-behaving-as-expected/330328 "2023-04-19T19:06:52Z")

</div>

Hello, I'm having an issue with keyword search not behaving how I would expect from the docs. I can see that the following document exists in my index: { "\_index": "my-index", "\_type": "\_doc", "\_id": …

---

## [ELK 7.6.2 Licensing](https://discuss.elastic.co/t/elk-7-6-2-licensing/330324)

<div class="topic-metadata">

**Author:** [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 5:07pm UTC](https://discuss.elastic.co/t/elk-7-6-2-licensing/330324 "2023-04-19T17:07:36Z")

</div>

Hello, We are using a very old version of ELK cluster 7.6.2 (with Basic license) in our environment. We plan to upgrade to the latest 8.6 version in future. With the 7.6.2 version in place we want to look into the pos…

---

## [Central Elastic Stack setup for a company with 10+ applications using Elasticsearch](https://discuss.elastic.co/t/central-elastic-stack-setup-for-a-company-with-10-applications-using-elasticsearch/329800)

<div class="topic-metadata">

**Author:** [@murat3](https://discuss.elastic.co/u/murat3)\
**Replies:** 7\
**Last updated:** [April 19, 2023, 5:03pm UTC](https://discuss.elastic.co/t/central-elastic-stack-setup-for-a-company-with-10-applications-using-elasticsearch/329800 "2023-04-19T17:03:57Z")

</div>

Hello all, I am trying to understand the setup of a (central) Elastic Stack cluster used by 10+ projects and 20+ applications. Our applications consist of frontend web and Java backend applications. One Cluster Is one…

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

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