# Elasticsearch

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

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

**Page:** 1061

---

## [Constant\_score wrapper yields different results than Boolean query](https://discuss.elastic.co/t/constant-score-wrapper-yields-different-results-than-boolean-query/212831)

<div class="topic-metadata">

**Author:** [@EpsilonDelta](https://discuss.elastic.co/u/EpsilonDelta)\
**Replies:** 0\
**Last updated:** [December 23, 2019, 10:21am UTC](https://discuss.elastic.co/t/constant-score-wrapper-yields-different-results-than-boolean-query/212831 "2019-12-23T10:21:41Z")

</div>

The following two queries return a different number of results and I cannot figure out why. The only difference between these two queries is that one is wrapped in "constant\_score": { "filter":{ ...} }. Note that the ai…

---

## [Does elasticsearch-6.8.4 support language detection?](https://discuss.elastic.co/t/does-elasticsearch-6-8-4-support-language-detection/212271)

<div class="topic-metadata">

**Author:** [@Pratik\_Hulji](https://discuss.elastic.co/u/Pratik_Hulji)\
**Replies:** 3\
**Last updated:** [December 23, 2019, 7:43am UTC](https://discuss.elastic.co/t/does-elasticsearch-6-8-4-support-language-detection/212271 "2019-12-23T07:43:51Z")

</div>

If Yes please help me

---

## [Elasticsearch docker image](https://discuss.elastic.co/t/elasticsearch-docker-image/212108)

<div class="topic-metadata">

**Author:** [@soniadailyview](https://discuss.elastic.co/u/soniadailyview)\
**Replies:** 4\
**Last updated:** [December 23, 2019, 3:35am UTC](https://discuss.elastic.co/t/elasticsearch-docker-image/212108 "2019-12-23T03:35:06Z")

</div>

Hi, I'm using docker image of elasticsearch:6.4.0 and trying to add a repo path for backup. But after I add mounted a named volume, the permission in the cluster containers is not owned by elasticsearch but root. Here…

---

## ['\_source' field is not displayed in GET API request](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974)

<div class="topic-metadata">

**Author:** [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Replies:** 3\
**Last updated:** [December 23, 2019, 3:04am UTC](https://discuss.elastic.co/t/source-field-is-not-displayed-in-get-api-request/211974 "2019-12-23T03:04:53Z")

</div>

I collected data with Logstash. Index templates are not defined separately. The '\_search API' request returns the \_source field. GET index/\_search But 'GET' api requests do not return the \_source field. GET index/\_d…

---

## [Can not uses "searchAsync"](https://discuss.elastic.co/t/can-not-uses-searchasync/212795)

<div class="topic-metadata">

**Author:** [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Replies:** 0\
**Last updated:** [December 23, 2019, 1:27am UTC](https://discuss.elastic.co/t/can-not-uses-searchasync/212795 "2019-12-23T01:27:32Z")

</div>

See the guide below to implement searchAsync. Search API However, I get the following error. The method searchAsync(SearchRequest, RequestOptions, ActionListener\<SearchResponse\>) from the type RestHighLevelClient refe…

---

## [Unable to create index in Elasticsearch 7.5.0](https://discuss.elastic.co/t/unable-to-create-index-in-elasticsearch-7-5-0/212592)

<div class="topic-metadata">

**Author:** [@pk.241011](https://discuss.elastic.co/u/pk.241011)\
**Replies:** 5\
**Last updated:** [December 22, 2019, 11:36pm UTC](https://discuss.elastic.co/t/unable-to-create-index-in-elasticsearch-7-5-0/212592 "2019-12-22T23:36:46Z")

</div>

This is related to the issue I raised before. While investigating I found that I am having issues in creating a simple index also. And it seems that the install is messed up in some way. The local install does not creat…

---

## [Elasticsearch on Kubernetes - cluster red, one node cannot start](https://discuss.elastic.co/t/elasticsearch-on-kubernetes-cluster-red-one-node-cannot-start/212738)

<div class="topic-metadata">

**Author:** [@dmge](https://discuss.elastic.co/u/dmge)\
**Replies:** 5\
**Last updated:** [December 22, 2019, 10:55pm UTC](https://discuss.elastic.co/t/elasticsearch-on-kubernetes-cluster-red-one-node-cannot-start/212738 "2019-12-22T22:55:37Z")

</div>

Hello, Could you please help me to take back my cluster and shards green? I am using Elastisearch on Kubernetes pods. Have cluster with 3 nodes. After some restarts of the pods/nodes the 3th node does not start, cluste…

---

## [Levenshtein ratio query](https://discuss.elastic.co/t/levenshtein-ratio-query/212783)

<div class="topic-metadata">

**Author:** [@Or\_Chen](https://discuss.elastic.co/u/Or_Chen)\
**Replies:** 0\
**Last updated:** [December 22, 2019, 4:24pm UTC](https://discuss.elastic.co/t/levenshtein-ratio-query/212783 "2019-12-22T16:24:00Z")

</div>

Hello, I am trying to get all results which are above a certain ratio of similarity using levenshtein distance. say, if my query has 21 charaters, I want to find all documents who have 3 levenshtein distance or below. I…

---

## [Do you still need curator when using Elasticsearch 7.5](https://discuss.elastic.co/t/do-you-still-need-curator-when-using-elasticsearch-7-5/212726)

<div class="topic-metadata">

**Author:** [@gurdipe](https://discuss.elastic.co/u/gurdipe)\
**Replies:** 3\
**Last updated:** [December 22, 2019, 2:10pm UTC](https://discuss.elastic.co/t/do-you-still-need-curator-when-using-elasticsearch-7-5/212726 "2019-12-22T14:10:17Z")

</div>

Hi All, Sorry for the simple question I have just started looking at Elasticsearch 7.5 and was wondering do you still need to use curator 5.8 to curate, or manage, your Elasticsearch indices and snapshots or can this no…

---

## [Elasticsearch multiple search terms](https://discuss.elastic.co/t/elasticsearch-multiple-search-terms/212770)

<div class="topic-metadata">

**Author:** [@salimsaid](https://discuss.elastic.co/u/salimsaid)\
**Replies:** 1\
**Last updated:** [December 22, 2019, 2:09pm UTC](https://discuss.elastic.co/t/elasticsearch-multiple-search-terms/212770 "2019-12-22T14:09:47Z")

</div>

I've set an elastic index. I have 100,000 documents all with the following fields { "Make:": "NISSAN", "Model:": "FUGA", "Body Type:": "SEDAN", "Year of Manufacture:": 2012, "Country:": "JAPAN", "Fuel Type:": "PETROL", …

---

## [Unable to locate package elasticsearch (OSS Version)](https://discuss.elastic.co/t/unable-to-locate-package-elasticsearch-oss-version/212756)

<div class="topic-metadata">

**Author:** [@Alexandra\_Monteiro](https://discuss.elastic.co/u/Alexandra_Monteiro)\
**Replies:** 0\
**Last updated:** [December 21, 2019, 10:36pm UTC](https://discuss.elastic.co/t/unable-to-locate-package-elasticsearch-oss-version/212756 "2019-12-21T22:36:42Z")

</div>

Hi everyone, I was having some troubles with Kibana connecting to Elasticsearch. Then I read that I needed to install the OSS version to solve it. Following the tutorial I added this line: echo "deb https://artifacts.e…

---

## [Streaming Binary files’s decoded data to elastic :)](https://discuss.elastic.co/t/streaming-binary-files-s-decoded-data-to-elastic/212713)

<div class="topic-metadata">

**Author:** [@liron\_gofberg](https://discuss.elastic.co/u/liron_gofberg)\
**Replies:** 4\
**Last updated:** [December 21, 2019, 1:26pm UTC](https://discuss.elastic.co/t/streaming-binary-files-s-decoded-data-to-elastic/212713 "2019-12-21T13:26:22Z")

</div>

I am wondering what tools I can use for streaming decoded data from binary files to elastic the fastest way. Here is what I am trying to do. files are located at directory . Those files are binary encoded files to sav…

---

## [Roles required to create logs](https://discuss.elastic.co/t/roles-required-to-create-logs/211917)

<div class="topic-metadata">

**Author:** [@Matthew\_Petrie](https://discuss.elastic.co/u/Matthew_Petrie)\
**Replies:** 5\
**Last updated:** [December 21, 2019, 4:38pm UTC](https://discuss.elastic.co/t/roles-required-to-create-logs/211917 "2019-12-21T16:38:47Z")

</div>

I'm using the Node.js logger winston and winston-elasticsearch to send logs to Elastic Cloud (uses https://www.npmjs.com/package/@elastic/elasticsearch under the hood) and am using basic authentication (username & passwo…

---

## [Things to change in elastic java high level client code for moving from joda to java time](https://discuss.elastic.co/t/things-to-change-in-elastic-java-high-level-client-code-for-moving-from-joda-to-java-time/211872)

<div class="topic-metadata">

**Author:** [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Replies:** 2\
**Last updated:** [December 21, 2019, 3:22pm UTC](https://discuss.elastic.co/t/things-to-change-in-elastic-java-high-level-client-code-for-moving-from-joda-to-java-time/211872 "2019-12-21T15:22:15Z")

</div>

what are the things to change in elastic java high-level client code for moving from joda to java time ? my current code is as below. I am using 6.8.3 elk version I need to change code, so I can use it in elk 7.4 …

---

## [Unable to setup elastic stack in docker with tls enabled](https://discuss.elastic.co/t/unable-to-setup-elastic-stack-in-docker-with-tls-enabled/212734)

<div class="topic-metadata">

**Author:** [@pythonredhat](https://discuss.elastic.co/u/pythonredhat)\
**Replies:** 7\
**Last updated:** [December 21, 2019, 3:20pm UTC](https://discuss.elastic.co/t/unable-to-setup-elastic-stack-in-docker-with-tls-enabled/212734 "2019-12-21T15:20:22Z")

</div>

Followed these instructions verbatim: https://www.elastic.co/guide/en/elastic-stack-get-started/7.5/get-started-docker.html#get-started-docker-tls This issue is when you attempt to setup passwords this is the error rec…

---

## [Struggling to get basic roleups working](https://discuss.elastic.co/t/struggling-to-get-basic-roleups-working/211935)

<div class="topic-metadata">

**Author:** [@alecrooney](https://discuss.elastic.co/u/alecrooney)\
**Replies:** 2\
**Last updated:** [December 21, 2019, 2:59pm UTC](https://discuss.elastic.co/t/struggling-to-get-basic-roleups-working/211935 "2019-12-21T14:59:11Z")

</div>

Trying to use rollups. Here is my role up definition: { "config": { "id": "connections\_rollup\_test\_1", "index\_pattern": "connections\_c1\_\*", "rollup\_index": "connections\_rollup\_test\_1", "cron": "0 \* \* …

---

## [How highlighting work with intervals query?](https://discuss.elastic.co/t/how-highlighting-work-with-intervals-query/212735)

<div class="topic-metadata">

**Author:** [@zeusfsx](https://discuss.elastic.co/u/zeusfsx)\
**Replies:** 0\
**Last updated:** [December 21, 2019, 1:05pm UTC](https://discuss.elastic.co/t/how-highlighting-work-with-intervals-query/212735 "2019-12-21T13:05:21Z")

</div>

I have a document: { 'title': 'something', 'text': 'Nova poshta one two three four five six seven eight nine ten words poshta ' } { "query": { "intervals": { "text" : { …

---

## [Elasticseach log message](https://discuss.elastic.co/t/elasticseach-log-message/212704)

<div class="topic-metadata">

**Author:** [@zolthar-z](https://discuss.elastic.co/u/zolthar-z)\
**Replies:** 1\
**Last updated:** [December 21, 2019, 11:45am UTC](https://discuss.elastic.co/t/elasticseach-log-message/212704 "2019-12-21T11:45:16Z")

</div>

Hi I had installed all the components for ELK in 7.5 version, today Kibana wasn't able to load properly the logs from my main index, after checking some logs I found this on elasticsearch log, these logs are repeating a…

---

## [Get current username within a REST plugin](https://discuss.elastic.co/t/get-current-username-within-a-rest-plugin/212729)

<div class="topic-metadata">

**Author:** [@asfoor.hasan.m](https://discuss.elastic.co/u/asfoor.hasan.m)\
**Replies:** 0\
**Last updated:** [December 21, 2019, 9:13am UTC](https://discuss.elastic.co/t/get-current-username-within-a-rest-plugin/212729 "2019-12-21T09:13:52Z")

</div>

Greetings, I am trying to create a custom search API that filters the records based on users. I am extending the BaseRestHandler and I need to get the current user name within the prepareRequest method. I appreciate hel…

---

## [Visualize](https://discuss.elastic.co/t/visualize/212717)

<div class="topic-metadata">

**Author:** [@gsuboc](https://discuss.elastic.co/u/gsuboc)\
**Replies:** 0\
**Last updated:** [December 21, 2019, 12:01am UTC](https://discuss.elastic.co/t/visualize/212717 "2019-12-21T00:01:19Z")

</div>

Does any body know how to visualize a log? I have a key\\value field on Discover message that I need to graph. Attached is the screenshot of the field I want to visualized.

---

## [Logical to physical mapping](https://discuss.elastic.co/t/logical-to-physical-mapping/212716)

<div class="topic-metadata">

**Author:** [@troy\_j\_hinkle](https://discuss.elastic.co/u/troy_j_hinkle)\
**Replies:** 0\
**Last updated:** [December 20, 2019, 11:06pm UTC](https://discuss.elastic.co/t/logical-to-physical-mapping/212716 "2019-12-20T23:06:00Z")

</div>

I am currently looking to find any documents or diagrams that depict logical to physical devices or VMs for a project I am working on. I am working on the premise of a three node cluster to start for Elasticsearch and a…

---

## [Monitor tasks piling up in master node (6.8.3)](https://discuss.elastic.co/t/monitor-tasks-piling-up-in-master-node-6-8-3/212547)

<div class="topic-metadata">

**Author:** [@retzkek](https://discuss.elastic.co/u/retzkek)\
**Replies:** 1\
**Last updated:** [December 20, 2019, 10:14pm UTC](https://discuss.elastic.co/t/monitor-tasks-piling-up-in-master-node-6-8-3/212547 "2019-12-20T22:14:00Z")

</div>

We have a cluster of three dedicated masters, 19 data, and two coordinating nodes running version 6.8.3. We've been having infrequent, but ongoing, issues where cluster:monitor/stats tasks start piling up on the active m…

---

## [Timestamp\_options](https://discuss.elastic.co/t/timestamp-options/212711)

<div class="topic-metadata">

**Author:** [@ksarpong](https://discuss.elastic.co/u/ksarpong)\
**Replies:** 0\
**Last updated:** [December 20, 2019, 9:14pm UTC](https://discuss.elastic.co/t/timestamp-options/212711 "2019-12-20T21:14:23Z")

</div>

Is there a way to set the timestamp to report for a specific time zone and not UTC when setting up a watcher? "range" : { "@timestamp" : { "gte" : "now-1m" } I would love to have something like this "time\_zone": "A…

---

## [Aggregate metricbeat 'host' info by ID & Unique host configuration?](https://discuss.elastic.co/t/aggregate-metricbeat-host-info-by-id-unique-host-configuration/212709)

<div class="topic-metadata">

**Author:** [@EricJohnson](https://discuss.elastic.co/u/EricJohnson)\
**Replies:** 1\
**Last updated:** [December 20, 2019, 9:09pm UTC](https://discuss.elastic.co/t/aggregate-metricbeat-host-info-by-id-unique-host-configuration/212709 "2019-12-20T21:09:00Z")

</div>

Hi there. I'm trying to aggregate host configuration data out of metricbeat. I need to look at the documents for a single day, bucketing by ID, and return the host info. What I'm trying to do is watch for configuratio…

---

## [Get oldest / newest document in \*beat](https://discuss.elastic.co/t/get-oldest-newest-document-in-beat/212229)

<div class="topic-metadata">

**Author:** [@EricJohnson](https://discuss.elastic.co/u/EricJohnson)\
**Replies:** 7\
**Last updated:** [December 20, 2019, 8:57pm UTC](https://discuss.elastic.co/t/get-oldest-newest-document-in-beat/212229 "2019-12-20T20:57:00Z")

</div>

Greetings. I need to fetch the oldest or newest document saved into a beat. Someone asked this before and this was the suggested course of action: This approach will NOT work for metricbeat data because you cannot s…

---

## [Restarted one node - Kibana reports all data nodes as down](https://discuss.elastic.co/t/restarted-one-node-kibana-reports-all-data-nodes-as-down/212700)

<div class="topic-metadata">

**Author:** [@epacke](https://discuss.elastic.co/u/epacke)\
**Replies:** 1\
**Last updated:** [December 20, 2019, 7:37pm UTC](https://discuss.elastic.co/t/restarted-one-node-kibana-reports-all-data-nodes-as-down/212700 "2019-12-20T19:37:56Z")

</div>

Hi there I am running a re-creational cluster at home for firewall logs and some nginx traffic logs. Recently I added two nodes to my setup and now there's 2 data nodes and one master non-data node. Today I tried to re…

---

## [Rollover Policy Not reacting to Number of Docs](https://discuss.elastic.co/t/rollover-policy-not-reacting-to-number-of-docs/212213)

<div class="topic-metadata">

**Author:** [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Replies:** 13\
**Last updated:** [December 20, 2019, 7:35pm UTC](https://discuss.elastic.co/t/rollover-policy-not-reacting-to-number-of-docs/212213 "2019-12-20T19:35:13Z")

</div>

We have an index lifecycle policy which we have set to maxdocs=5 just to see what happens. { "dev-policy": { "version": 2, "modified\_date": "2019-12-17T10:14:34.142Z", "policy": { …

---

## [Apply filters on child aggregation - performance issue](https://discuss.elastic.co/t/apply-filters-on-child-aggregation-performance-issue/212698)

<div class="topic-metadata">

**Author:** [@Dipak](https://discuss.elastic.co/u/Dipak)\
**Replies:** 0\
**Last updated:** [December 20, 2019, 7:03pm UTC](https://discuss.elastic.co/t/apply-filters-on-child-aggregation-performance-issue/212698 "2019-12-20T19:03:52Z")

</div>

Hello, I am using parent-child relationship for product and it's availability/variants in stores. One product can have have 1000s of stores as child, and there are about 80k products. We have 3 shards and 3 powerful nod…

---

## [Shards on Kubernets](https://discuss.elastic.co/t/shards-on-kubernets/212697)

<div class="topic-metadata">

**Author:** [@SadeekM](https://discuss.elastic.co/u/SadeekM)\
**Replies:** 0\
**Last updated:** [December 20, 2019, 6:57pm UTC](https://discuss.elastic.co/t/shards-on-kubernets/212697 "2019-12-20T18:57:26Z")

</div>

Hi, I have 12 Node Elastic Container running on, but issue is it's having 1 shard for each new data Set I tried to update using below command. Command curl -XPUT "http://IPAddress:PortNumber/\_all/\_settings?" -H 'Conten…

---

## [Elasticsearch Cache is empty](https://discuss.elastic.co/t/elasticsearch-cache-is-empty/212692)

<div class="topic-metadata">

**Author:** [@vschaefer](https://discuss.elastic.co/u/vschaefer)\
**Replies:** 0\
**Last updated:** [December 20, 2019, 5:01pm UTC](https://discuss.elastic.co/t/elasticsearch-cache-is-empty/212692 "2019-12-20T17:01:17Z")

</div>

Hello, I'm running the ELK Stack in a Docker container and use this image https://hub.docker.com/r/sebp/elk/ No matter which query I execute, the cache is always empty. I've setted the size param to 0 and \_source to …

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

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