# Elasticsearch

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

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

**Page:** 1893

---

## [org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed with exit code 1; see the compiler error output for details](https://discuss.elastic.co/t/org-gradle-api-internal-tasks-compile-compilationfailedexception-compilation-failed-with-exit-code-1-see-the-compiler-error-output-for-details/106749)

<div class="topic-metadata">

**Author:** [@jvemugunta](https://discuss.elastic.co/u/jvemugunta)\
**Replies:** 2\
**Last updated:** [November 11, 2017, 2:20pm UTC](https://discuss.elastic.co/t/org-gradle-api-internal-tasks-compile-compilationfailedexception-compilation-failed-with-exit-code-1-see-the-compiler-error-output-for-details/106749 "2017-11-11T14:20:39Z")

</div>

I am extending the shield-custom-realm-example project (https://github.com/elastic/shield-custom-realm-example) to support SSO for Siteminder integration. The Siteminder SSO component sends JWT as authorization header to…

---

## [Rollup API](https://discuss.elastic.co/t/rollup-api/107217)

<div class="topic-metadata">

**Author:** [@ron.morrill](https://discuss.elastic.co/u/ron.morrill)\
**Replies:** 2\
**Last updated:** [November 10, 2017, 10:05pm UTC](https://discuss.elastic.co/t/rollup-api/107217 "2017-11-10T22:05:48Z")

</div>

I attended elasticON in New York yesterday, and spoke with a number of people about a "rollup api" that is currently in development. We would like to assist with building out use cases and help w/ beta testing. We have…

---

## [Query optimisation: must vs must\_not order](https://discuss.elastic.co/t/query-optimisation-must-vs-must-not-order/107248)

<div class="topic-metadata">

**Author:** [@a06ced31bae02498a46d](https://discuss.elastic.co/u/a06ced31bae02498a46d)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 9:27pm UTC](https://discuss.elastic.co/t/query-optimisation-must-vs-must-not-order/107248 "2017-11-10T21:27:54Z")

</div>

Hello, I use ElasticSearch 2.3. I observed that with this simple query order of must and must\_not conditions in query JSON matter: { "query": { "bool": { "filter": { "bool": { "must": { "…

---

## [Child query](https://discuss.elastic.co/t/child-query/107237)

<div class="topic-metadata">

**Author:** [@lennycampino](https://discuss.elastic.co/u/lennycampino)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 8:35pm UTC](https://discuss.elastic.co/t/child-query/107237 "2017-11-10T20:35:48Z")

</div>

Hello, https://imgur.com/a/9kx4g that is my data model. Each user has multiple childs with another user id.... I want to return all users except those who are listed in a child of that user.... Could you please help me…

---

## [Search queue rejections climb while search queue stays empty?](https://discuss.elastic.co/t/search-queue-rejections-climb-while-search-queue-stays-empty/106261)

<div class="topic-metadata">

**Author:** [@khyron4eva](https://discuss.elastic.co/u/khyron4eva)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 8:13pm UTC](https://discuss.elastic.co/t/search-queue-rejections-climb-while-search-queue-stays-empty/106261 "2017-11-10T20:13:55Z")

</div>

Hello. Posting again after a long hiatus because I recently came across a behavior that I didn't think was possible and I'd like some of the elastic.co community to validate my thoughts. ES version 2.0 prior to upgrade…

---

## [Scroll id is not changing while querying](https://discuss.elastic.co/t/scroll-id-is-not-changing-while-querying/106202)

<div class="topic-metadata">

**Author:** [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 7:43pm UTC](https://discuss.elastic.co/t/scroll-id-is-not-changing-while-querying/106202 "2017-11-10T19:43:02Z")

</div>

I written this code to test scroll api. As mentioned in docs the scroll id will change for every request. But in my case it is same for all requests. The initial search request and each subsequent scroll request retur…

---

## [Any way to add a suffix to an index name in an index template?](https://discuss.elastic.co/t/any-way-to-add-a-suffix-to-an-index-name-in-an-index-template/107131)

<div class="topic-metadata">

**Author:** [@troy](https://discuss.elastic.co/u/troy)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 7:10pm UTC](https://discuss.elastic.co/t/any-way-to-add-a-suffix-to-an-index-name-in-an-index-template/107131 "2017-11-10T19:10:27Z")

</div>

Similar to what's described in Index Aliases and Zero Downtime , we are creating our indices in the form "typeprefix-id-v1" and then accessing them through an alias like "typeprefix-id". We are doing that so we can reind…

---

## [Highlighting in Elasticsearch](https://discuss.elastic.co/t/highlighting-in-elasticsearch/107224)

<div class="topic-metadata">

**Author:** [@Akshay\_Deep\_Lamba](https://discuss.elastic.co/u/Akshay_Deep_Lamba)\
**Replies:** 4\
**Last updated:** [November 10, 2017, 6:19pm UTC](https://discuss.elastic.co/t/highlighting-in-elasticsearch/107224 "2017-11-10T18:19:42Z")

</div>

I am using the Below Query GET books/\_search { "query" : { "query\_string": { "query": "java scala" } }, "aggs": { "my\_agg": { "terms": { "fiel…

---

## [Randomize results with the same score](https://discuss.elastic.co/t/randomize-results-with-the-same-score/104163)

<div class="topic-metadata">

**Author:** [@kulmen](https://discuss.elastic.co/u/kulmen)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 6:17pm UTC](https://discuss.elastic.co/t/randomize-results-with-the-same-score/104163 "2017-11-10T18:17:17Z")

</div>

I have indexed documents with lot of not analyzed mostly numeric fields and one analyzed field 'title'. And on that data I built search engine which generates less or more complicated bool queries. In results I need to h…

---

## [Elasticsearch does not start](https://discuss.elastic.co/t/elasticsearch-does-not-start/106572)

<div class="topic-metadata">

**Author:** [@samdash](https://discuss.elastic.co/u/samdash)\
**Replies:** 17\
**Last updated:** [November 10, 2017, 6:16pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/106572 "2017-11-10T18:16:57Z")

</div>

Suddenly started seeing below error message, it was working fine before, no changes have been made anywhere \[2017-11-06T09:54:28,544\]\[INFO \]\[o.e.n.Node \] \[\] initializing ... \[2017-11-06T09:54:28,623\]\[…

---

## [Translate on Ingest Node](https://discuss.elastic.co/t/translate-on-ingest-node/106338)

<div class="topic-metadata">

**Author:** [@Akumar](https://discuss.elastic.co/u/Akumar)\
**Replies:** 2\
**Last updated:** [November 10, 2017, 6:12pm UTC](https://discuss.elastic.co/t/translate-on-ingest-node/106338 "2017-11-10T18:12:54Z")

</div>

Is there an equivalent way of achieving the Logstash translate filter function with an ingest node processor? I want to capture fields with numerical error codes, but record in ES or display in KIbana the description of …

---

## [Cluster 2 nodes no communication](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211)

<div class="topic-metadata">

**Author:** [@dpachot](https://discuss.elastic.co/u/dpachot)\
**Replies:** 4\
**Last updated:** [November 10, 2017, 4:43pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211 "2017-11-10T16:43:54Z")

</div>

Hello, i try to make a cluster with 2 nodes with 2 VM / CentOs 7 cluster.name: elk57 node.name: node-elk57-1 node.master: true node.data: false bootstrap.memory\_lock: true network.host: 0.0.0.0 transport.host: localhos…

---

## [There are some kind of multiple unique elastic search index?](https://discuss.elastic.co/t/there-are-some-kind-of-multiple-unique-elastic-search-index/107176)

<div class="topic-metadata">

**Author:** [@silvia](https://discuss.elastic.co/u/silvia)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 4:31pm UTC](https://discuss.elastic.co/t/there-are-some-kind-of-multiple-unique-elastic-search-index/107176 "2017-11-10T16:31:54Z")

</div>

Hi All, I am new in Elastic Search and I want to use different fields like unique id. For example: I have a data elastic search document as follows : \</\>@Document(indexName = "outlet") public class MyIndex implemen…

---

## [Spatial Similarity](https://discuss.elastic.co/t/spatial-similarity/106501)

<div class="topic-metadata">

**Author:** [@loff](https://discuss.elastic.co/u/loff)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 3:48pm UTC](https://discuss.elastic.co/t/spatial-similarity/106501 "2017-11-10T15:48:31Z")

</div>

Hi, I was wondering if there are any plugins / methods for calculating the similarity of spatial features. I'm planning to build a recommendation system for spatial data. The data I have consists of points, polygons and…

---

## [Connect Sql Server with Elasticsearch](https://discuss.elastic.co/t/connect-sql-server-with-elasticsearch/107195)

<div class="topic-metadata">

**Author:** [@mayank.gaur](https://discuss.elastic.co/u/mayank.gaur)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 3:38pm UTC](https://discuss.elastic.co/t/connect-sql-server-with-elasticsearch/107195 "2017-11-10T15:38:19Z")

</div>

I have installed Elasticsearch on my windows system, but I am not able to find a way to connect with SqlServer. Even please help me out for plugin also.

---

## [ElasticSearch Plugin Upgrade \[1.7 to 5.4\] -- Integration Testing](https://discuss.elastic.co/t/elasticsearch-plugin-upgrade-1-7-to-5-4-integration-testing/102042)

<div class="topic-metadata">

**Author:** [@taylorgaw](https://discuss.elastic.co/u/taylorgaw)\
**Replies:** 3\
**Last updated:** [November 10, 2017, 3:25pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-upgrade-1-7-to-5-4-integration-testing/102042 "2017-11-10T15:25:03Z")

</div>

I'm currently working on upgrading a plugin to be compatible with our new 5.4 cluster. I've been following this tutorial, which has been very helpful, however I've hit a dead end in my quest for resolution... Here's my …

---

## [BulkProcess: Knowing retry attempt in logs](https://discuss.elastic.co/t/bulkprocess-knowing-retry-attempt-in-logs/106845)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 3:00pm UTC](https://discuss.elastic.co/t/bulkprocess-knowing-retry-attempt-in-logs/106845 "2017-11-10T15:00:53Z")

</div>

We have been using bulkProcessor for 5.6.3. We have set the policy as exponentialBackOff with default values. Is there a way to log the retry attempts and its corresponding bulk request number ? We need to know this f…

---

## [Highlighter doesn't work with custom \_all field and no\_match\_size](https://discuss.elastic.co/t/highlighter-doesnt-work-with-custom-all-field-and-no-match-size/107031)

<div class="topic-metadata">

**Author:** [@aslamy](https://discuss.elastic.co/u/aslamy)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 2:09pm UTC](https://discuss.elastic.co/t/highlighter-doesnt-work-with-custom-all-field-and-no-match-size/107031 "2017-11-10T14:09:16Z")

</div>

I have a custom \_all fields (content), the values of multiple fields are copied into this field (content) . mapping: "content": { "type": "text", "store": true, "term\_vector": "with\_positions\_offsets", } In the ca…

---

## [Tribe node had Java Internal Error](https://discuss.elastic.co/t/tribe-node-had-java-internal-error/106734)

<div class="topic-metadata">

**Author:** [@ajstark123](https://discuss.elastic.co/u/ajstark123)\
**Replies:** 5\
**Last updated:** [November 10, 2017, 2:07pm UTC](https://discuss.elastic.co/t/tribe-node-had-java-internal-error/106734 "2017-11-10T14:07:23Z")

</div>

We are setting up Tribe Node to do search against two Elasticsearch cluster in two different data centers. WE saw a java internal error in the tribe node logs. The Elasticsearch version is 5.5.2. The Java version is …

---

## [Cross cluster search stops working after some time](https://discuss.elastic.co/t/cross-cluster-search-stops-working-after-some-time/107189)

<div class="topic-metadata">

**Author:** [@Alberto\_Yoldi](https://discuss.elastic.co/u/Alberto_Yoldi)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 1:10pm UTC](https://discuss.elastic.co/t/cross-cluster-search-stops-working-after-some-time/107189 "2017-11-10T13:10:32Z")

</div>

I got cross cluster search working but after some time it simply breaks without any log entry (neither on the local cluster nor on the remote one). It happens the following: The remote cluster is already running since …

---

## [X-pack License renewal information](https://discuss.elastic.co/t/x-pack-license-renewal-information/106882)

<div class="topic-metadata">

**Author:** [@gauravbhutani30](https://discuss.elastic.co/u/gauravbhutani30)\
**Replies:** 3\
**Last updated:** [November 10, 2017, 1:09pm UTC](https://discuss.elastic.co/t/x-pack-license-renewal-information/106882 "2017-11-10T13:09:23Z")

</div>

Hi, I have a quick question on X-Pack license. We are running X-pack on our application, I have few questions regarding the same: Once my license expires, will i get a new license.json file from Elastic and i need to…

---

## [Strict routing: only documents with one routing key per shard](https://discuss.elastic.co/t/strict-routing-only-documents-with-one-routing-key-per-shard/104360)

<div class="topic-metadata">

**Author:** [@trobby](https://discuss.elastic.co/u/trobby)\
**Replies:** 2\
**Last updated:** [November 10, 2017, 12:54pm UTC](https://discuss.elastic.co/t/strict-routing-only-documents-with-one-routing-key-per-shard/104360 "2017-11-10T12:54:27Z")

</div>

We're currently optimzing the sharding setup of our Elasticsearch index to (surprise) decrease response times. Currently the amount of routing keys is equal to the amount of shards. We're looking for a setup, where all d…

---

## [Gaps in machine learning data when reverting to snapshot with high query delay](https://discuss.elastic.co/t/gaps-in-machine-learning-data-when-reverting-to-snapshot-with-high-query-delay/106549)

<div class="topic-metadata">

**Author:** [@tvannet](https://discuss.elastic.co/u/tvannet)\
**Replies:** 8\
**Last updated:** [November 10, 2017, 12:50pm UTC](https://discuss.elastic.co/t/gaps-in-machine-learning-data-when-reverting-to-snapshot-with-high-query-delay/106549 "2017-11-10T12:50:44Z")

</div>

Hi, I have a job running with a fairly high query delay (30 minutes). The bucket size itself is only 15 minutes, although I don't believe that's relevant. Occasionally, I have to revert the model to a previous state du…

---

## [Assign the result of aggregation to a field](https://discuss.elastic.co/t/assign-the-result-of-aggregation-to-a-field/107186)

<div class="topic-metadata">

**Author:** [@mmbtenorio](https://discuss.elastic.co/u/mmbtenorio)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 12:41pm UTC](https://discuss.elastic.co/t/assign-the-result-of-aggregation-to-a-field/107186 "2017-11-10T12:41:38Z")

</div>

I wanted to transfer some data to a new index. I used a watcher to do it. The thing is, I can't retrieve the values and assign it to its corresponding field. Here's my watcher query PUT \_xpack/watcher/watch/transform { …

---

## [java.net.UnknownHostException using Java Rest client 5.6.3](https://discuss.elastic.co/t/java-net-unknownhostexception-using-java-rest-client-5-6-3/106329)

<div class="topic-metadata">

**Author:** [@mc1392](https://discuss.elastic.co/u/mc1392)\
**Replies:** 18\
**Last updated:** [November 10, 2017, 12:35pm UTC](https://discuss.elastic.co/t/java-net-unknownhostexception-using-java-rest-client-5-6-3/106329 "2017-11-10T12:35:11Z")

</div>

I keep getting java.net.UnknownHostException for connecting to my host elasticsearch. I have not completed the actual search body yet, because I am getting unknown host error. I figure I can solve that problem later. …

---

## [Elasticsearch; Sequence searching in nested fields](https://discuss.elastic.co/t/elasticsearch-sequence-searching-in-nested-fields/107183)

<div class="topic-metadata">

**Author:** [@snigdha1292](https://discuss.elastic.co/u/snigdha1292)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 12:13pm UTC](https://discuss.elastic.co/t/elasticsearch-sequence-searching-in-nested-fields/107183 "2017-11-10T12:13:10Z")

</div>

Hi, I am trying to do a sequence searching in elastic search using nested fields. I have two fields: Event Id: Events - which is a nested field. This nested field has two fields: a) Id: Any number associated with th…

---

## [Aggregation query making elastic datanode offline due to long GC](https://discuss.elastic.co/t/aggregation-query-making-elastic-datanode-offline-due-to-long-gc/107179)

<div class="topic-metadata">

**Author:** [@chitender](https://discuss.elastic.co/u/chitender)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 12:06pm UTC](https://discuss.elastic.co/t/aggregation-query-making-elastic-datanode-offline-due-to-long-gc/107179 "2017-11-10T12:06:30Z")

</div>

we are running 5 node cluster version 2.3.5. one as a client node and 4 node configured to work as Data and Master nodes. all nodes has 32GB heap size. below are the JAVA OPTS with which process is configured. -Xms32g -…

---

## [Not able to setup Coordinator node on my cluster](https://discuss.elastic.co/t/not-able-to-setup-coordinator-node-on-my-cluster/107177)

<div class="topic-metadata">

**Author:** [@Junaid03](https://discuss.elastic.co/u/Junaid03)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 12:03pm UTC](https://discuss.elastic.co/t/not-able-to-setup-coordinator-node-on-my-cluster/107177 "2017-11-10T12:03:15Z")

</div>

I am having an 8 node cluster with 3 master nodes and rest data nodes. I want to connect Kibana with this cluster and so I am following an example to create a coordinator node on the kibana machine. There are a few poin…

---

## [More Like This Query in Template Search](https://discuss.elastic.co/t/more-like-this-query-in-template-search/107165)

<div class="topic-metadata">

**Author:** [@Narmatha](https://discuss.elastic.co/u/Narmatha)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 10:38am UTC](https://discuss.elastic.co/t/more-like-this-query-in-template-search/107165 "2017-11-10T10:38:25Z")

</div>

How to write a template query for MLT query ? I need to know on how to pass like text ?

---

## [Filter documents based aggregation on nested collection](https://discuss.elastic.co/t/filter-documents-based-aggregation-on-nested-collection/107161)

<div class="topic-metadata">

**Author:** [@hetzer-fastec](https://discuss.elastic.co/u/hetzer-fastec)\
**Replies:** 0\
**Last updated:** [November 10, 2017, 10:07am UTC](https://discuss.elastic.co/t/filter-documents-based-aggregation-on-nested-collection/107161 "2017-11-10T10:07:50Z")

</div>

Hi everyone, assume we are modeling restaurants and each restaurant has and id and a nested array of employees. An employee has a name and a salary. I want to formulate a query which returns all restaurants where the s…

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

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