# Elasticsearch

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

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

**Page:** 1808

---

## [Exclude indexes in java search API](https://discuss.elastic.co/t/exclude-indexes-in-java-search-api/117976)

<div class="topic-metadata">

**Author:** [@Alex\_Davidovich1](https://discuss.elastic.co/u/Alex_Davidovich1)\
**Replies:** 2\
**Last updated:** [February 1, 2018, 9:20am UTC](https://discuss.elastic.co/t/exclude-indexes-in-java-search-api/117976 "2018-02-01T09:20:43Z")

</div>

Hi, I am using elasticsearch 5.4.1. I create queries using JAVA API and until now we had 5 indexes. I always searched all 5 of the indexes and in order to achieve this, I didn't send index names with the search reques…

---

## [Elasticsearch search is not working](https://discuss.elastic.co/t/elasticsearch-search-is-not-working/117917)

<div class="topic-metadata">

**Author:** [@databeata](https://discuss.elastic.co/u/databeata)\
**Replies:** 3\
**Last updated:** [February 1, 2018, 8:51am UTC](https://discuss.elastic.co/t/elasticsearch-search-is-not-working/117917 "2018-02-01T08:51:27Z")

</div>

This search returns the correct document in kibana. date:"18-01-29" AND time:"00:59:58,809" AND EventType:"ERROR" How do I search the same document in elasticsearch? I get an error with this search. curl -XGET 'ip:92…

---

## [Elasticsearch query: multiple fields group by](https://discuss.elastic.co/t/elasticsearch-query-multiple-fields-group-by/117957)

<div class="topic-metadata">

**Author:** [@8f91697eaddc6c975381](https://discuss.elastic.co/u/8f91697eaddc6c975381)\
**Replies:** 1\
**Last updated:** [February 1, 2018, 8:22am UTC](https://discuss.elastic.co/t/elasticsearch-query-multiple-fields-group-by/117957 "2018-02-01T08:22:02Z")

</div>

Hi, I want to convert the following query in mysql to elastic search: Select field1, count(field1), field2, count(field2), field3, count(field3) from table1 group by field1, field2, field3 Having ddate between ‘201…

---

## [Elasticsearch 6.0.0 Base64 not found](https://discuss.elastic.co/t/elasticsearch-6-0-0-base64-not-found/117942)

<div class="topic-metadata">

**Author:** [@ajit](https://discuss.elastic.co/u/ajit)\
**Replies:** 4\
**Last updated:** [February 1, 2018, 7:54am UTC](https://discuss.elastic.co/t/elasticsearch-6-0-0-base64-not-found/117942 "2018-02-01T07:54:49Z")

</div>

Hi, I am using elasticsearch 6.0.0. I want to encode username and password using Base64. But there is no Base64 class present in jar. Please reply. client.threadPool().getThreadContext().putHeader("Authorization", "Bas…

---

## [Elasticsearch - SearchHit](https://discuss.elastic.co/t/elasticsearch-searchhit/117820)

<div class="topic-metadata">

**Author:** [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Replies:** 3\
**Last updated:** [February 1, 2018, 7:52am UTC](https://discuss.elastic.co/t/elasticsearch-searchhit/117820 "2018-02-01T07:52:15Z")

</div>

How I can establish more then 10 hits (SearchHit) in SearchResponse? By default I have only 10 hits and can't get more. When I do searchResponse.getHits(), I get only 10 hits.

---

## [Error while creating big script inline or stored](https://discuss.elastic.co/t/error-while-creating-big-script-inline-or-stored/117773)

<div class="topic-metadata">

**Author:** [@nrmohta](https://discuss.elastic.co/u/nrmohta)\
**Replies:** 2\
**Last updated:** [February 1, 2018, 7:47am UTC](https://discuss.elastic.co/t/error-while-creating-big-script-inline-or-stored/117773 "2018-02-01T07:47:02Z")

</div>

Hi Team, While trying to create inline or stored script with bigger data, we are getting below exception. Caused by: ScriptException\[compile error\]; nested: IllegalArgumentException\[Scripts may be no longer than 16384 …

---

## [Mapping with Field with two possible types](https://discuss.elastic.co/t/mapping-with-field-with-two-possible-types/117914)

<div class="topic-metadata">

**Author:** [@Emilio\_Srougo](https://discuss.elastic.co/u/Emilio_Srougo)\
**Replies:** 2\
**Last updated:** [February 1, 2018, 7:34am UTC](https://discuss.elastic.co/t/mapping-with-field-with-two-possible-types/117914 "2018-02-01T07:34:05Z")

</div>

Hi, Is it possible to have a mapping with a field that could have two different types? For example, either object or string

---

## [The exact matching result not coming in the top](https://discuss.elastic.co/t/the-exact-matching-result-not-coming-in-the-top/114025)

<div class="topic-metadata">

**Author:** [@aavrug](https://discuss.elastic.co/u/aavrug)\
**Replies:** 3\
**Last updated:** [February 1, 2018, 7:33am UTC](https://discuss.elastic.co/t/the-exact-matching-result-not-coming-in-the-top/114025 "2018-02-01T07:33:46Z")

</div>

This is the what I am trying with but I am getting Angular Js in the last and Js in the first. I want to give priority to Angular Js then Angular and so on. I also implemented the order. { "sort": \[ { "thres…

---

## [Unable to Restore indices through Snapshot](https://discuss.elastic.co/t/unable-to-restore-indices-through-snapshot/117868)

<div class="topic-metadata">

**Author:** [@Nagesh\_Kumar](https://discuss.elastic.co/u/Nagesh_Kumar)\
**Replies:** 3\
**Last updated:** [February 1, 2018, 7:31am UTC](https://discuss.elastic.co/t/unable-to-restore-indices-through-snapshot/117868 "2018-02-01T07:31:50Z")

</div>

When i tried to Restore indices through Snapshot by below Command curl -XPOST "http://localhost:9200/\_snapshot/cs-automated/2018-01-21t00-43-52.c6293dff-3b5b-48c1-aec2-09d90856cea1/\_restore" -H 'Content-Type: applicatio…

---

## [How to pass username and password using transport client](https://discuss.elastic.co/t/how-to-pass-username-and-password-using-transport-client/117938)

<div class="topic-metadata">

**Author:** [@ajit](https://discuss.elastic.co/u/ajit)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 6:23am UTC](https://discuss.elastic.co/t/how-to-pass-username-and-password-using-transport-client/117938 "2018-02-01T06:23:31Z")

</div>

Hi, I am using search guard on elasticsearch. In my java code i have used Transport client. But I am not able to access index. Exception is ElasticsearchSecurityException\[No user found for indices:data/read/search\]. I…

---

## [Build failure-2.4.4 snapshot](https://discuss.elastic.co/t/build-failure-2-4-4-snapshot/117784)

<div class="topic-metadata">

**Author:** [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Replies:** 6\
**Last updated:** [February 1, 2018, 3:39am UTC](https://discuss.elastic.co/t/build-failure-2-4-4-snapshot/117784 "2018-02-01T03:39:40Z")

</div>

Hi All, i know 2.4.4 has been released but i'm doing the same on eclipse through source code and getting below error. please look into this and reply. Thanks in advance. Building Distribution: Parent POM 2.4.4-SNAPSHO…

---

## [Inconsistent results from Hive Query of ES table](https://discuss.elastic.co/t/inconsistent-results-from-hive-query-of-es-table/117922)

<div class="topic-metadata">

**Author:** [@Sharon\_L](https://discuss.elastic.co/u/Sharon_L)\
**Replies:** 1\
**Last updated:** [February 1, 2018, 2:38am UTC](https://discuss.elastic.co/t/inconsistent-results-from-hive-query-of-es-table/117922 "2018-02-01T02:38:10Z")

</div>

Hi, I created an external table of an ES index in Hive and configured a query using es.query. The number of records returned through the hive query is less then that of a direct query using ES. How do we get the Hive qu…

---

## [Is there a way of querying all the fields without knowing their names?](https://discuss.elastic.co/t/is-there-a-way-of-querying-all-the-fields-without-knowing-their-names/117919)

<div class="topic-metadata">

**Author:** [@anon44344346](https://discuss.elastic.co/u/anon44344346)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 1:48am UTC](https://discuss.elastic.co/t/is-there-a-way-of-querying-all-the-fields-without-knowing-their-names/117919 "2018-02-01T01:48:05Z")

</div>

Continuing the discussion from Dazzled and confused with the \_all field in 6.+: That's precisely what I want the \_all field for. My current queries are: { "query": { "multi\_match": { "query": "something", …

---

## [Repository S3 plugin amazon\_client\_exception](https://discuss.elastic.co/t/repository-s3-plugin-amazon-client-exception/117126)

<div class="topic-metadata">

**Author:** [@mmarinm](https://discuss.elastic.co/u/mmarinm)\
**Replies:** 7\
**Last updated:** [January 31, 2018, 10:24pm UTC](https://discuss.elastic.co/t/repository-s3-plugin-amazon-client-exception/117126 "2018-01-31T22:24:44Z")

</div>

Hi, I need some help with the issue I am getting when I try to take a snapshot with repository s3 plugin. I can't figure out what is the reason for the error. I don't know Java. But as far as I could understand it seems …

---

## [Reading from ES using spark issues (colon in options)](https://discuss.elastic.co/t/reading-from-es-using-spark-issues-colon-in-options/117503)

<div class="topic-metadata">

**Author:** [@Sonny\_Heer](https://discuss.elastic.co/u/Sonny_Heer)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 10:23pm UTC](https://discuss.elastic.co/t/reading-from-es-using-spark-issues-colon-in-options/117503 "2018-01-31T22:23:34Z")

</div>

We ran into various issues with empty arrays etc. after reading through the forums - we go past those. Currently when using "es.read.field.as.array.include" and the field happens to have a colon in it (e.g. a:b) - this…

---

## [Setting AWS Snapshot Repository Fails For VirtualHost](https://discuss.elastic.co/t/setting-aws-snapshot-repository-fails-for-virtualhost/117903)

<div class="topic-metadata">

**Author:** [@Steven\_Arnott](https://discuss.elastic.co/u/Steven_Arnott)\
**Replies:** 3\
**Last updated:** [January 31, 2018, 9:37pm UTC](https://discuss.elastic.co/t/setting-aws-snapshot-repository-fails-for-virtualhost/117903 "2018-01-31T21:37:19Z")

</div>

ES 5.6.3 When setting up a S3 snapshot repository, using the default endpoint works { "type" : "s3", "settings" : { "bucket" : "a-bucket", "region" : "us-east-1" } } However, as we are using a proxy to get to AWS, we…

---

## [Monitor elapsed time on events for a processing plant](https://discuss.elastic.co/t/monitor-elapsed-time-on-events-for-a-processing-plant/117904)

<div class="topic-metadata">

**Author:** [@jonasdig](https://discuss.elastic.co/u/jonasdig)\
**Replies:** 3\
**Last updated:** [January 31, 2018, 9:48pm UTC](https://discuss.elastic.co/t/monitor-elapsed-time-on-events-for-a-processing-plant/117904 "2018-01-31T21:48:35Z")

</div>

Hi I am new to Elasticsearch and is currently evaluating if it is the right system for us. I work for a processing plant and want to get more insight into our data. One of the futures that I want is to process the event…

---

## [Running Elasticsearch on Ubuntu - Java error](https://discuss.elastic.co/t/running-elasticsearch-on-ubuntu-java-error/117893)

<div class="topic-metadata">

**Author:** [@geoff\_yalo](https://discuss.elastic.co/u/geoff_yalo)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 9:00pm UTC](https://discuss.elastic.co/t/running-elasticsearch-on-ubuntu-java-error/117893 "2018-01-31T21:00:16Z")

</div>

Hi, I have successfully installed elasticsearch on my desktop, yet am running into issues when I try to run it. Here is what I see: \[image\] Here is what I see when I run echo $JAVA\_HOME: \[image\] Anyone have an idea …

---

## [Master node discovery is not working](https://discuss.elastic.co/t/master-node-discovery-is-not-working/117881)

<div class="topic-metadata">

**Author:** [@LogBabel](https://discuss.elastic.co/u/LogBabel)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 8:59pm UTC](https://discuss.elastic.co/t/master-node-discovery-is-not-working/117881 "2018-01-31T20:59:47Z")

</div>

Hello all, Here's another problem with our cluster I cannot understand. When a node (node1) drops from the cluster the other nodes continue trying to use node1 as master. For some reason the master reelection is not t…

---

## [How to model data for time-based joins?](https://discuss.elastic.co/t/how-to-model-data-for-time-based-joins/117896)

<div class="topic-metadata">

**Author:** [@rsk](https://discuss.elastic.co/u/rsk)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 8:59pm UTC](https://discuss.elastic.co/t/how-to-model-data-for-time-based-joins/117896 "2018-01-31T20:59:21Z")

</div>

Hi, I'm just getting started with ElasticSearch and I'm trying to figure out the best way to model my data. Any and all input is appreciated. My scenario is this: I have a set of Stores which sell Products. Each day I …

---

## [Split brain on cluster restart](https://discuss.elastic.co/t/split-brain-on-cluster-restart/117901)

<div class="topic-metadata">

**Author:** [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 8:57pm UTC](https://discuss.elastic.co/t/split-brain-on-cluster-restart/117901 "2018-01-31T20:57:56Z")

</div>

I'm curious: if I have a cluster of 3 nodes and have set the minimum number of master nodes to be 2 to prevent split brain issues, wouldn't it still be susceptible to split brain when restarting one of the nodes since it…

---

## [Configuring ssl from letsencrypt](https://discuss.elastic.co/t/configuring-ssl-from-letsencrypt/117871)

<div class="topic-metadata">

**Author:** [@Frederic\_Gauld](https://discuss.elastic.co/u/Frederic_Gauld)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 8:46pm UTC](https://discuss.elastic.co/t/configuring-ssl-from-letsencrypt/117871 "2018-01-31T20:46:03Z")

</div>

Hi! I'm new here, so I apologize in advance for possibly inquiring about something that may seem obvious. Elasticsearch version : 6.1 X-Pack version: 6.1 I've been struggling since yesterday to get secured https setu…

---

## [Confusion with display message while bulk insert is happening](https://discuss.elastic.co/t/confusion-with-display-message-while-bulk-insert-is-happening/117559)

<div class="topic-metadata">

**Author:** [@dipanjan44](https://discuss.elastic.co/u/dipanjan44)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 8:00pm UTC](https://discuss.elastic.co/t/confusion-with-display-message-while-bulk-insert-is-happening/117559 "2018-01-31T20:00:57Z")

</div>

I am using rally 0.8 and while doing a bulk-index it is showing messages like: \[INFO\] Rally will delete the benchmark candidate after the benchmark \[INFO\] Racing on track \[xxx\], challenge \[createindex\] and car \['defaul…

---

## [Flush threads stuck \[ES 6.1.2\]](https://discuss.elastic.co/t/flush-threads-stuck-es-6-1-2/117707)

<div class="topic-metadata">

**Author:** [@loren](https://discuss.elastic.co/u/loren)\
**Replies:** 3\
**Last updated:** [January 31, 2018, 7:46pm UTC](https://discuss.elastic.co/t/flush-threads-stuck-es-6-1-2/117707 "2018-01-31T19:46:25Z")

</div>

I have run into an issue a few times now where a node is not receiving any requests but is using ~50% CPU indefinitely. Looking at GET /\_cat/thread\_pool?v, I see 1 or more active flush thread. This node seems to have 4 …

---

## [Understanding doc\_count\_error\_upper\_bound](https://discuss.elastic.co/t/understanding-doc-count-error-upper-bound/117877)

<div class="topic-metadata">

**Author:** [@javadevmtl](https://discuss.elastic.co/u/javadevmtl)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 7:09pm UTC](https://discuss.elastic.co/t/understanding-doc-count-error-upper-bound/117877 "2018-01-31T19:09:24Z")

</div>

So I read the docs but still a bit confused, or it's just not clicking.... If I use size: 512 I get doc\_count\_error\_upper\_bound: 45 and sum\_other\_doc\_count: 29728 If I use size: 8192 (YES I know I should NOT use large …

---

## [Painless script : Appender deprecation\_rolling java.security.AccessContaccess denied](https://discuss.elastic.co/t/painless-script-appender-deprecation-rolling-java-security-accesscontaccess-denied/117313)

<div class="topic-metadata">

**Author:** [@anon24174512](https://discuss.elastic.co/u/anon24174512)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 6:04pm UTC](https://discuss.elastic.co/t/painless-script-appender-deprecation-rolling-java-security-accesscontaccess-denied/117313 "2018-01-31T18:04:15Z")

</div>

Hello, I setup a painless script in Kibana which generates the following error (full exception below): AccessControlException: access denied ("java.io.FilePermission" "/opt/elasticsearch/elasticsearch-6.1.1/logs" "rea…

---

## [Search date in query string query](https://discuss.elastic.co/t/search-date-in-query-string-query/117838)

<div class="topic-metadata">

**Author:** [@Hayk\_Hovhanisyan](https://discuss.elastic.co/u/Hayk_Hovhanisyan)\
**Replies:** 4\
**Last updated:** [January 31, 2018, 5:44pm UTC](https://discuss.elastic.co/t/search-date-in-query-string-query/117838 "2018-01-31T17:44:08Z")

</div>

ElasticSearch "2.4.4" Java "1.8.0\_151" Hi there, I am using query string query, and I need to have matching: Data: "text" : "8 Derailed 2017-07-17 user user Dermot Mac Ateer 2017-07-03 2017-07-11" User Input: 2017-0…

---

## [Word count from documents](https://discuss.elastic.co/t/word-count-from-documents/117379)

<div class="topic-metadata">

**Author:** [@manasguduri](https://discuss.elastic.co/u/manasguduri)\
**Replies:** 9\
**Last updated:** [January 31, 2018, 5:51pm UTC](https://discuss.elastic.co/t/word-count-from-documents/117379 "2018-01-31T17:51:04Z")

</div>

Is it possible to index a pdf document to visualize the count of words or like top 10 words with their count ? Thanks in advance.

---

## [Can't lock memory on ES cluster](https://discuss.elastic.co/t/cant-lock-memory-on-es-cluster/117749)

<div class="topic-metadata">

**Author:** [@animageofmine](https://discuss.elastic.co/u/animageofmine)\
**Replies:** 4\
**Last updated:** [January 31, 2018, 5:03pm UTC](https://discuss.elastic.co/t/cant-lock-memory-on-es-cluster/117749 "2018-01-31T17:03:25Z")

</div>

ES runs in a docker container (debian using .deb installation). A cluster has dedicated master nodes and data nodes. The node keeps failing with an error: \[1\] bootstrap checks failed \[1\]: memory locking requested for el…

---

## [Setting up Elasticsearch in Eclipse](https://discuss.elastic.co/t/setting-up-elasticsearch-in-eclipse/117823)

<div class="topic-metadata">

**Author:** [@behnrocker](https://discuss.elastic.co/u/behnrocker)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 4:33pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-in-eclipse/117823 "2018-01-31T16:33:56Z")

</div>

Hey everyone, I'm having some issues getting ES set up in Eclipse, both in Windows and in Ubuntu. Since I'm having issues in both, it must be something I'm doing, so I'm turning to everyone here. I'm new to ES, as well …

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

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