# Elasticsearch

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

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

**Page:** 1349

---

## [Search timeout per role](https://discuss.elastic.co/t/search-timeout-per-role/174583)

<div class="topic-metadata">

**Author:** [@programagor](https://discuss.elastic.co/u/programagor)\
**Replies:** 1\
**Last updated:** [April 1, 2019, 4:26am UTC](https://discuss.elastic.co/t/search-timeout-per-role/174583 "2019-04-01T04:26:08Z")

</div>

Greetings Is it possible to use the Roles API to set the timeout parameter on a per-role basis? For example, I would like to restrict users belonging to a role generic\_user to making searches that take no longer than 1…

---

## [Elasticsearch delete past scroll](https://discuss.elastic.co/t/elasticsearch-delete-past-scroll/174696)

<div class="topic-metadata">

**Author:** [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-delete-past-scroll/174696 "2019-04-01T01:42:29Z")

</div>

hi :slight\_smile: I scroll through the entire index by scrolling by 10000 for file output. But at this time, I have difficulty setting the timeout time. I can not predict how long it will take. If i give it a long tim…

---

## [Do I need to update the mapping after updating the index template?](https://discuss.elastic.co/t/do-i-need-to-update-the-mapping-after-updating-the-index-template/174488)

<div class="topic-metadata">

**Author:** [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Replies:** 2\
**Last updated:** [April 1, 2019, 12:20am UTC](https://discuss.elastic.co/t/do-i-need-to-update-the-mapping-after-updating-the-index-template/174488 "2019-04-01T00:20:56Z")

</div>

Hi, I'm using weekly indeces and will soon have some data incoming that requires adding a few new fields. If I update the existing template and wait for the index to roll over to a new week before I start indexing data…

---

## [Time spent on "Query Phase", "Fetch Phase" etc for each and every search request](https://discuss.elastic.co/t/time-spent-on-query-phase-fetch-phase-etc-for-each-and-every-search-request/174693)

<div class="topic-metadata">

**Author:** [@manoj\_faria](https://discuss.elastic.co/u/manoj_faria)\
**Replies:** 0\
**Last updated:** [March 31, 2019, 10:38pm UTC](https://discuss.elastic.co/t/time-spent-on-query-phase-fetch-phase-etc-for-each-and-every-search-request/174693 "2019-03-31T22:38:26Z")

</div>

I do understand that each search request served by elasticsearch has a "query phase" and a "fetch phase". Is there a way in elasticsearch to log and report the following details for each and every query (not just the sl…

---

## [Plugin API - Response headers are not transient](https://discuss.elastic.co/t/plugin-api-response-headers-are-not-transient/173314)

<div class="topic-metadata">

**Author:** [@Simone\_Scarduzio](https://discuss.elastic.co/u/Simone_Scarduzio)\
**Replies:** 6\
**Last updated:** [March 31, 2019, 3:22pm UTC](https://discuss.elastic.co/t/plugin-api-response-headers-are-not-transient/173314 "2019-03-31T15:22:01Z")

</div>

From my Elasticsearch plugin, I want to set HTTP response headers. What I do is: threadPool.getThreadContext().addResponseHeader("header1","value1"); And this works, but when another request comes along, Elasticsearch…

---

## [Regarding Elasticsearch Migration between 2 clusters having same version](https://discuss.elastic.co/t/regarding-elasticsearch-migration-between-2-clusters-having-same-version/174561)

<div class="topic-metadata">

**Author:** [@shiveshabhishek](https://discuss.elastic.co/u/shiveshabhishek)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 7:49pm UTC](https://discuss.elastic.co/t/regarding-elasticsearch-migration-between-2-clusters-having-same-version/174561 "2019-03-29T19:49:40Z")

</div>

Hi there, I am trying to migrate my existing active elasticsearch cluster to newer one using snapshot/restore. But facing some problem. On restoring the indices for the first time, it is okay. When I try to restore new …

---

## [ElasticSearch (6.5) Java high level rest client - must(QueryBuilders.rangeQuery) and mustNot(QueryBuilders.existsQuery) cmbination not working](https://discuss.elastic.co/t/elasticsearch-6-5-java-high-level-rest-client-must-querybuilders-rangequery-and-mustnot-querybuilders-existsquery-cmbination-not-working/174641)

<div class="topic-metadata">

**Author:** [@Aswini\_Kumar\_Rout](https://discuss.elastic.co/u/Aswini_Kumar_Rout)\
**Replies:** 18\
**Last updated:** [March 31, 2019, 3:06pm UTC](https://discuss.elastic.co/t/elasticsearch-6-5-java-high-level-rest-client-must-querybuilders-rangequery-and-mustnot-querybuilders-existsquery-cmbination-not-working/174641 "2019-03-31T15:06:51Z")

</div>

I want to have following filter with elasticsearch (java high level rest client): If publish\_date exists and lower than now If publish\_end\_date exists and greater than now I already have following but it doesn't show …

---

## [Query randomly returns empty and right results](https://discuss.elastic.co/t/query-randomly-returns-empty-and-right-results/174673)

<div class="topic-metadata">

**Author:** [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Replies:** 3\
**Last updated:** [March 31, 2019, 2:31pm UTC](https://discuss.elastic.co/t/query-randomly-returns-empty-and-right-results/174673 "2019-03-31T14:31:09Z")

</div>

Elasticsearch 5.6.5. 2 data nodes + 1 index node and 2 shards for each index. For the same query http://localhost:9200/indexname-2019.03/\_search?q=\_id:1990868144 Every time I run it I get different result: First time…

---

## [Elastic Search Warm Node Issue](https://discuss.elastic.co/t/elastic-search-warm-node-issue/174666)

<div class="topic-metadata">

**Author:** [@sagar\_arora1](https://discuss.elastic.co/u/sagar_arora1)\
**Replies:** 4\
**Last updated:** [March 31, 2019, 10:57am UTC](https://discuss.elastic.co/t/elastic-search-warm-node-issue/174666 "2019-03-31T10:57:24Z")

</div>

Hi Folks, Its been almost 3 months i am struggling with issue with my warm node, cluster architecture and issue is described below : Architecture : 3 Master Nodes ,5 Hot data nodes, 2 Warm Nodes (Spinning Disk) , 1 co…

---

## [Elastic Search Index Name Issue](https://discuss.elastic.co/t/elastic-search-index-name-issue/174656)

<div class="topic-metadata">

**Author:** [@code\_blue](https://discuss.elastic.co/u/code_blue)\
**Replies:** 1\
**Last updated:** [March 31, 2019, 8:52am UTC](https://discuss.elastic.co/t/elastic-search-index-name-issue/174656 "2019-03-31T08:52:57Z")

</div>

We have an index in the format "app-service-log". There are no aliases defined on the index. When I try to create another index with the name "app-service-log1" it is throwing an invalid alias name exception Invalid al…

---

## [Low level operations during \_delete\_by\_query](https://discuss.elastic.co/t/low-level-operations-during-delete-by-query/174660)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar3](https://discuss.elastic.co/u/Rahul_Kumar3)\
**Replies:** 3\
**Last updated:** [March 31, 2019, 7:32am UTC](https://discuss.elastic.co/t/low-level-operations-during-delete-by-query/174660 "2019-03-31T07:32:40Z")

</div>

What are the sequence of low-level operations that happens during the execution of \_delete\_by\_query operation? On a high-level \_delete\_by\_query operates as follows: Multiple search requests are sequentially executed in…

---

## [Importing large JSON into Elasticsearch](https://discuss.elastic.co/t/importing-large-json-into-elasticsearch/174644)

<div class="topic-metadata">

**Author:** [@jbpeter](https://discuss.elastic.co/u/jbpeter)\
**Replies:** 1\
**Last updated:** [March 30, 2019, 4:55pm UTC](https://discuss.elastic.co/t/importing-large-json-into-elasticsearch/174644 "2019-03-30T16:55:17Z")

</div>

I am trying to import a large JSON file which contains millions of records and a file size of about 10GB. I wonder what is the best way to do this? The dataset is available here: https://opentender.eu/all/download I in…

---

## [Cross Cluster Replication - Active/Active?](https://discuss.elastic.co/t/cross-cluster-replication-active-active/128198)

<div class="topic-metadata">

**Author:** [@HBSequence](https://discuss.elastic.co/u/HBSequence)\
**Replies:** 7\
**Last updated:** [March 30, 2019, 12:49pm UTC](https://discuss.elastic.co/t/cross-cluster-replication-active-active/128198 "2019-03-30T12:49:24Z")

</div>

Hello. We need to create two Elasticsearch clusters, with each cluster in a different date centre. The data in the clusters will be accessed by users in an active/active manner, with traffic being balanced across the dat…

---

## [State of cross-datacenter replication](https://discuss.elastic.co/t/state-of-cross-datacenter-replication/139136)

<div class="topic-metadata">

**Author:** [@tier](https://discuss.elastic.co/u/tier)\
**Replies:** 2\
**Last updated:** [March 30, 2019, 12:49pm UTC](https://discuss.elastic.co/t/state-of-cross-datacenter-replication/139136 "2019-03-30T12:49:06Z")

</div>

I am working for a company that needs cross-datacenter replication (Europe, Asia, US) with Elasticsearch clusters. What I found so far is that it is not recommended. A requirement for replication across high latency net…

---

## [SSL issue when node tries connection to master in elasticsearch cluster-SOLVED](https://discuss.elastic.co/t/ssl-issue-when-node-tries-connection-to-master-in-elasticsearch-cluster-solved/174431)

<div class="topic-metadata">

**Author:** [@dragan979](https://discuss.elastic.co/u/dragan979)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 6:03am UTC](https://discuss.elastic.co/t/ssl-issue-when-node-tries-connection-to-master-in-elasticsearch-cluster-solved/174431 "2019-03-29T06:03:38Z")

</div>

I used SearchGuard to encrypt nodes in ElasticSearch cluster Master: cluster.name: client1 searchguard.enterprise\_modules\_enabled: false node.name: ekl.test.com node.master: true node.data: true node.ingest: true …

---

## [Coordinating node](https://discuss.elastic.co/t/coordinating-node/174555)

<div class="topic-metadata">

**Author:** [@jast](https://discuss.elastic.co/u/jast)\
**Replies:** 5\
**Last updated:** [March 30, 2019, 8:00am UTC](https://discuss.elastic.co/t/coordinating-node/174555 "2019-03-30T08:00:12Z")

</div>

Hi, I need help/advise to build my elasticsearch cluster with a coordinating node, I have the following Server A - MasterData Node cluster.name: soc-stage node.name: es-serverA path.data: /var/lib/elasticsearch p…

---

## [Elasticsearch delete\_by\_query 409 version conflict](https://discuss.elastic.co/t/elasticsearch-delete-by-query-409-version-conflict/174150)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar3](https://discuss.elastic.co/u/Rahul_Kumar3)\
**Replies:** 8\
**Last updated:** [March 30, 2019, 7:48am UTC](https://discuss.elastic.co/t/elasticsearch-delete-by-query-409-version-conflict/174150 "2019-03-30T07:48:50Z")

</div>

According to ES documentation document indexing/deletion happens as follows: Request received at one of the nodes. Request forwarded to the document's primary shard. The operation performed on the primary shard and par…

---

## [Unable to create a new snapshot](https://discuss.elastic.co/t/unable-to-create-a-new-snapshot/174621)

<div class="topic-metadata">

**Author:** [@vamehta](https://discuss.elastic.co/u/vamehta)\
**Replies:** 1\
**Last updated:** [March 30, 2019, 6:02am UTC](https://discuss.elastic.co/t/unable-to-create-a-new-snapshot/174621 "2019-03-30T06:02:51Z")

</div>

We are running 5.6.14 with 3 master and 8 data nodes. For some reason I am not able to create a new snapshot. I see this is one of the master node logs: \[2019-03-29T20:13:51,535\]\[WARN \]\[o.e.s.SnapshotsService \] \[hostn…

---

## [To which IP (in cluster of 6 nodes) my Application will send request to index data in elasticsearch](https://discuss.elastic.co/t/to-which-ip-in-cluster-of-6-nodes-my-application-will-send-request-to-index-data-in-elasticsearch/174314)

<div class="topic-metadata">

**Author:** [@masifpak](https://discuss.elastic.co/u/masifpak)\
**Replies:** 4\
**Last updated:** [March 30, 2019, 5:22am UTC](https://discuss.elastic.co/t/to-which-ip-in-cluster-of-6-nodes-my-application-will-send-request-to-index-data-in-elasticsearch/174314 "2019-03-30T05:22:22Z")

</div>

We have a cluster of 3 Master and 3 Data nodes. All nodes have IP addresses. To which IP my Application will send request to index data.

---

## [Struggling to get elastic running on k8](https://discuss.elastic.co/t/struggling-to-get-elastic-running-on-k8/174595)

<div class="topic-metadata">

**Author:** [@ethrbunny](https://discuss.elastic.co/u/ethrbunny)\
**Replies:** 3\
**Last updated:** [March 30, 2019, 4:53am UTC](https://discuss.elastic.co/t/struggling-to-get-elastic-running-on-k8/174595 "2019-03-30T04:53:17Z")

</div>

For the last year Ive been running elastic on a single host as a POC of sorts. Runs great but is out of disk space. It certainly keeps up with any load that I throw at it. 24 cores 64 Gb RAM Recently I received 5 shin…

---

## [Securing remote cluster connections using SearchGuard-SOLVED](https://discuss.elastic.co/t/securing-remote-cluster-connections-using-searchguard-solved/174515)

<div class="topic-metadata">

**Author:** [@dragan979](https://discuss.elastic.co/u/dragan979)\
**Replies:** 5\
**Last updated:** [March 30, 2019, 12:13am UTC](https://discuss.elastic.co/t/securing-remote-cluster-connections-using-searchguard-solved/174515 "2019-03-30T00:13:28Z")

</div>

Complete question: https://stackoverflow.com/questions/55413997/search-guard-connect-to-remote-elasticsearch-cluster-using-ssl Local and remote clusters have SSL enabled, same root CA. is this possible to connect them …

---

## [S3 Repository Plugin Snapshot Endpoint Does Not Show Progress](https://discuss.elastic.co/t/s3-repository-plugin-snapshot-endpoint-does-not-show-progress/174581)

<div class="topic-metadata">

**Author:** [@stockhausenj](https://discuss.elastic.co/u/stockhausenj)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 5:02pm UTC](https://discuss.elastic.co/t/s3-repository-plugin-snapshot-endpoint-does-not-show-progress/174581 "2019-03-29T17:02:22Z")

</div>

Elasticsearch 6.6 Duration metric looks invalid. End time looks invalid. Not sure what would cause this. When I look at the S3 bucket I can see data coming in from this snapshot. Snapshot repository: { "type": "s3", …

---

## [Join fields in script](https://discuss.elastic.co/t/join-fields-in-script/174271)

<div class="topic-metadata">

**Author:** [@Aude\_Front](https://discuss.elastic.co/u/Aude_Front)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 5:19pm UTC](https://discuss.elastic.co/t/join-fields-in-script/174271 "2019-03-29T17:19:48Z")

</div>

Hi! Our index has a join field (parent documents with many child items). We would like to make a search on child items, with a filter that use some information from the parent document. Is it possible to access parent …

---

## [Improving query scoring on partial matches](https://discuss.elastic.co/t/improving-query-scoring-on-partial-matches/174559)

<div class="topic-metadata">

**Author:** [@SmashingQuasar](https://discuss.elastic.co/u/SmashingQuasar)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 3:17pm UTC](https://discuss.elastic.co/t/improving-query-scoring-on-partial-matches/174559 "2019-03-29T15:17:58Z")

</div>

Hey! I'm sorry if this has already been answered but I couldn't find it anywhere. I'm currently working on a product search engine for a customer. Right now I'm on a pretty good spot but there is one thing I would lik…

---

## [How to check number of threads used for indexing in Elasticsearch?](https://discuss.elastic.co/t/how-to-check-number-of-threads-used-for-indexing-in-elasticsearch/174513)

<div class="topic-metadata">

**Author:** [@suvarna](https://discuss.elastic.co/u/suvarna)\
**Replies:** 3\
**Last updated:** [March 29, 2019, 2:51pm UTC](https://discuss.elastic.co/t/how-to-check-number-of-threads-used-for-indexing-in-elasticsearch/174513 "2019-03-29T14:51:47Z")

</div>

Hi My system having 28 cores and 112 cpus. How to check the number of threads used for indexing in Elasticsearch to enable the parallelism. How to check the number of threads used for merging in Elaticsearch. Please…

---

## [Designing index for products with many variants](https://discuss.elastic.co/t/designing-index-for-products-with-many-variants/174547)

<div class="topic-metadata">

**Author:** [@mortenbock](https://discuss.elastic.co/u/mortenbock)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 2:06pm UTC](https://discuss.elastic.co/t/designing-index-for-products-with-many-variants/174547 "2019-03-29T14:06:27Z")

</div>

For a product search, I would like to return a list of products, and display the best matching variant from that product. My idea is to index the list of variants as a nested property on the product, and the use the inn…

---

## [I can not use geo\_point latitude longitude from my spring application](https://discuss.elastic.co/t/i-can-not-use-geo-point-latitude-longitude-from-my-spring-application/173995)

<div class="topic-metadata">

**Author:** [@Ulpcan](https://discuss.elastic.co/u/Ulpcan)\
**Replies:** 1\
**Last updated:** [March 29, 2019, 1:58pm UTC](https://discuss.elastic.co/t/i-can-not-use-geo-point-latitude-longitude-from-my-spring-application/173995 "2019-03-29T13:58:49Z")

</div>

I want to create index in ElasticSearch with configuration. I want to use geo distance query in elasticSearch I have a java class and I am using GeoPoint object that ElasticSearch has and which is from: org.elasticsearc…

---

## [Term aggregation not returning all unique values](https://discuss.elastic.co/t/term-aggregation-not-returning-all-unique-values/174291)

<div class="topic-metadata">

**Author:** [@srikanthkadem](https://discuss.elastic.co/u/srikanthkadem)\
**Replies:** 6\
**Last updated:** [March 29, 2019, 1:50pm UTC](https://discuss.elastic.co/t/term-aggregation-not-returning-all-unique-values/174291 "2019-03-29T13:50:06Z")

</div>

Hi , I am using Term Aggregations to get unique values for fields to show them as filters. however I am not getting all the results from ES. code . GET /\_search { "aggs" : { "genres" : { "terms" : { "field" : "TEST\_Co…

---

## [Azure snapshot type is missing](https://discuss.elastic.co/t/azure-snapshot-type-is-missing/174179)

<div class="topic-metadata">

**Author:** [@Larry\_Wapnitsky](https://discuss.elastic.co/u/Larry_Wapnitsky)\
**Replies:** 4\
**Last updated:** [March 28, 2019, 8:29pm UTC](https://discuss.elastic.co/t/azure-snapshot-type-is-missing/174179 "2019-03-28T20:29:21Z")

</div>

I've installed the Azure repository plugin for 6.7, and configured a blob for it to write to. The directions at https://www.elastic.co/guide/en/elasticsearch/plugins/6.7/repository-azure.html have been followed, but I'm …

---

## [Unassigned shards cluster\_recovered](https://discuss.elastic.co/t/unassigned-shards-cluster-recovered/171755)

<div class="topic-metadata">

**Author:** [@pjayramkumar](https://discuss.elastic.co/u/pjayramkumar)\
**Replies:** 34\
**Last updated:** [March 29, 2019, 12:44pm UTC](https://discuss.elastic.co/t/unassigned-shards-cluster-recovered/171755 "2019-03-29T12:44:49Z")

</div>

unassigned shards cluster\_recovered i am using elasticsearch 6.1 i have each indices number\_of\_shards : 2 number\_of\_replicas : 3 i have checked the memory and storege everything look ok

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

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