# Elasticsearch

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

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

**Page:** 597

---

## [How can we populate from different index using reference id stored in main index as in Mongodb](https://discuss.elastic.co/t/how-can-we-populate-from-different-index-using-reference-id-stored-in-main-index-as-in-mongodb/279724)

<div class="topic-metadata">

**Author:** [@singhrohitdangi](https://discuss.elastic.co/u/singhrohitdangi)\
**Replies:** 5\
**Last updated:** [August 8, 2021, 6:30pm UTC](https://discuss.elastic.co/t/how-can-we-populate-from-different-index-using-reference-id-stored-in-main-index-as-in-mongodb/279724 "2021-08-08T18:30:32Z")

</div>

Hi, Actually, I am a beginner at elastic. I want to use elastic for a music app so we can assume all the possible entities of a music app i.e Spotify. I have a doubt that can we populate from the second index (assume=\> …

---

## [Tokenizer works after Synonym (graph) token filter too?](https://discuss.elastic.co/t/tokenizer-works-after-synonym-graph-token-filter-too/280297)

<div class="topic-metadata">

**Author:** [@taichi](https://discuss.elastic.co/u/taichi)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 4:21pm UTC](https://discuss.elastic.co/t/tokenizer-works-after-synonym-graph-token-filter-too/280297 "2021-08-08T16:21:36Z")

</div>

I'm using Elasticsearch 7.7 on AWS Elasticsearch Service. I thought token filters works after tokenizers and tokenizers do nothing after token filters. (like Tokenizers = \> Token filters =\> END) But it seems tokenizer…

---

## [Can I install ELastic Search twice as a windows service?](https://discuss.elastic.co/t/can-i-install-elastic-search-twice-as-a-windows-service/280022)

<div class="topic-metadata">

**Author:** [@mhare](https://discuss.elastic.co/u/mhare)\
**Replies:** 10\
**Last updated:** [August 8, 2021, 3:22pm UTC](https://discuss.elastic.co/t/can-i-install-elastic-search-twice-as-a-windows-service/280022 "2021-08-08T15:22:00Z")

</div>

For reasons that may be uninteresting to many, I find myself needing to run two instances of ElasticSearch on the same Windows machine. I have unzipped the 7.13.4 archive into two separate directories and set them up and…

---

## [Data nodes left cluster](https://discuss.elastic.co/t/data-nodes-left-cluster/280725)

<div class="topic-metadata">

**Author:** [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Replies:** 1\
**Last updated:** [August 8, 2021, 3:01pm UTC](https://discuss.elastic.co/t/data-nodes-left-cluster/280725 "2021-08-08T15:01:38Z")

</div>

Today i noticed that two data nodes left the cluster although disk ,cpu,ram was fine but i can't find the reason in log Currently i am using latest version ELK 7.13.2.I am running 3 master nodes plus 6 data nodes and 2 …

---

## [Regexp containing double quotes](https://discuss.elastic.co/t/regexp-containing-double-quotes/280662)

<div class="topic-metadata">

**Author:** [@Olaph](https://discuss.elastic.co/u/Olaph)\
**Replies:** 2\
**Last updated:** [August 7, 2021, 7:12pm UTC](https://discuss.elastic.co/t/regexp-containing-double-quotes/280662 "2021-08-07T19:12:49Z")

</div>

Hello, I am trying to search values that contains numbers or numbers in a quotes (no other character types except whitespaces). I was not able to use double-quotes character in character class. I have tried both \\" and…

---

## [Elasticsearch 7.14 fails to start on Ubuntu 20.04](https://discuss.elastic.co/t/elasticsearch-7-14-fails-to-start-on-ubuntu-20-04/280705)

<div class="topic-metadata">

**Author:** [@theonlycharithperera](https://discuss.elastic.co/u/theonlycharithperera)\
**Replies:** 2\
**Last updated:** [August 7, 2021, 11:56am UTC](https://discuss.elastic.co/t/elasticsearch-7-14-fails-to-start-on-ubuntu-20-04/280705 "2021-08-07T11:56:53Z")

</div>

When I first installed it using apt-get everything went smoothly and I was able to start it as a service and verified it was working by using curl: Later I noticed that it was using a lot of memory (2GB), so I stopped t…

---

## [Compress elasticsearch bulkrequest using java high level rest client and bulk processor](https://discuss.elastic.co/t/compress-elasticsearch-bulkrequest-using-java-high-level-rest-client-and-bulk-processor/280425)

<div class="topic-metadata">

**Author:** [@Praveen\_Atluri](https://discuss.elastic.co/u/Praveen_Atluri)\
**Replies:** 7\
**Last updated:** [August 6, 2021, 9:32pm UTC](https://discuss.elastic.co/t/compress-elasticsearch-bulkrequest-using-java-high-level-rest-client-and-bulk-processor/280425 "2021-08-06T21:32:36Z")

</div>

Is there anyway to compress the elasticsearch bulk request payload using java high level rest client and bulk processor? I have tried below requestConfigBuilder.setContentCompressionEnabled(true); But it do…

---

## [Attach a label to ES query so that to distinguish between the multiple responses](https://discuss.elastic.co/t/attach-a-label-to-es-query-so-that-to-distinguish-between-the-multiple-responses/280683)

<div class="topic-metadata">

**Author:** [@NLSVTN](https://discuss.elastic.co/u/NLSVTN)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 8:42pm UTC](https://discuss.elastic.co/t/attach-a-label-to-es-query-so-that-to-distinguish-between-the-multiple-responses/280683 "2021-08-06T20:42:51Z")

</div>

Hi, I am issuing multiple queries (MultiSearch in python Elasticsearch DSL) for ES index and I need a way to set a label 'type' (which could be one of several values) for each query, so that it would be present in the r…

---

## [Elasticsearch NodeJS client shows inaccessible node as alive](https://discuss.elastic.co/t/elasticsearch-nodejs-client-shows-inaccessible-node-as-alive/280664)

<div class="topic-metadata">

**Author:** [@anishsana](https://discuss.elastic.co/u/anishsana)\
**Replies:** 0\
**Last updated:** [August 6, 2021, 3:21pm UTC](https://discuss.elastic.co/t/elasticsearch-nodejs-client-shows-inaccessible-node-as-alive/280664 "2021-08-06T15:21:20Z")

</div>

I have a simple function in NodeJS which creates an Elasticsearch client with a cluster of nodes and returns one of the node URLs that is active: // Elastic cluster nodes const ELASTIC\_CLUSTER\_NODES = \[ 'http://node…

---

## [Performance of Elasticsearch for number of documents vs number of properties in a document](https://discuss.elastic.co/t/performance-of-elasticsearch-for-number-of-documents-vs-number-of-properties-in-a-document/280497)

<div class="topic-metadata">

**Author:** [@firabby](https://discuss.elastic.co/u/firabby)\
**Replies:** 3\
**Last updated:** [August 6, 2021, 3:55pm UTC](https://discuss.elastic.co/t/performance-of-elasticsearch-for-number-of-documents-vs-number-of-properties-in-a-document/280497 "2021-08-06T15:55:50Z")

</div>

I want to store timeseries data in elasticsearch. But I am not sure how I should model the document. Let's say, the document looks like this. { "timestamp": "iso 8601 date time", "common\_property1": "value", "common\_pr…

---

## [Kibana not starting up after enabling https (Single node) , seems to be missing credentials?](https://discuss.elastic.co/t/kibana-not-starting-up-after-enabling-https-single-node-seems-to-be-missing-credentials/280659)

<div class="topic-metadata">

**Author:** [@Shreesh\_Narayanan](https://discuss.elastic.co/u/Shreesh_Narayanan)\
**Replies:** 4\
**Last updated:** [August 6, 2021, 3:48pm UTC](https://discuss.elastic.co/t/kibana-not-starting-up-after-enabling-https-single-node-seems-to-be-missing-credentials/280659 "2021-08-06T15:48:32Z")

</div>

Hello, I'm using Kibana 7.14 and had enabled https recently . All the services logstash and elasticsearch start up successfully while kibana fails . I had been looking at the kibana logs and they show this {"type":"log…

---

## [Elastic rejected execution of coordinating operation](https://discuss.elastic.co/t/elastic-rejected-execution-of-coordinating-operation/280656)

<div class="topic-metadata">

**Author:** [@mug3n451](https://discuss.elastic.co/u/mug3n451)\
**Replies:** 0\
**Last updated:** [August 6, 2021, 2:39pm UTC](https://discuss.elastic.co/t/elastic-rejected-execution-of-coordinating-operation/280656 "2021-08-06T14:39:29Z")

</div>

Hi, i have a problem with elasticsearch on kubernetes. here the problem: "current\_state" : "unassigned", "unassigned\_info" : { "reason" : "ALLOCATION\_FAILED", "at" : "2021-08-06T14:28:31.995Z", "failed\_al…

---

## [Questions Regarding Deleting Source Data After Transform](https://discuss.elastic.co/t/questions-regarding-deleting-source-data-after-transform/279353)

<div class="topic-metadata">

**Author:** [@Ashfur](https://discuss.elastic.co/u/Ashfur)\
**Replies:** 5\
**Last updated:** [August 6, 2021, 2:23pm UTC](https://discuss.elastic.co/t/questions-regarding-deleting-source-data-after-transform/279353 "2021-08-06T14:23:42Z")

</div>

From what I read from the other posts, if we are running a continuous transform, we should not delete any data from the source index as that will trigger the transform to re-compute and the deleted records will no longer…

---

## [Update by query for each field with value by sql query](https://discuss.elastic.co/t/update-by-query-for-each-field-with-value-by-sql-query/280192)

<div class="topic-metadata">

**Author:** [@Rammi22](https://discuss.elastic.co/u/Rammi22)\
**Replies:** 5\
**Last updated:** [August 6, 2021, 11:14am UTC](https://discuss.elastic.co/t/update-by-query-for-each-field-with-value-by-sql-query/280192 "2021-08-06T11:14:17Z")

</div>

Hello, following task: get each document one by one from elasticserach server add field to document with value stored in a database (MariaDB) The \_id of the document is the reference to its record in the database: I…

---

## [Index vs Update](https://discuss.elastic.co/t/index-vs-update/280637)

<div class="topic-metadata">

**Author:** [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 10:27am UTC](https://discuss.elastic.co/t/index-vs-update/280637 "2021-08-06T10:27:08Z")

</div>

Hello I'd like to ask the same question again raised here: What's the benefit of the Update API (POST /\_update) vs Index (PUT /\_doc). As far as I can see Update (with doc\_as\_upsert: true) is identical in effect to Inde…

---

## [How to query for a documents based on the type of a field?](https://discuss.elastic.co/t/how-to-query-for-a-documents-based-on-the-type-of-a-field/280620)

<div class="topic-metadata">

**Author:** [@k1b](https://discuss.elastic.co/u/k1b)\
**Replies:** 0\
**Last updated:** [August 6, 2021, 7:59am UTC](https://discuss.elastic.co/t/how-to-query-for-a-documents-based-on-the-type-of-a-field/280620 "2021-08-06T07:59:02Z")

</div>

I have a geoip.loc field, of type geo\_point. A few documents accidentally got added into the index with this field as (a pair of) float, which is now causing a mapping conflict. I'd like to query for these few document…

---

## [2 node elasticsearch cluster for production like environment](https://discuss.elastic.co/t/2-node-elasticsearch-cluster-for-production-like-environment/280595)

<div class="topic-metadata">

**Author:** [@cool999](https://discuss.elastic.co/u/cool999)\
**Replies:** 4\
**Last updated:** [August 6, 2021, 7:26am UTC](https://discuss.elastic.co/t/2-node-elasticsearch-cluster-for-production-like-environment/280595 "2021-08-06T07:26:18Z")

</div>

Hi Team, From below document, I am trying to find if I can use 2 node cluster for production like environment. I know 3 node cluster is always better choice. link above says, if you create 2 node es cluster, then mak…

---

## [Setting up 2-Node cluster on local network](https://discuss.elastic.co/t/setting-up-2-node-cluster-on-local-network/280608)

<div class="topic-metadata">

**Author:** [@nyinyithann](https://discuss.elastic.co/u/nyinyithann)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 5:48am UTC](https://discuss.elastic.co/t/setting-up-2-node-cluster-on-local-network/280608 "2021-08-06T05:48:39Z")

</div>

Hi, I am trying to setup 2-node cluster on local network - one node on mac and the other on ubuntu. I am able to connect the node on mac from ubuntu and vice versa. But I see only one node in cluster at all time. I w…

---

## [Elastic Agent Prometheus integration stopped working in 7.14](https://discuss.elastic.co/t/elastic-agent-prometheus-integration-stopped-working-in-7-14/280602)

<div class="topic-metadata">

**Author:** [@hilt86](https://discuss.elastic.co/u/hilt86)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 12:33am UTC](https://discuss.elastic.co/t/elastic-agent-prometheus-integration-stopped-working-in-7-14/280602 "2021-08-06T00:33:24Z")

</div>

Since v 7.14 my prometheus integration seems to have stopped working. I'm using the api/v1/query endpoint of Prometheus and can poll it using curl but the integration seems to have stopped working... This is in the logs…

---

## [Adding fields to a filter context](https://discuss.elastic.co/t/adding-fields-to-a-filter-context/280356)

<div class="topic-metadata">

**Author:** [@jjammin92](https://discuss.elastic.co/u/jjammin92)\
**Replies:** 4\
**Last updated:** [August 5, 2021, 10:04pm UTC](https://discuss.elastic.co/t/adding-fields-to-a-filter-context/280356 "2021-08-05T22:04:29Z")

</div>

Hello, I'm working on a filter query to speed up some searches but I only want to return certain fields. I've been running into some issues adding the fields I want to display to my query. This is what I have working: …

---

## [What is the meaning of "hits.total" in an aggregate search query?](https://discuss.elastic.co/t/what-is-the-meaning-of-hits-total-in-an-aggregate-search-query/280600)

<div class="topic-metadata">

**Author:** [@chrisan](https://discuss.elastic.co/u/chrisan)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 9:42pm UTC](https://discuss.elastic.co/t/what-is-the-meaning-of-hits-total-in-an-aggregate-search-query/280600 "2021-08-05T21:42:45Z")

</div>

I found this Is hits.total limited by max\_results\_window? - #3 which says hits shouldnt be limited However, I have the following query # POST /assets/\_search { "size": 0, "query": { "bool": { "must": \[ …

---

## [Daily index not created](https://discuss.elastic.co/t/daily-index-not-created/280315)

<div class="topic-metadata">

**Author:** [@cool999](https://discuss.elastic.co/u/cool999)\
**Replies:** 8\
**Last updated:** [August 5, 2021, 9:42pm UTC](https://discuss.elastic.co/t/daily-index-not-created/280315 "2021-08-05T21:42:31Z")

</div>

Hi Team, On my single test server with 8G of RAM (1955m to JVM) having es v 7.4, I have 12 application indices + few system indices like (.monitoring-es-7-2021.08.02, .monitoring-logstash-7-2021.08.02, .monitoring-kiba…

---

## [Snapshot does not exist during migration](https://discuss.elastic.co/t/snapshot-does-not-exist-during-migration/280596)

<div class="topic-metadata">

**Author:** [@iceman](https://discuss.elastic.co/u/iceman)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 8:19pm UTC](https://discuss.elastic.co/t/snapshot-does-not-exist-during-migration/280596 "2021-08-05T20:19:45Z")

</div>

hi all, I want to migrate all the data from one k8s cluster to another , ES ver 7.10.1. So first I created successful snapshot on the first cluster: \[elasticsearch@es backup\]$ curl -X PUT "localhost:9200/\_snapshot/bac…

---

## [Query latency increase when upgrading from 7.10.2](https://discuss.elastic.co/t/query-latency-increase-when-upgrading-from-7-10-2/280585)

<div class="topic-metadata">

**Author:** [@BS1](https://discuss.elastic.co/u/BS1)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 7:02pm UTC](https://discuss.elastic.co/t/query-latency-increase-when-upgrading-from-7-10-2/280585 "2021-08-05T19:02:21Z")

</div>

We have been running Elasticsearch 7.10.2 for a while in a production setting now, serving thousands of requests per second across 10 separate clusters. Our clusters are all in AWS on ec2 hosts. A coupe of months back we…

---

## [Suggestion for wildcard field type](https://discuss.elastic.co/t/suggestion-for-wildcard-field-type/280553)

<div class="topic-metadata">

**Author:** [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Replies:** 5\
**Last updated:** [August 5, 2021, 6:14pm UTC](https://discuss.elastic.co/t/suggestion-for-wildcard-field-type/280553 "2021-08-05T18:14:22Z")

</div>

Hello, We need to do a lot of (front) wildcard queries on certain fields. One such field is url.original. Currently this is mapped in ECS as keyword. I'm wondering if this could be changed to wildcard field type? For e…

---

## [Getting Issue while query Elasticsearch having kstem with edge gram in filter](https://discuss.elastic.co/t/getting-issue-while-query-elasticsearch-having-kstem-with-edge-gram-in-filter/280555)

<div class="topic-metadata">

**Author:** [@rai](https://discuss.elastic.co/u/rai)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 4:04pm UTC](https://discuss.elastic.co/t/getting-issue-while-query-elasticsearch-having-kstem-with-edge-gram-in-filter/280555 "2021-08-05T16:04:43Z")

</div>

Pass complete addressline1 as input with match query unable to find the record because of kstem. We have kstem, lower, edge gram and synonym filter applied on addressline1 field, While creating the index. for an exampl…

---

## [Debugging elasticsearch plugins](https://discuss.elastic.co/t/debugging-elasticsearch-plugins/280550)

<div class="topic-metadata">

**Author:** [@alinux](https://discuss.elastic.co/u/alinux)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 3:23pm UTC](https://discuss.elastic.co/t/debugging-elasticsearch-plugins/280550 "2021-08-05T15:23:16Z")

</div>

Hi, i need to made some custom changes on repository-s3 plugin. In Intellij I started elasticsearch in debug mode with gradle command ./gradlew run --debug-jvm after elasticsearch is runnig there no plugins are loaded…

---

## [Failed to establish trust communication between es01, es02 and kibana](https://discuss.elastic.co/t/failed-to-establish-trust-communication-between-es01-es02-and-kibana/277654)

<div class="topic-metadata">

**Author:** [@Trueman](https://discuss.elastic.co/u/Trueman)\
**Replies:** 7\
**Last updated:** [August 5, 2021, 9:58am UTC](https://discuss.elastic.co/t/failed-to-establish-trust-communication-between-es01-es02-and-kibana/277654 "2021-08-05T09:58:29Z")

</div>

Hello, I'm trying to configure TLS between es01, es02 and kibana (docker containers) with certificates from certificate chain \[CA\_cert - Intermediate\_cert - Server\_cert\]. Below you can see the excerpt of the yml file whe…

---

## [Delay in response after using function\_score for sorting of documents according to field match](https://discuss.elastic.co/t/delay-in-response-after-using-function-score-for-sorting-of-documents-according-to-field-match/280113)

<div class="topic-metadata">

**Author:** [@AshuCh](https://discuss.elastic.co/u/AshuCh)\
**Replies:** 0\
**Last updated:** [July 31, 2021, 6:09am UTC](https://discuss.elastic.co/t/delay-in-response-after-using-function-score-for-sorting-of-documents-according-to-field-match/280113 "2021-07-31T06:09:55Z")

</div>

When using function\_score to sort the document on base of score response is taking too much time to come it's in minutes. The problem is I need sorting according to fields. When using boost not getting the relevant data. …

---

## [Use another document's value for script\_score computation](https://discuss.elastic.co/t/use-another-documents-value-for-script-score-computation/280511)

<div class="topic-metadata">

**Author:** [@SatyaAditya](https://discuss.elastic.co/u/SatyaAditya)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 8:44am UTC](https://discuss.elastic.co/t/use-another-documents-value-for-script-score-computation/280511 "2021-08-05T08:44:39Z")

</div>

Hi, Is there a way to use a different document's field value in the script\_Score query? My use-case is I have a query which is asked by multiple users and count of the query asked by the user in this way { "…

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

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