# Elasticsearch

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

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

**Page:** 1846

---

## [How To export selected type elasticsearch from server A to server B](https://discuss.elastic.co/t/how-to-export-selected-type-elasticsearch-from-server-a-to-server-b/111746)

<div class="topic-metadata">

**Author:** [@Sharon\_wsf](https://discuss.elastic.co/u/Sharon_wsf)\
**Replies:** 3\
**Last updated:** [December 22, 2017, 3:20pm UTC](https://discuss.elastic.co/t/how-to-export-selected-type-elasticsearch-from-server-a-to-server-b/111746 "2017-12-22T15:20:12Z")

</div>

Hi Team, my version elasticsearch is 2.40. how to export selected type and fields data from elasticsearch server A to elastic server B. Version elasticsearch server A and server B also 2.40. Thanks and best regards …

---

## [How to: Elastic Search - Efficient/Compact “Not In” Operator](https://discuss.elastic.co/t/how-to-elastic-search-efficient-compact-not-in-operator/111975)

<div class="topic-metadata">

**Author:** [@menelaosbgr](https://discuss.elastic.co/u/menelaosbgr)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 3:10pm UTC](https://discuss.elastic.co/t/how-to-elastic-search-efficient-compact-not-in-operator/111975 "2017-12-22T15:10:00Z")

</div>

So I wanted the equivalent of doing an sql not in query such as this: select \* from test where id not in (1,2,3); Initially I was thinking more in SQL, and it took me an hour to understand the philosophy behind Elastic…

---

## [Giant Elasticsearch query](https://discuss.elastic.co/t/giant-elasticsearch-query/112692)

<div class="topic-metadata">

**Author:** [@sparklegoat](https://discuss.elastic.co/u/sparklegoat)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 3:18pm UTC](https://discuss.elastic.co/t/giant-elasticsearch-query/112692 "2017-12-22T15:18:21Z")

</div>

I have a list of must and must\_not items that I currently have in a giant query but I want to know if this is the best way about the problem. example of the query: I have 470 must items and 485 must\_not items that are …

---

## [Sort items that have equal score](https://discuss.elastic.co/t/sort-items-that-have-equal-score/112022)

<div class="topic-metadata">

**Author:** [@iitgrad](https://discuss.elastic.co/u/iitgrad)\
**Replies:** 2\
**Last updated:** [December 22, 2017, 2:07pm UTC](https://discuss.elastic.co/t/sort-items-that-have-equal-score/112022 "2017-12-22T14:07:58Z")

</div>

What is the proper way to structure a query so that using a should with several values allows proper scoring and then does a sort on a date field but only if the scores are the same. ie. first sort by score and then su…

---

## [Unknown NamedWriteable \[org.elasticsearch.index.query.QueryBuilder\]\[has\_child\] using ESIntegTestCase](https://discuss.elastic.co/t/unknown-namedwriteable-org-elasticsearch-index-query-querybuilder-has-child-using-esintegtestcase/112998)

<div class="topic-metadata">

**Author:** [@vaughnd](https://discuss.elastic.co/u/vaughnd)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 2:00pm UTC](https://discuss.elastic.co/t/unknown-namedwriteable-org-elasticsearch-index-query-querybuilder-has-child-using-esintegtestcase/112998 "2017-12-22T14:00:33Z")

</div>

Hi, I'm using ESIntegTestCase to do some integration tests, most work fine, but as soon as I try to use a has\_child query it bombs with "Caused by: java.lang.IllegalArgumentException: Unknown NamedWriteable \[org.elastic…

---

## [Setup Cluster across data centre](https://discuss.elastic.co/t/setup-cluster-across-data-centre/112968)

<div class="topic-metadata">

**Author:** [@Dhiraj\_Singh\_Chauhan](https://discuss.elastic.co/u/Dhiraj_Singh_Chauhan)\
**Replies:** 5\
**Last updated:** [December 22, 2017, 1:24pm UTC](https://discuss.elastic.co/t/setup-cluster-across-data-centre/112968 "2017-12-22T13:24:32Z")

</div>

Hi Guys, I am planing to create single cluster across data centre in case if my one data centre in down my application is in operation mode without any downtime. My logical approach to create cluster is I will group n…

---

## [What does it mean when Elasticsearch cannot index something?](https://discuss.elastic.co/t/what-does-it-mean-when-elasticsearch-cannot-index-something/112957)

<div class="topic-metadata">

**Author:** [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Replies:** 2\
**Last updated:** [December 22, 2017, 1:21pm UTC](https://discuss.elastic.co/t/what-does-it-mean-when-elasticsearch-cannot-index-something/112957 "2017-12-22T13:21:21Z")

</div>

I've run across several errors when using Logstash's Elasticsearch output that say Elasticsearch couldn't index something because of a field mapping issue. When this happens, what exactly does this mean? A. Elasticsearc…

---

## [Not able to find logs and data subfolders in elasticsearch](https://discuss.elastic.co/t/not-able-to-find-logs-and-data-subfolders-in-elasticsearch/111942)

<div class="topic-metadata">

**Author:** [@monikak96](https://discuss.elastic.co/u/monikak96)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 12:52pm UTC](https://discuss.elastic.co/t/not-able-to-find-logs-and-data-subfolders-in-elasticsearch/111942 "2017-12-22T12:52:15Z")

</div>

I installed elasticsearch yesterday and reinstalled it today. There were data and logs folders present yesterday. After re installing mutiple times i couldnt find the two folders . Can some one suggest me what to do.

---

## ["Unboosting" with the caret (^) notation on a multi\_match query?](https://discuss.elastic.co/t/unboosting-with-the-caret-notation-on-a-multi-match-query/112840)

<div class="topic-metadata">

**Author:** [@Sheker](https://discuss.elastic.co/u/Sheker)\
**Replies:** 2\
**Last updated:** [December 22, 2017, 12:39pm UTC](https://discuss.elastic.co/t/unboosting-with-the-caret-notation-on-a-multi-match-query/112840 "2017-12-22T12:39:56Z")

</div>

Hi, Can I use decimals smaller than 1 with the caret (^) notation on a multi\_match query? Something like : "fields": \[ "title^3","text","extra\_text^0.5"\] Would this work as an "unbooster" for the field extra\_text? I…

---

## [What is the default scroll value in Scroll API?](https://discuss.elastic.co/t/what-is-the-default-scroll-value-in-scroll-api/111766)

<div class="topic-metadata">

**Author:** [@Pisush](https://discuss.elastic.co/u/Pisush)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 12:29pm UTC](https://discuss.elastic.co/t/what-is-the-default-scroll-value-in-scroll-api/111766 "2017-12-22T12:29:08Z")

</div>

i.e. for how long should the search context stay opened, if no value is provided?

---

## [Elasticsearch-rest-high-level-client](https://discuss.elastic.co/t/elasticsearch-rest-high-level-client/112993)

<div class="topic-metadata">

**Author:** [@arghyachaks](https://discuss.elastic.co/u/arghyachaks)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 12:05pm UTC](https://discuss.elastic.co/t/elasticsearch-rest-high-level-client/112993 "2017-12-22T12:05:21Z")

</div>

RestHighLevelClient client = new RestHighLevelClient(RestClient .builder(new HttpHost("ip", 9200), new HttpHost("ip", 9201))); This code running properly when I connect it from my local machine to elasticsearch instanc…

---

## [FilterBuilders v0.9 to v6.0 valid code replace](https://discuss.elastic.co/t/filterbuilders-v0-9-to-v6-0-valid-code-replace/112554)

<div class="topic-metadata">

**Author:** [@satyarajp](https://discuss.elastic.co/u/satyarajp)\
**Replies:** 6\
**Last updated:** [December 22, 2017, 11:53am UTC](https://discuss.elastic.co/t/filterbuilders-v0-9-to-v6-0-valid-code-replace/112554 "2017-12-22T11:53:39Z")

</div>

Java api for Filterbuilders in elasticsearch 2 Hi Team, I'm going through the above link. Need some help with below code. BoolQueryBuilder query = QueryBuilders.boolQuery(); BoolFilterBuilder…

---

## [Cannot get highlight in using highlighting](https://discuss.elastic.co/t/cannot-get-highlight-in-using-highlighting/111721)

<div class="topic-metadata">

**Author:** [@takleung](https://discuss.elastic.co/u/takleung)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 11:40am UTC](https://discuss.elastic.co/t/cannot-get-highlight-in-using-highlighting/111721 "2017-12-22T11:40:18Z")

</div>

Hi, when using "highlight" query. It seems nothing be highlight on return result. As the following, i want to highlight "text" in the content. PUT http://192.168.196.248:9200/\_ingest/pipeline/attachment { "description…

---

## [All shards failed after one node shutdown](https://discuss.elastic.co/t/all-shards-failed-after-one-node-shutdown/112877)

<div class="topic-metadata">

**Author:** [@Alex\_Davidovich](https://discuss.elastic.co/u/Alex_Davidovich)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 11:35am UTC](https://discuss.elastic.co/t/all-shards-failed-after-one-node-shutdown/112877 "2017-12-22T11:35:32Z")

</div>

Can you help me figure out why all shards failed? 3 nodes cluster, the master was shut down. Couldn't send query APIs anymore. Maybe I should modify the timeouts in the yml file? Working with ES 5.4 \[2017-12-20T19…

---

## [Elasticsearch timeout Error while aggn on scripted field](https://discuss.elastic.co/t/elasticsearch-timeout-error-while-aggn-on-scripted-field/112985)

<div class="topic-metadata">

**Author:** [@Shubham\_Mahajan](https://discuss.elastic.co/u/Shubham_Mahajan)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 10:57am UTC](https://discuss.elastic.co/t/elasticsearch-timeout-error-while-aggn-on-scripted-field/112985 "2017-12-22T10:57:17Z")

</div>

Hi guys, I am using scripted field to find the time difference and using this in Data table visualization, but it's giving timeout error. Scripted field is working and showing in discover tab but not working during aggr…

---

## [X-Pack 6.1.0 does not handle variable substitutions](https://discuss.elastic.co/t/x-pack-6-1-0-does-not-handle-variable-substitutions/111953)

<div class="topic-metadata">

**Author:** [@vb4t](https://discuss.elastic.co/u/vb4t)\
**Replies:** 2\
**Last updated:** [December 22, 2017, 10:34am UTC](https://discuss.elastic.co/t/x-pack-6-1-0-does-not-handle-variable-substitutions/111953 "2017-12-22T10:34:02Z")

</div>

After upgrading to Elasticsearch 6.1 I can not use variable substitution. In this case: xpack: security: authc: realms: ssl: certificate\_authorities: \[ "${ELASTICSEARCH\_CONFIG\_PATH}/cer…

---

## [JAVA Rest Client Bulk Data insert not working](https://discuss.elastic.co/t/java-rest-client-bulk-data-insert-not-working/112977)

<div class="topic-metadata">

**Author:** [@ankur\_singla](https://discuss.elastic.co/u/ankur_singla)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 10:17am UTC](https://discuss.elastic.co/t/java-rest-client-bulk-data-insert-not-working/112977 "2017-12-22T10:17:03Z")

</div>

I am trying to upload bulk data(2Lacs) on my elastic cloud using JAVA REST API. In response am getting 200 status and index is created but data not shown. final CredentialsProvider credentialsProvider = new BasicCredent…

---

## [No permission to manage](https://discuss.elastic.co/t/no-permission-to-manage/111949)

<div class="topic-metadata">

**Author:** [@Nima\_van\_Persien](https://discuss.elastic.co/u/Nima_van_Persien)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 10:00am UTC](https://discuss.elastic.co/t/no-permission-to-manage/111949 "2017-12-22T10:00:41Z")

</div>

Hi community, after I installed X-Pack on my ELK-Stack, I see this message when I click in Management Tab. "You do not have permission to manage .... Please contact your administrator." can somebody help me to solve t…

---

## [Snapshot always runs on primary shards?](https://discuss.elastic.co/t/snapshot-always-runs-on-primary-shards/112350)

<div class="topic-metadata">

**Author:** [@akshaymaniyar](https://discuss.elastic.co/u/akshaymaniyar)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 9:24am UTC](https://discuss.elastic.co/t/snapshot-always-runs-on-primary-shards/112350 "2017-12-22T09:24:14Z")

</div>

I wanted to know if the snapshots always run from the nodes holding the primary shards of the indices which are being snapshotted? Why I want to know this? There is a setting of "max\_snapshot\_bytes\_per\_sec" which restr…

---

## [Elastic Stack on Kubernetes](https://discuss.elastic.co/t/elastic-stack-on-kubernetes/112962)

<div class="topic-metadata">

**Author:** [@yaweiw](https://discuss.elastic.co/u/yaweiw)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 8:06am UTC](https://discuss.elastic.co/t/elastic-stack-on-kubernetes/112962 "2017-12-22T08:06:49Z")

</div>

Elastic Stack on Kubernetes https://azuremarketplace.microsoft.com/en-us/marketplace/apps/visualstudiochina.elk-on-kube?tab=Overview Repo:

---

## [My matchPhrase nest query is not working as matchphrase raw json](https://discuss.elastic.co/t/my-matchphrase-nest-query-is-not-working-as-matchphrase-raw-json/112960)

<div class="topic-metadata">

**Author:** [@ASM](https://discuss.elastic.co/u/ASM)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 7:30am UTC](https://discuss.elastic.co/t/my-matchphrase-nest-query-is-not-working-as-matchphrase-raw-json/112960 "2017-12-22T07:30:13Z")

</div>

Hi I have a match Phrase Nest query as given below sd = new SearchDescriptor(); sd.From(0); sd.Size(10); sd.Query(q =\> q.MatchPhrase(m =\> m .Field(p =\> p.title) .Query("Test Article in Credit") )); The above q…

---

## [X-Pack error on Node Failure](https://discuss.elastic.co/t/x-pack-error-on-node-failure/112952)

<div class="topic-metadata">

**Author:** [@gayathri](https://discuss.elastic.co/u/gayathri)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 6:42am UTC](https://discuss.elastic.co/t/x-pack-error-on-node-failure/112952 "2017-12-22T06:42:40Z")

</div>

Hi Team, We have 3 Elasticsearch Master nodes: Node\_ELK\_1,Node\_ELK\_2 and Node\_ELK\_3 and 2 slave nodes Node\_ELK\_4 and Node\_ELK\_5 X-Pack is enbaled on all servers for monitoring purpose. We have configured the master …

---

## [Some field is not showing in ML](https://discuss.elastic.co/t/some-field-is-not-showing-in-ml/112354)

<div class="topic-metadata">

**Author:** [@tatdat](https://discuss.elastic.co/u/tatdat)\
**Replies:** 6\
**Last updated:** [December 22, 2017, 4:53am UTC](https://discuss.elastic.co/t/some-field-is-not-showing-in-ml/112354 "2017-12-22T04:53:23Z")

</div>

Im testing in Kibana + ES 6.1 Im following guide in this blog https://www.elastic.co/blog/machine-learning-for-nginx-logs - Use Case 2: Changes in Website Behaviour But i cant see field "nginx.access.response" .. and t…

---

## [ElasticSearch NEST combining AND with OR queries](https://discuss.elastic.co/t/elasticsearch-nest-combining-and-with-or-queries/112928)

<div class="topic-metadata">

**Author:** [@w00ngy](https://discuss.elastic.co/u/w00ngy)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 3:21am UTC](https://discuss.elastic.co/t/elasticsearch-nest-combining-and-with-or-queries/112928 "2017-12-22T03:21:31Z")

</div>

I'm not sure if this is an appropriate place to post a question on using C# NEST (5.2) to generate an ElasticSearch Query. I'm having a ridicious time generating Nest to output a specific ElasticSearch query. I do have…

---

## [How to define content type](https://discuss.elastic.co/t/how-to-define-content-type/111897)

<div class="topic-metadata">

**Author:** [@rokshirs](https://discuss.elastic.co/u/rokshirs)\
**Replies:** 2\
**Last updated:** [December 22, 2017, 3:15am UTC](https://discuss.elastic.co/t/how-to-define-content-type/111897 "2017-12-22T03:15:55Z")

</div>

Hello ! Greetings ! We are newbies in the Elasticsearch and we are currently fumbling over the following issue. Objective : We are trying to fetch the json formatted files from a particular website and then use Elasti…

---

## [Is it possible to create a new index based on existing index](https://discuss.elastic.co/t/is-it-possible-to-create-a-new-index-based-on-existing-index/112921)

<div class="topic-metadata">

**Author:** [@ent\_1](https://discuss.elastic.co/u/ent_1)\
**Replies:** 2\
**Last updated:** [December 22, 2017, 2:44am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-a-new-index-based-on-existing-index/112921 "2017-12-22T02:44:54Z")

</div>

i would like to create new index based on existing indexes in elastic search using logstash, is this possible. regards dileep

---

## [Bucketing/Counting items inside list field Elasticsearch 5.5.2](https://discuss.elastic.co/t/bucketing-counting-items-inside-list-field-elasticsearch-5-5-2/112917)

<div class="topic-metadata">

**Author:** [@tamisalex](https://discuss.elastic.co/u/tamisalex)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 2:04am UTC](https://discuss.elastic.co/t/bucketing-counting-items-inside-list-field-elasticsearch-5-5-2/112917 "2017-12-22T02:04:57Z")

</div>

I have an index that looks like this: { "id":1, "countries":\["china","japan","united states"\] }, { "id":2, "countries":\["china","united states"\] } I want an output like this: { china: 2 }{ united states: 2} { j…

---

## [The shards are crowded in a node](https://discuss.elastic.co/t/the-shards-are-crowded-in-a-node/112335)

<div class="topic-metadata">

**Author:** [@mcun0s](https://discuss.elastic.co/u/mcun0s)\
**Replies:** 19\
**Last updated:** [December 22, 2017, 12:58am UTC](https://discuss.elastic.co/t/the-shards-are-crowded-in-a-node/112335 "2017-12-22T00:58:31Z")

</div>

Hi :slight\_smile: We're using Elasticsearch for almost our products and we found a strange issue on our Elasticsearch cluster. The problem is that the shards are crowded in a node for a couple of indexes. Issue Image …

---

## [Decay query Running very slow at a very small requestpersecond](https://discuss.elastic.co/t/decay-query-running-very-slow-at-a-very-small-requestpersecond/112892)

<div class="topic-metadata">

**Author:** [@jalaj](https://discuss.elastic.co/u/jalaj)\
**Replies:** 0\
**Last updated:** [December 21, 2017, 8:57pm UTC](https://discuss.elastic.co/t/decay-query-running-very-slow-at-a-very-small-requestpersecond/112892 "2017-12-21T20:57:06Z")

</div>

Hi, I have an index named discover in which I have have only 2 fields timestamp (ts) and another meta field(oid). PUT discover { "settings": { "number\_of\_shards": 6, "number\_of\_replicas": 2 }, "mappings"…

---

## [Update by Query on big amount of data](https://discuss.elastic.co/t/update-by-query-on-big-amount-of-data/112706)

<div class="topic-metadata">

**Author:** [@Adriano](https://discuss.elastic.co/u/Adriano)\
**Replies:** 1\
**Last updated:** [December 21, 2017, 8:29pm UTC](https://discuss.elastic.co/t/update-by-query-on-big-amount-of-data/112706 "2017-12-21T20:29:24Z")

</div>

I am using Elasticsearch 5.0.1 and NEST 5.0 on C#. I need to implement an Update By Query script that will potentially update millions of documents. For now I am using an script to update all the documents. This is all…

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

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