# Elasticsearch

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

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

**Page:** 1756

---

## [Issue with combining synonyms and compound words](https://discuss.elastic.co/t/issue-with-combining-synonyms-and-compound-words/123758)

<div class="topic-metadata">

**Author:** [@derk](https://discuss.elastic.co/u/derk)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 3:08pm UTC](https://discuss.elastic.co/t/issue-with-combining-synonyms-and-compound-words/123758 "2018-03-13T15:08:01Z")

</div>

I'm trying to combine a synonym token filter and a decompound word token filter. To create the index, I used something similar to the following. PUT /test\_index { "settings": { "index": { "analysis": { …

---

## [Elasticsearch (Java) - Integration tests](https://discuss.elastic.co/t/elasticsearch-java-integration-tests/123750)

<div class="topic-metadata">

**Author:** [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 3:00pm UTC](https://discuss.elastic.co/t/elasticsearch-java-integration-tests/123750 "2018-03-13T15:00:49Z")

</div>

I use Java 8, Elasticsearch High level client 6.1.1 and Maven and want to write some integration tests. Here my java class for tests: @ESIntegTestCase.ClusterScope(scope = ESIntegTestCase.Scope.SUITE, numDataNodes=1) p…

---

## [Can't see anything in Logstash when i send a log file though filebeat](https://discuss.elastic.co/t/cant-see-anything-in-logstash-when-i-send-a-log-file-though-filebeat/123749)

<div class="topic-metadata">

**Author:** [@vaishali1](https://discuss.elastic.co/u/vaishali1)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 2:24pm UTC](https://discuss.elastic.co/t/cant-see-anything-in-logstash-when-i-send-a-log-file-though-filebeat/123749 "2018-03-13T14:24:20Z")

</div>

Can anyone help me with this? Nothing is happening in logstash, can't see the anything when i try to run for the second time whereas in the second time it was working fine

---

## [ES Snapshot & Curator on NFS HowTo Resolve Permission Issue](https://discuss.elastic.co/t/es-snapshot-curator-on-nfs-howto-resolve-permission-issue/123752)

<div class="topic-metadata">

**Author:** [@Ben96](https://discuss.elastic.co/u/Ben96)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 2:40pm UTC](https://discuss.elastic.co/t/es-snapshot-curator-on-nfs-howto-resolve-permission-issue/123752 "2018-03-13T14:40:11Z")

</div>

Hi everyone, Quick topic for users like me who want to save/snapshot there indices on NFS Storage ! Generaly we got permission issue "AccessDenied" returned by logs. So to overwrite or bypass as you want, you could do…

---

## [ElasticSearch resthighlevel client bool query request](https://discuss.elastic.co/t/elasticsearch-resthighlevel-client-bool-query-request/123734)

<div class="topic-metadata">

**Author:** [@aragoubi](https://discuss.elastic.co/u/aragoubi)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 2:23pm UTC](https://discuss.elastic.co/t/elasticsearch-resthighlevel-client-bool-query-request/123734 "2018-03-13T14:23:52Z")

</div>

I am trying to translate this query to java code (HighLevelRestClient): { "query":{ "bool": { "must": \[ { "query\_string": { "query": "(("PUT" OR "POST") AND "REST" AND ("BRI" OR "BRIEXT" OR "TMP"))" } } \] } } …

---

## [Dynamically assign aggregation partitionings](https://discuss.elastic.co/t/dynamically-assign-aggregation-partitionings/122086)

<div class="topic-metadata">

**Author:** [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Replies:** 5\
**Last updated:** [March 13, 2018, 1:27pm UTC](https://discuss.elastic.co/t/dynamically-assign-aggregation-partitionings/122086 "2018-03-13T13:27:56Z")

</div>

Is there a way to dynamically set the number of partitioning we set for aggregation? for example, if i have 10 aggs i preform, each one has different distinct count. can i dynamically set the partitioning to return X am…

---

## [Regexp vs Include performance comparison](https://discuss.elastic.co/t/regexp-vs-include-performance-comparison/123730)

<div class="topic-metadata">

**Author:** [@cekeriya](https://discuss.elastic.co/u/cekeriya)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 1:06pm UTC](https://discuss.elastic.co/t/regexp-vs-include-performance-comparison/123730 "2018-03-13T13:06:13Z")

</div>

Hi everybody I work on a project and I need to aggregate the results based on "created" and "labels" field. I created following queries that both give the result as I expected. But I want to learn that which query runs…

---

## [\_reindex is not working when i pass index names as a variable](https://discuss.elastic.co/t/reindex-is-not-working-when-i-pass-index-names-as-a-variable/123491)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 3\
**Last updated:** [March 13, 2018, 1:05pm UTC](https://discuss.elastic.co/t/reindex-is-not-working-when-i-pass-index-names-as-a-variable/123491 "2018-03-13T13:05:23Z")

</div>

Hi All, \_reindex is not working when i pass index names as a variable. ###Create New index for Backup index\_name="test" create\_index="test-bkp" curl -s -u username:password -XPUT "http://localhost:9200/$create\_index"…

---

## [Setup-passwords from ansible script](https://discuss.elastic.co/t/setup-passwords-from-ansible-script/123515)

<div class="topic-metadata">

**Author:** [@dao](https://discuss.elastic.co/u/dao)\
**Replies:** 3\
**Last updated:** [March 13, 2018, 12:40pm UTC](https://discuss.elastic.co/t/setup-passwords-from-ansible-script/123515 "2018-03-13T12:40:05Z")

</div>

Hey, I'd like to automate my cluster provisionning (ansible). I am stucked on the password setup. How can I set my elastic, kibana and logstash passwords from a script, without prompting? I don't want to use the setup-p…

---

## [How to match the pattern of index type in 6.X](https://discuss.elastic.co/t/how-to-match-the-pattern-of-index-type-in-6-x/123724)

<div class="topic-metadata">

**Author:** [@prasad\_kp](https://discuss.elastic.co/u/prasad_kp)\
**Replies:** 4\
**Last updated:** [March 13, 2018, 12:34pm UTC](https://discuss.elastic.co/t/how-to-match-the-pattern-of-index-type-in-6-x/123724 "2018-03-13T12:34:27Z")

</div>

I am using dynamic template PUT \_template/agg { "index\_patterns":\["aggs\*"\], "settings": { "number\_of\_shards": 5, "number\_of\_replicas": 1 }, "mappings": { "pk\*":{ "\_source": { "enab…

---

## [Convert string to object and finding average](https://discuss.elastic.co/t/convert-string-to-object-and-finding-average/123714)

<div class="topic-metadata">

**Author:** [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Replies:** 7\
**Last updated:** [March 13, 2018, 12:14pm UTC](https://discuss.elastic.co/t/convert-string-to-object-and-finding-average/123714 "2018-03-13T12:14:10Z")

</div>

Hi Having a data as follows \[ { "StudentId": 1, "Marks": \[ { "SubjectId": 1, "vResultAttribute": """{\\"TotalTasksCount\\":15,\\"Result\\":73.3,\\"TestObjectsCorrect\\":64,\\"TestMaxPoint\\":15}…

---

## [Custom colors in PDF export per email](https://discuss.elastic.co/t/custom-colors-in-pdf-export-per-email/123567)

<div class="topic-metadata">

**Author:** [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Replies:** 3\
**Last updated:** [March 13, 2018, 11:58am UTC](https://discuss.elastic.co/t/custom-colors-in-pdf-export-per-email/123567 "2018-03-13T11:58:46Z")

</div>

Hi there. Is is possible to color the fields (based on some condition) of an exported PDF file?

---

## [Reindex does not create all documents, Response says it updated some documents](https://discuss.elastic.co/t/reindex-does-not-create-all-documents-response-says-it-updated-some-documents/123722)

<div class="topic-metadata">

**Author:** [@pavan\_gowda](https://discuss.elastic.co/u/pavan_gowda)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 11:40am UTC](https://discuss.elastic.co/t/reindex-does-not-create-all-documents-response-says-it-updated-some-documents/123722 "2018-03-13T11:40:15Z")

</div>

Reindex API is not creating all the documents from source index to dest index, Response says it got updated some documents, but there were no documents exists to update, It was a newly created index, It has to create all…

---

## [Combine scores of two indexes with different mappings on a common field name](https://discuss.elastic.co/t/combine-scores-of-two-indexes-with-different-mappings-on-a-common-field-name/123496)

<div class="topic-metadata">

**Author:** [@Arth](https://discuss.elastic.co/u/Arth)\
**Replies:** 5\
**Last updated:** [March 13, 2018, 11:23am UTC](https://discuss.elastic.co/t/combine-scores-of-two-indexes-with-different-mappings-on-a-common-field-name/123496 "2018-03-13T11:23:26Z")

</div>

Hi, Is it possible to combine scores of two indexes with different mappings on a common field name ? Thanks

---

## [Return field value from array of objects](https://discuss.elastic.co/t/return-field-value-from-array-of-objects/122704)

<div class="topic-metadata">

**Author:** [@yishain11](https://discuss.elastic.co/u/yishain11)\
**Replies:** 8\
**Last updated:** [March 13, 2018, 10:55am UTC](https://discuss.elastic.co/t/return-field-value-from-array-of-objects/122704 "2018-03-13T10:55:02Z")

</div>

I have the following document that is being loaded into elasticseatch 6: { "DataChangeInfo" : "Archive Log Set archiveLogSet.2, "documentsList" : \[ { "commandScn": "25933758", "commandCommitScn": "0", "commandSequ…

---

## [Why datanodes have sharding metadata?](https://discuss.elastic.co/t/why-datanodes-have-sharding-metadata/123609)

<div class="topic-metadata">

**Author:** [@shivam.dixit](https://discuss.elastic.co/u/shivam.dixit)\
**Replies:** 4\
**Last updated:** [March 13, 2018, 10:51am UTC](https://discuss.elastic.co/t/why-datanodes-have-sharding-metadata/123609 "2018-03-13T10:51:15Z")

</div>

Hi, According to my understanding, datanodes and masternodes have division of responsibility. I still wonder why datanodes do store the metadata of shards ? Is this not redundant ? Is it not okay if we keep the metadat…

---

## [Is a direct client-elasticsearch connection safe with X-Pack?](https://discuss.elastic.co/t/is-a-direct-client-elasticsearch-connection-safe-with-x-pack/123379)

<div class="topic-metadata">

**Author:** [@The5785alex](https://discuss.elastic.co/u/The5785alex)\
**Replies:** 4\
**Last updated:** [March 13, 2018, 10:39am UTC](https://discuss.elastic.co/t/is-a-direct-client-elasticsearch-connection-safe-with-x-pack/123379 "2018-03-13T10:39:43Z")

</div>

Hello everyone, I'm working on a personal-mobile application that needs search capabilities and, since I'm not enough confident to deploy/secure/maintain my own server, I'm really interested on elastic cloud and its fe…

---

## [Stop logging](https://discuss.elastic.co/t/stop-logging/123712)

<div class="topic-metadata">

**Author:** [@davidsoler95](https://discuss.elastic.co/u/davidsoler95)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 10:20am UTC](https://discuss.elastic.co/t/stop-logging/123712 "2018-03-13T10:20:34Z")

</div>

Hi, We've detected excesive lines shown on our ElasticSearch console (we've problems with RAM and millions of lines are generated in each search. We want to desactivate logging in the console (and in the .log files). I…

---

## [How to createID and pick latest n entries from the set](https://discuss.elastic.co/t/how-to-createid-and-pick-latest-n-entries-from-the-set/123708)

<div class="topic-metadata">

**Author:** [@kish](https://discuss.elastic.co/u/kish)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 10:06am UTC](https://discuss.elastic.co/t/how-to-createid-and-pick-latest-n-entries-from-the-set/123708 "2018-03-13T10:06:30Z")

</div>

in golang how to use user generated id and increment it for every new entry? I tried Index(KpiIndex). Type(KpiDocType). Id(ids). =\> Id will take only s…

---

## [Unable to get x-pack-api-5.5.3.jar](https://discuss.elastic.co/t/unable-to-get-x-pack-api-5-5-3-jar/123680)

<div class="topic-metadata">

**Author:** [@PinkiMondal](https://discuss.elastic.co/u/PinkiMondal)\
**Replies:** 6\
**Last updated:** [March 13, 2018, 9:03am UTC](https://discuss.elastic.co/t/unable-to-get-x-pack-api-5-5-3-jar/123680 "2018-03-13T09:03:16Z")

</div>

Hi I am want to download x-pack-api-5.5.3.jar but it is giving me error while downloading it using POM And I am unable to find the jar for download I got x-pack-transport-5.5.3.jar from https://www.elastic.co/guide/en/…

---

## [Monitoring cluster bring down production](https://discuss.elastic.co/t/monitoring-cluster-bring-down-production/123282)

<div class="topic-metadata">

**Author:** [@alepuccetti](https://discuss.elastic.co/u/alepuccetti)\
**Replies:** 6\
**Last updated:** [March 13, 2018, 8:53am UTC](https://discuss.elastic.co/t/monitoring-cluster-bring-down-production/123282 "2018-03-13T08:53:08Z")

</div>

I have a separate monitoring cluster separate to the production one. However, when the monitoring cluster does not respond (e.g. maintenance, network problem, internal error) the production cluster goes RED and stop work…

---

## [Aggregation operation on Elastic search data](https://discuss.elastic.co/t/aggregation-operation-on-elastic-search-data/123695)

<div class="topic-metadata">

**Author:** [@kish](https://discuss.elastic.co/u/kish)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 8:52am UTC](https://discuss.elastic.co/t/aggregation-operation-on-elastic-search-data/123695 "2018-03-13T08:52:47Z")

</div>

I have below data but i need to build a query which will give the average of CpuAverageLoad of specific Nodetype. Kibana cannot used because of some license issue. \> { "took" : 6, "timed\_out" : false, "\_shards" : …

---

## [Aggregating on geo\_point](https://discuss.elastic.co/t/aggregating-on-geo-point/120885)

<div class="topic-metadata">

**Author:** [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Replies:** 4\
**Last updated:** [March 13, 2018, 8:19am UTC](https://discuss.elastic.co/t/aggregating-on-geo-point/120885 "2018-03-13T08:19:02Z")

</div>

Is there a way to aggregate on a geo\_point field and to receive the actual lat long? all i managed to do is get the hash geo. what i did so far: creating the index PUT geo\_test { "mappings": { "sharon\_test": { …

---

## [DELETE API not working](https://discuss.elastic.co/t/delete-api-not-working/123691)

<div class="topic-metadata">

**Author:** [@tarunwx](https://discuss.elastic.co/u/tarunwx)\
**Replies:** 2\
**Last updated:** [March 13, 2018, 8:05am UTC](https://discuss.elastic.co/t/delete-api-not-working/123691 "2018-03-13T08:05:35Z")

</div>

ELASTIC 6.2.2 is behaving very weirdly all of a sudden !!! The index exists and when I am trying to delete it - it says the index doesnt exist !! \_GET cat/indices?v=true&v=true&s=index health status index …

---

## [How to disable TF/IDF completely](https://discuss.elastic.co/t/how-to-disable-tf-idf-completely/123518)

<div class="topic-metadata">

**Author:** [@ahmadazimi](https://discuss.elastic.co/u/ahmadazimi)\
**Replies:** 6\
**Last updated:** [March 13, 2018, 7:59am UTC](https://discuss.elastic.co/t/how-to-disable-tf-idf-completely/123518 "2018-03-13T07:59:19Z")

</div>

I'm trying to query small pieces of sentences in about 500k records and TF/IDF makes results so bad. I wanna disable it at index time or query time (without using constant\_score). Has anyone has any idea?!

---

## [Upgrading x-pack](https://discuss.elastic.co/t/upgrading-x-pack/123676)

<div class="topic-metadata">

**Author:** [@Pororo](https://discuss.elastic.co/u/Pororo)\
**Replies:** 2\
**Last updated:** [March 13, 2018, 6:10am UTC](https://discuss.elastic.co/t/upgrading-x-pack/123676 "2018-03-13T06:10:35Z")

</div>

I am thinking about upgrading x-pack from 6.2.1 to 6.2.2. Do I need to update my elasticsearch to 6.2.2 as well? And if I uninstall the x-pack and install the new one, are the previous watcher settings erased?

---

## [Html sanitization](https://discuss.elastic.co/t/html-sanitization/123675)

<div class="topic-metadata">

**Author:** [@Pororo](https://discuss.elastic.co/u/Pororo)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 5:15am UTC](https://discuss.elastic.co/t/html-sanitization/123675 "2018-03-13T05:15:47Z")

</div>

My version is 6.2.1. I added "xpack.notification.email.html.sanitization.enabled: false" to elasticsearch.yml but I can not run elasticsearch successfully after adding that line. Caused by: java.lang.IllegalArgumentExc…

---

## [Xpack not loading correctly](https://discuss.elastic.co/t/xpack-not-loading-correctly/123664)

<div class="topic-metadata">

**Author:** [@DevT](https://discuss.elastic.co/u/DevT)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 5:02am UTC](https://discuss.elastic.co/t/xpack-not-loading-correctly/123664 "2018-03-13T05:02:45Z")

</div>

Hello, I get these errors when I start Kibana. How do I "please set xpack.security.encryptionKey in kibana.yml"? \[kibana\_error\]

---

## [What is ECCN number for X-Pack?](https://discuss.elastic.co/t/what-is-eccn-number-for-x-pack/123659)

<div class="topic-metadata">

**Author:** [@hondak](https://discuss.elastic.co/u/hondak)\
**Replies:** 3\
**Last updated:** [March 13, 2018, 2:01am UTC](https://discuss.elastic.co/t/what-is-eccn-number-for-x-pack/123659 "2018-03-13T02:01:29Z")

</div>

I want to use X-Pack with my Elastic in my service. So I need to confirm ECCN number. I found this thread. Is ECCN number for X-Pack also 5D992? Thanks.

---

## [S3 repository creation failing for cluster](https://discuss.elastic.co/t/s3-repository-creation-failing-for-cluster/121591)

<div class="topic-metadata">

**Author:** [@pri](https://discuss.elastic.co/u/pri)\
**Replies:** 1\
**Last updated:** [March 13, 2018, 12:42am UTC](https://discuss.elastic.co/t/s3-repository-creation-failing-for-cluster/121591 "2018-03-13T00:42:06Z")

</div>

Hi, I am trying to register a s3 repository for my elasticsearch cluster which has 2 data nodes, 1 master and 1 client. The ES version is 6.1 When I issue the \_snapshot command, I get the following error { "error": …

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

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