# Elasticsearch

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

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

**Page:** 1261

---

## [Caching in nested aggregations?](https://discuss.elastic.co/t/caching-in-nested-aggregations/185440)

<div class="topic-metadata">

**Author:** [@henryptung](https://discuss.elastic.co/u/henryptung)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 9:30am UTC](https://discuss.elastic.co/t/caching-in-nested-aggregations/185440 "2019-06-18T09:30:26Z")

</div>

Hi devs, I recently made a change to enable caching for nested filters in sorts. It seems like there may be a similar lack of caching in nested aggregations? As seen here (click the link with the diff-line, and let it …

---

## [Data too large circuit\_breaking\_exception](https://discuss.elastic.co/t/data-too-large-circuit-breaking-exception/186082)

<div class="topic-metadata">

**Author:** [@Nikhil\_Khekade](https://discuss.elastic.co/u/Nikhil_Khekade)\
**Replies:** 2\
**Last updated:** [June 18, 2019, 9:14am UTC](https://discuss.elastic.co/t/data-too-large-circuit-breaking-exception/186082 "2019-06-18T09:14:53Z")

</div>

Hi We are new to ES. We want to use it to power our hotel search feature. We have close to 80000 hotels/homes. After a lot of internal discussion, we decided to create date based indexes to properly handle our date avai…

---

## [Elasticsearch 7.1.1 on Windows Containers (1809)](https://discuss.elastic.co/t/elasticsearch-7-1-1-on-windows-containers-1809/185857)

<div class="topic-metadata">

**Author:** [@workaround](https://discuss.elastic.co/u/workaround)\
**Replies:** 2\
**Last updated:** [June 18, 2019, 8:52am UTC](https://discuss.elastic.co/t/elasticsearch-7-1-1-on-windows-containers-1809/185857 "2019-06-18T08:52:43Z")

</div>

I want to run Elasticsearch 7.1.1 on windows containers. I know windows were not supported in the past, but after fixes on the symbolic links, there have been workarounds. Is there any official update on that matter or …

---

## [Designing a massive multi-tenant elasticsearch architecture](https://discuss.elastic.co/t/designing-a-massive-multi-tenant-elasticsearch-architecture/185736)

<div class="topic-metadata">

**Author:** [@haroutk](https://discuss.elastic.co/u/haroutk)\
**Replies:** 5\
**Last updated:** [June 18, 2019, 5:21am UTC](https://discuss.elastic.co/t/designing-a-massive-multi-tenant-elasticsearch-architecture/185736 "2019-06-18T05:21:52Z")

</div>

I have done a lot of reading on the "Definitive Elastic Guide", read many of the suggestions on the web and in this community... but yet, I still have a handful of questions and concerns about the Index and sharding appr…

---

## [Generating Elastic index templates from Java business model?](https://discuss.elastic.co/t/generating-elastic-index-templates-from-java-business-model/186169)

<div class="topic-metadata">

**Author:** [@tom.r](https://discuss.elastic.co/u/tom.r)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 5:14am UTC](https://discuss.elastic.co/t/generating-elastic-index-templates-from-java-business-model/186169 "2019-06-18T05:14:30Z")

</div>

Dear Elastic Community, I've been looking for some way of generating Elasticsearch index templates from Java code, and couldn't really find any out-of the-box solution for it. Do you know of any existing solution that …

---

## [Inserting data into kibana using script](https://discuss.elastic.co/t/inserting-data-into-kibana-using-script/185770)

<div class="topic-metadata">

**Author:** [@A\_google\_user](https://discuss.elastic.co/u/A_google_user)\
**Replies:** 3\
**Last updated:** [June 18, 2019, 4:48am UTC](https://discuss.elastic.co/t/inserting-data-into-kibana-using-script/185770 "2019-06-18T04:48:40Z")

</div>

I have a data file.I want to insert that data in to elastic search- kibana. Is there any automated way I can do this?

---

## [Reindexing failed - Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 672;](https://discuss.elastic.co/t/reindexing-failed-validation-failed-1-id-is-too-long-must-be-no-longer-than-512-bytes-but-was-672/185650)

<div class="topic-metadata">

**Author:** [@JinnaBalu](https://discuss.elastic.co/u/JinnaBalu)\
**Replies:** 3\
**Last updated:** [June 18, 2019, 4:37am UTC](https://discuss.elastic.co/t/reindexing-failed-validation-failed-1-id-is-too-long-must-be-no-longer-than-512-bytes-but-was-672/185650 "2019-06-18T04:37:05Z")

</div>

I am reindexing the elasticsearch with the cluster restart from 2.4.1 to 5.6.16, I have reindexed few indices successfull. Out of 23 indices 3 are getting failed duw to the Validation Failure with the id. Validation Fa…

---

## [License for base elasticsearch](https://discuss.elastic.co/t/license-for-base-elasticsearch/186041)

<div class="topic-metadata">

**Author:** [@wenchaodu](https://discuss.elastic.co/u/wenchaodu)\
**Replies:** 7\
**Last updated:** [June 18, 2019, 4:22am UTC](https://discuss.elastic.co/t/license-for-base-elasticsearch/186041 "2019-06-18T04:22:11Z")

</div>

Hi Team, As we known, the basic are free, after i install the basic version, when I install elasticsearch, kibana, it's prompt me "Elasticsearch cluster did not respond with license information." Please advise Thanks …

---

## [Installation time issue](https://discuss.elastic.co/t/installation-time-issue/183946)

<div class="topic-metadata">

**Author:** [@narendral](https://discuss.elastic.co/u/narendral)\
**Replies:** 2\
**Last updated:** [June 18, 2019, 4:32am UTC](https://discuss.elastic.co/t/installation-time-issue/183946 "2019-06-18T04:32:12Z")

</div>

Environment OS: Ubuntu 16.04 LTS ES: 6.7.1 Package: Debian package I'm facing the issue when applying step 4 from given into document. ERROR sudo dpkg --install elasticsearch-oss-6.7.1.deb (Reading database ... 6…

---

## [What are all the drawbacks of running a single node elastic cluster?](https://discuss.elastic.co/t/what-are-all-the-drawbacks-of-running-a-single-node-elastic-cluster/186171)

<div class="topic-metadata">

**Author:** [@Naseem](https://discuss.elastic.co/u/Naseem)\
**Replies:** 1\
**Last updated:** [June 18, 2019, 2:52am UTC](https://discuss.elastic.co/t/what-are-all-the-drawbacks-of-running-a-single-node-elastic-cluster/186171 "2019-06-18T02:52:00Z")

</div>

To run elasticsearch on a single node that acts as ingest, master and data node. A major advantage is the lower resource consumption. A drawback is that data will not be replicated. How dangerous is that? Another is t…

---

## [Elasticsearch cloud SAML settings errors](https://discuss.elastic.co/t/elasticsearch-cloud-saml-settings-errors/183711)

<div class="topic-metadata">

**Author:** [@ajayraghuraj](https://discuss.elastic.co/u/ajayraghuraj)\
**Replies:** 18\
**Last updated:** [June 18, 2019, 1:11am UTC](https://discuss.elastic.co/t/elasticsearch-cloud-saml-settings-errors/183711 "2019-06-18T01:11:16Z")

</div>

I am running ES version v7.1.0 on the cloud . I am not able to enter the SAML settings for OKTA integration in the "User settings overrides" box. It is throwing errors like 'xpack.security.authc.realms.cloud-saml.type'…

---

## [Need help with this curl command for bulk uploading](https://discuss.elastic.co/t/need-help-with-this-curl-command-for-bulk-uploading/186074)

<div class="topic-metadata">

**Author:** [@KathyTheGreat](https://discuss.elastic.co/u/KathyTheGreat)\
**Replies:** 2\
**Last updated:** [June 18, 2019, 1:08am UTC](https://discuss.elastic.co/t/need-help-with-this-curl-command-for-bulk-uploading/186074 "2019-06-18T01:08:13Z")

</div>

I'm doing this under windows. Here is my curl command: curl -X POST -H "Content-Type:application/x-ndjson" "http://localhost:9200/myindex/logentry/\_bulk?pretty" --data-binary @05312019.txt I'm getting the following err…

---

## [Elasticsearch isn't working with host IP](https://discuss.elastic.co/t/elasticsearch-isnt-working-with-host-ip/185969)

<div class="topic-metadata">

**Author:** [@CMonty](https://discuss.elastic.co/u/CMonty)\
**Replies:** 11\
**Last updated:** [June 18, 2019, 12:37am UTC](https://discuss.elastic.co/t/elasticsearch-isnt-working-with-host-ip/185969 "2019-06-18T00:37:06Z")

</div>

I am setting up Elasticsearch but it only seems to work with local host. When I go into elasticsearch.yml I uncomment out only network.host & http.port as the tutorial states. It works when I leave network.host as "loca…

---

## [Search API returns zero hits](https://discuss.elastic.co/t/search-api-returns-zero-hits/185963)

<div class="topic-metadata">

**Author:** [@elk11](https://discuss.elastic.co/u/elk11)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 9:47pm UTC](https://discuss.elastic.co/t/search-api-returns-zero-hits/185963 "2019-06-17T21:47:57Z")

</div>

Hi, I have been witnessing a weird behavior when trying to query elasticsearch. Ex: GET my\_logs\*/\_search { "query": {"bool": {"must": \[ {"range": {"timestamp": {"gt": "now-1M"…

---

## [PUT index working despite action.auto\_create\_index=false?](https://discuss.elastic.co/t/put-index-working-despite-action-auto-create-index-false/186086)

<div class="topic-metadata">

**Author:** [@heiko.dietze](https://discuss.elastic.co/u/heiko.dietze)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 9:18pm UTC](https://discuss.elastic.co/t/put-index-working-despite-action-auto-create-index-false/186086 "2019-06-17T21:18:41Z")

</div>

Hello all, I got a question regarding the "action.auto\_create\_index" setting. I have started with documentation in the reference https://www.elastic.co/guide/en/elasticsearch/reference/7.1/docs-index\_.html Reading thi…

---

## [How to read only filenames in filbeat without reading log file content](https://discuss.elastic.co/t/how-to-read-only-filenames-in-filbeat-without-reading-log-file-content/186139)

<div class="topic-metadata">

**Author:** [@Nagarjun4](https://discuss.elastic.co/u/Nagarjun4)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 8:13pm UTC](https://discuss.elastic.co/t/how-to-read-only-filenames-in-filbeat-without-reading-log-file-content/186139 "2019-06-17T20:13:32Z")

</div>

Someone help me in understanding ,how to read log file names without reading file content in file beat. Thanks in advance..

---

## [Inconsistencies between DSL queries and Java REST client](https://discuss.elastic.co/t/inconsistencies-between-dsl-queries-and-java-rest-client/186137)

<div class="topic-metadata">

**Author:** [@emilg02](https://discuss.elastic.co/u/emilg02)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 6:39pm UTC](https://discuss.elastic.co/t/inconsistencies-between-dsl-queries-and-java-rest-client/186137 "2019-06-17T18:39:26Z")

</div>

Hi all, I'm trying to perform a simple query using the Java High Level REST API. I'm seeing differences in the results I get. DSL Query: {"\_source":{"includes":\["space","transaction"\],"excludes":\[\]}} Response: { …

---

## [Elasticsearch Sql and json files](https://discuss.elastic.co/t/elasticsearch-sql-and-json-files/185823)

<div class="topic-metadata">

**Author:** [@aeljazouli](https://discuss.elastic.co/u/aeljazouli)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 5:05pm UTC](https://discuss.elastic.co/t/elasticsearch-sql-and-json-files/185823 "2019-06-17T17:05:16Z")

</div>

Hey there ! Can Elasticsearch sql be used to query json files ?

---

## [Perform query within Suggesters? It's possible](https://discuss.elastic.co/t/perform-query-within-suggesters-its-possible/186119)

<div class="topic-metadata">

**Author:** [@EliuFlorez](https://discuss.elastic.co/u/EliuFlorez)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 5:03pm UTC](https://discuss.elastic.co/t/perform-query-within-suggesters-its-possible/186119 "2019-06-17T17:03:22Z")

</div>

Hi guys, do you know I would like to establish a query to the suggesters that is possible? The reason is because the suggesters must be either for the country or type of module where the user is located. Example: GET m…

---

## [restHighLevelClient connection refused](https://discuss.elastic.co/t/resthighlevelclient-connection-refused/183626)

<div class="topic-metadata">

**Author:** [@paklei](https://discuss.elastic.co/u/paklei)\
**Replies:** 5\
**Last updated:** [June 17, 2019, 4:51pm UTC](https://discuss.elastic.co/t/resthighlevelclient-connection-refused/183626 "2019-06-17T16:51:06Z")

</div>

I'm trying to implement a Spring Boot app that makes a bulk insert to an Elasticsearch instance installed on a local CentOS server. The problem that appears on app log is the following: "java.net.ConnectException: Cone…

---

## [DSL Query and multi\_match](https://discuss.elastic.co/t/dsl-query-and-multi-match/186117)

<div class="topic-metadata">

**Author:** [@acantepie](https://discuss.elastic.co/u/acantepie)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 4:50pm UTC](https://discuss.elastic.co/t/dsl-query-and-multi-match/186117 "2019-06-17T16:50:27Z")

</div>

Hi, I have created an index with multiple field, each field is used for search but with different boost. For exemple, if i want to search "green mouse". i want a better score for document that contains "green" and "mou…

---

## [Value of docFreq is wrong (using single shard)](https://discuss.elastic.co/t/value-of-docfreq-is-wrong-using-single-shard/185846)

<div class="topic-metadata">

**Author:** [@fsommer](https://discuss.elastic.co/u/fsommer)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 3:54pm UTC](https://discuss.elastic.co/t/value-of-docfreq-is-wrong-using-single-shard/185846 "2019-06-17T15:54:11Z")

</div>

Hello, we are using Elasticsearch for a search application and are experiencing weird scoring behaviour. I used "explain: true" to understand the scoring and it seems to me that the "docFreq" (number of documents a term…

---

## [Choose what to be indexed](https://discuss.elastic.co/t/choose-what-to-be-indexed/186091)

<div class="topic-metadata">

**Author:** [@Fabio\_Kobuti\_Cavalca](https://discuss.elastic.co/u/Fabio_Kobuti_Cavalca)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 2:50pm UTC](https://discuss.elastic.co/t/choose-what-to-be-indexed/186091 "2019-06-17T14:50:00Z")

</div>

Hi, I have start now with elastic and was searching but with no results on the web.. I have the following payload { "name": "John Doe", "email": "johndoe@company.com" "phone": "55115552891365" "content": "Lorem ip…

---

## [Nested aggregation - access "parent" values](https://discuss.elastic.co/t/nested-aggregation-access-parent-values/186084)

<div class="topic-metadata">

**Author:** [@kluvi](https://discuss.elastic.co/u/kluvi)\
**Replies:** 0\
**Last updated:** [June 17, 2019, 2:14pm UTC](https://discuss.elastic.co/t/nested-aggregation-access-parent-values/186084 "2019-06-17T14:14:07Z")

</div>

I have following index: PUT /nested { "settings": { "number\_of\_shards": 1, "number\_of\_replicas": 0 }, "mappings": { "\_doc": { "properties": { "name": {"type": "keyword"}, "my\_pri…

---

## [Certificate for \<localhost\> doesn't match any of the subject alternative names](https://discuss.elastic.co/t/certificate-for-localhost-doesnt-match-any-of-the-subject-alternative-names/185903)

<div class="topic-metadata">

**Author:** [@ehcar](https://discuss.elastic.co/u/ehcar)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 2:07pm UTC](https://discuss.elastic.co/t/certificate-for-localhost-doesnt-match-any-of-the-subject-alternative-names/185903 "2019-06-17T14:07:01Z")

</div>

I'm running Elasticsearch 7.01 on Ubuntu 18.04 LTS with SSL and security enabled. I'm having trouble configuring the input section of a new Watcher event on a cluster that uses SSL certs that were generated by the bin/e…

---

## [Term query fails to returns no result when I can see the data with a different query](https://discuss.elastic.co/t/term-query-fails-to-returns-no-result-when-i-can-see-the-data-with-a-different-query/185730)

<div class="topic-metadata">

**Author:** [@cjokinen](https://discuss.elastic.co/u/cjokinen)\
**Replies:** 2\
**Last updated:** [June 17, 2019, 1:54pm UTC](https://discuss.elastic.co/t/term-query-fails-to-returns-no-result-when-i-can-see-the-data-with-a-different-query/185730 "2019-06-17T13:54:53Z")

</div>

I can not figure out why this is not working in es6.4 query { "version":"2017-02-28", "operation":"GET", "path":"/articlesnew1/json/\_search", "params":{ "body": { "from": 0, "size": 50, …

---

## [Improve accuracy of ML model](https://discuss.elastic.co/t/improve-accuracy-of-ml-model/186056)

<div class="topic-metadata">

**Author:** [@Bharath\_Kumar\_R](https://discuss.elastic.co/u/Bharath_Kumar_R)\
**Replies:** 6\
**Last updated:** [June 17, 2019, 1:52pm UTC](https://discuss.elastic.co/t/improve-accuracy-of-ml-model/186056 "2019-06-17T13:52:53Z")

</div>

Hey, is there any way to improve the accuracy of my ML model? What parameters need to be tuned in order to increase its accuracy?

---

## [How to increase efficiency of search queries in Elasticsearch](https://discuss.elastic.co/t/how-to-increase-efficiency-of-search-queries-in-elasticsearch/184951)

<div class="topic-metadata">

**Author:** [@avinash9999](https://discuss.elastic.co/u/avinash9999)\
**Replies:** 37\
**Last updated:** [June 17, 2019, 12:45pm UTC](https://discuss.elastic.co/t/how-to-increase-efficiency-of-search-queries-in-elasticsearch/184951 "2019-06-17T12:45:21Z")

</div>

I have made a Elasticsearch setup on a server with configuration - 64 GB RAM and 16 cores. I have created three nodes on this server. One node is both master and data and other two are data nodes. They all are using hea…

---

## [How to get latest document in multiple indices](https://discuss.elastic.co/t/how-to-get-latest-document-in-multiple-indices/186014)

<div class="topic-metadata">

**Author:** [@himberjack](https://discuss.elastic.co/u/himberjack)\
**Replies:** 2\
**Last updated:** [June 17, 2019, 12:37pm UTC](https://discuss.elastic.co/t/how-to-get-latest-document-in-multiple-indices/186014 "2019-06-17T12:37:17Z")

</div>

We have several document types across several indices (each type in its own index). We are querying all indices which works great. However, we want to be able to do top\_hits and to get the latest document but from spec…

---

## [Elasticsearch logs are getting piled up in /var/log/elasticsearch path. How to cater to this problem?](https://discuss.elastic.co/t/elasticsearch-logs-are-getting-piled-up-in-var-log-elasticsearch-path-how-to-cater-to-this-problem/186039)

<div class="topic-metadata">

**Author:** [@Sujata\_Yadav](https://discuss.elastic.co/u/Sujata_Yadav)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 12:11pm UTC](https://discuss.elastic.co/t/elasticsearch-logs-are-getting-piled-up-in-var-log-elasticsearch-path-how-to-cater-to-this-problem/186039 "2019-06-17T12:11:42Z")

</div>

Hi, I am using elasticsearch to analyze my jenkins console data. I have observed that the /var/log/elasticsearch directory is piled up with elasticsearch-2019-XX-YY-1.log.gz logs. Where XX-month, YY-Day. Can you pleas…

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

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