# Elasticsearch

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

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

**Page:** 1676

---

## [Scripting, get value that matched a field](https://discuss.elastic.co/t/scripting-get-value-that-matched-a-field/133503)

<div class="topic-metadata">

**Author:** [@Oskars\_Pozdnakovs](https://discuss.elastic.co/u/Oskars_Pozdnakovs)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 9:24am UTC](https://discuss.elastic.co/t/scripting-get-value-that-matched-a-field/133503 "2018-05-28T09:24:37Z")

</div>

I was wondering if it's possible to obtain the value from a query which matched a particular field to use it in a custom boosting script. I essentially need to calculate the score of how well a value from multi\_match qu…

---

## [Elasticsearch functions script\_score only last effective](https://discuss.elastic.co/t/elasticsearch-functions-script-score-only-last-effective/133499)

<div class="topic-metadata">

**Author:** [@yaoqijun](https://discuss.elastic.co/u/yaoqijun)\
**Replies:** 1\
**Last updated:** [May 28, 2018, 9:08am UTC](https://discuss.elastic.co/t/elasticsearch-functions-script-score-only-last-effective/133499 "2018-05-28T09:08:34Z")

</div>

this is my request struct { "from":0, "size":100, "query":{ "function\_score":{ "query":{ "bool":{ "must":{ "dis\_max":{ "tie\_breaker":0.3, "queries":\[ { "match":{ "class\_name":{ "query":"小组课名称", "type":"bo…

---

## [Install the Elastic Stack with Docker and manage it with Kubernetes](https://discuss.elastic.co/t/install-the-elastic-stack-with-docker-and-manage-it-with-kubernetes/133491)

<div class="topic-metadata">

**Author:** [@kyuubi](https://discuss.elastic.co/u/kyuubi)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 8:45am UTC](https://discuss.elastic.co/t/install-the-elastic-stack-with-docker-and-manage-it-with-kubernetes/133491 "2018-05-28T08:45:51Z")

</div>

Hi guys, currently I am running the following set-up: 1 server with Elasticsearch, Kibana, Logstash 1 server with Metricbeat, Filebeat and the components where I receive my data What's the easiest way to install all t…

---

## [Index pdf files to AWS Elasticsearch service using Elasticsearch File System Crawler](https://discuss.elastic.co/t/index-pdf-files-to-aws-elasticsearch-service-using-elasticsearch-file-system-crawler/132666)

<div class="topic-metadata">

**Author:** [@Fish](https://discuss.elastic.co/u/Fish)\
**Replies:** 1\
**Last updated:** [May 28, 2018, 8:39am UTC](https://discuss.elastic.co/t/index-pdf-files-to-aws-elasticsearch-service-using-elasticsearch-file-system-crawler/132666 "2018-05-28T08:39:20Z")

</div>

I can index pdf files to a local Elasticsearch using Elasticsearch File System Crawler. The default, fscrawler setting has port, host and scheme parameters as shown below. { "name" : "job\_name2", "fs" : { "url" …

---

## [Machine with Elasticsearch close conexion error](https://discuss.elastic.co/t/machine-with-elasticsearch-close-conexion-error/133489)

<div class="topic-metadata">

**Author:** [@Ramon\_Saborit\_Villal](https://discuss.elastic.co/u/Ramon_Saborit_Villal)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 8:30am UTC](https://discuss.elastic.co/t/machine-with-elasticsearch-close-conexion-error/133489 "2018-05-28T08:30:19Z")

</div>

Hi, I am new in Elasticsearch. I have this problem with elasticsearch and don't understand the real meaning of this message: \[2018-05-25T18:50:02,710\]\[WARN \]\[o.e.h.n.Netty4HttpServerTransport\] \[nodo de ramon\] caught exc…

---

## [Coordinator node authentication problem](https://discuss.elastic.co/t/coordinator-node-authentication-problem/133332)

<div class="topic-metadata">

**Author:** [@mkemalm](https://discuss.elastic.co/u/mkemalm)\
**Replies:** 7\
**Last updated:** [May 28, 2018, 7:30am UTC](https://discuss.elastic.co/t/coordinator-node-authentication-problem/133332 "2018-05-28T07:30:14Z")

</div>

Hi, I have a multi-node elasticsearch installation(3 master nodes at the same time data nodes) and a coordinator node with kibana instance on it. I executed setup\_passwords script on master node, I can authenticate wit…

---

## [Why search give me strange result?](https://discuss.elastic.co/t/why-search-give-me-strange-result/133146)

<div class="topic-metadata">

**Author:** [@Vladimir\_Fomin](https://discuss.elastic.co/u/Vladimir_Fomin)\
**Replies:** 5\
**Last updated:** [May 28, 2018, 6:51am UTC](https://discuss.elastic.co/t/why-search-give-me-strange-result/133146 "2018-05-28T06:51:24Z")

</div>

Can you explain me why this search string: netflow.ipv4\_src\_addr:\[192.168.150.0 TO 192.168.255.255\] give me ip addresses from 192.168.2.0, 192.168.23.0 etc. I expected something like 192.168.150.xx, 192.168.151.xx ... …

---

## [How to use JSON query with RestHighLevelClient API](https://discuss.elastic.co/t/how-to-use-json-query-with-resthighlevelclient-api/133267)

<div class="topic-metadata">

**Author:** [@Mai\_3n](https://discuss.elastic.co/u/Mai_3n)\
**Replies:** 2\
**Last updated:** [May 28, 2018, 5:09am UTC](https://discuss.elastic.co/t/how-to-use-json-query-with-resthighlevelclient-api/133267 "2018-05-28T05:09:01Z")

</div>

Hi, Now I'm using "org.elasticsearch.client:elasticsearch-rest-high-level-client:6.2.4" in my java application. I know that TransportClient will be deprecated in 7.0, so I'm trying to use RestHighLevelClient instead. B…

---

## [Access the matched analysed term in script\_score?](https://discuss.elastic.co/t/access-the-matched-analysed-term-in-script-score/133448)

<div class="topic-metadata">

**Author:** [@NewHere](https://discuss.elastic.co/u/NewHere)\
**Replies:** 0\
**Last updated:** [May 28, 2018, 3:55am UTC](https://discuss.elastic.co/t/access-the-matched-analysed-term-in-script-score/133448 "2018-05-28T03:55:12Z")

</div>

I am using function\_score to supply my custom script to compute the score, I know I can access the field value via "doc\['field'\].value", but how do you access the actual matched term? In fact, what I wanted to achieve i…

---

## [How to use the Java API to build an Aggregation from JSON in 6.2.4?](https://discuss.elastic.co/t/how-to-use-the-java-api-to-build-an-aggregation-from-json-in-6-2-4/131129)

<div class="topic-metadata">

**Author:** [@luxiaoxun](https://discuss.elastic.co/u/luxiaoxun)\
**Replies:** 4\
**Last updated:** [May 25, 2018, 10:05am UTC](https://discuss.elastic.co/t/how-to-use-the-java-api-to-build-an-aggregation-from-json-in-6-2-4/131129 "2018-05-25T10:05:57Z")

</div>

I found the same question here. But this is not working in ES 6.2.4. In old version, we can do this: SearchRequestBuilder builder = client.prepareSearch(index); QueryBuilder queryBuilder = getQueryBuilder(query); bui…

---

## [Aggregation is too slow](https://discuss.elastic.co/t/aggregation-is-too-slow/133424)

<div class="topic-metadata">

**Author:** [@cool\_arun](https://discuss.elastic.co/u/cool_arun)\
**Replies:** 7\
**Last updated:** [May 27, 2018, 6:15pm UTC](https://discuss.elastic.co/t/aggregation-is-too-slow/133424 "2018-05-27T18:15:44Z")

</div>

Hi sir, i'm new to elasticsearch, i have more than 2.5 crores of data in elasticsearch index on a single node cluster, when i perform aggregation query it takes lot of time and even get timeout. i think i'm doing somet…

---

## [Elastic search stats to Kibana](https://discuss.elastic.co/t/elastic-search-stats-to-kibana/133214)

<div class="topic-metadata">

**Author:** [@pamamolf](https://discuss.elastic.co/u/pamamolf)\
**Replies:** 6\
**Last updated:** [May 27, 2018, 8:48am UTC](https://discuss.elastic.co/t/elastic-search-stats-to-kibana/133214 "2018-05-27T08:48:02Z")

</div>

Hello I have a working elastic search on my server and i was checking to use Kibana for search stats but i am not sure if i must use also logstash to get this work... Any tutorials? Thank you

---

## [Questions on basic license which will allow me to use watcher service](https://discuss.elastic.co/t/questions-on-basic-license-which-will-allow-me-to-use-watcher-service/133411)

<div class="topic-metadata">

**Author:** [@arundeepreddy](https://discuss.elastic.co/u/arundeepreddy)\
**Replies:** 2\
**Last updated:** [May 27, 2018, 8:00am UTC](https://discuss.elastic.co/t/questions-on-basic-license-which-will-allow-me-to-use-watcher-service/133411 "2018-05-27T08:00:33Z")

</div>

Hi Guys, I got the basic version x-pack license today, when I checked my trial\_status it shows that I'm not eligible to start a free trail. Can I get some help on the same ? I wanted to play around with the watcher ser…

---

## [Elasticsearch can't process data](https://discuss.elastic.co/t/elasticsearch-cant-process-data/133415)

<div class="topic-metadata">

**Author:** [@dorinand](https://discuss.elastic.co/u/dorinand)\
**Replies:** 0\
**Last updated:** [May 27, 2018, 7:07am UTC](https://discuss.elastic.co/t/elasticsearch-cant-process-data/133415 "2018-05-27T07:07:21Z")

</div>

I have configured persistent queue and the queue is full. Suddenly I receive this error log on my logstash server: \[2018-05-27T08:46:23,536\]\[ERROR\]\[logstash.outputs.elasticsearch\] Encountered a retryable error. Will Ret…

---

## [Unable to see index pattern in Kibana](https://discuss.elastic.co/t/unable-to-see-index-pattern-in-kibana/133408)

<div class="topic-metadata">

**Author:** [@Saba\_Baig](https://discuss.elastic.co/u/Saba_Baig)\
**Replies:** 0\
**Last updated:** [May 26, 2018, 9:43pm UTC](https://discuss.elastic.co/t/unable-to-see-index-pattern-in-kibana/133408 "2018-05-26T21:43:57Z")

</div>

Hi, I have an index in kibana and I want to visualize the data in it. for this purpose whenever I create an index pattern, I'm no no longer able to either find index pattern under management/index patterns nor I can dis…

---

## [Unable to establish SSL connection with ElasticSearch 6.x using Rest Client](https://discuss.elastic.co/t/unable-to-establish-ssl-connection-with-elasticsearch-6-x-using-rest-client/133320)

<div class="topic-metadata">

**Author:** [@Aishwarya\_S](https://discuss.elastic.co/u/Aishwarya_S)\
**Replies:** 3\
**Last updated:** [May 26, 2018, 7:13pm UTC](https://discuss.elastic.co/t/unable-to-establish-ssl-connection-with-elasticsearch-6-x-using-rest-client/133320 "2018-05-26T19:13:09Z")

</div>

I am using the following code snippet to establish an SSL connection to ElasticSearch. KeyStore sslAuth = KeyStore.getInstance("jks"); OpenOption\[\] options = new OpenOption\[\] { StandardOpenOption.READ }…

---

## [How to get only documents that exact match with array of values?](https://discuss.elastic.co/t/how-to-get-only-documents-that-exact-match-with-array-of-values/133354)

<div class="topic-metadata">

**Author:** [@vasanth\_kumar](https://discuss.elastic.co/u/vasanth_kumar)\
**Replies:** 6\
**Last updated:** [May 26, 2018, 12:32pm UTC](https://discuss.elastic.co/t/how-to-get-only-documents-that-exact-match-with-array-of-values/133354 "2018-05-26T12:32:02Z")

</div>

How to get only documents that exact match with array of values?. for ex: I have a document, doc 1: { "names":\["a","b","c"\] } doc 2: { "names":\["a","c"\] } search query: { "names":\["a","c"\] } from this query…

---

## [Odd error creating index via Rest API (ES 6.2.2)](https://discuss.elastic.co/t/odd-error-creating-index-via-rest-api-es-6-2-2/132602)

<div class="topic-metadata">

**Author:** [@atulsudhalkar](https://discuss.elastic.co/u/atulsudhalkar)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 11:45am UTC](https://discuss.elastic.co/t/odd-error-creating-index-via-rest-api-es-6-2-2/132602 "2018-05-26T11:45:51Z")

</div>

I'm trying to use the ES High-level Rest Client to integrate to ES (6.2.2) from my Java code. Here's the test class I wrote to re-create the problem. The code works as written, but the commented out code doesn't work. Bu…

---

## [How are fields handled when an index name does not match any templates?](https://discuss.elastic.co/t/how-are-fields-handled-when-an-index-name-does-not-match-any-templates/132848)

<div class="topic-metadata">

**Author:** [@cb2015](https://discuss.elastic.co/u/cb2015)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 6:56am UTC](https://discuss.elastic.co/t/how-are-fields-handled-when-an-index-name-does-not-match-any-templates/132848 "2018-05-26T06:56:04Z")

</div>

Hello, This is less of a support question, and more of an curiosity one. If I have an index named "mycoolindex-5000", and have no templates that will match that index name, my fields will generally still come out just …

---

## [Creation Index](https://discuss.elastic.co/t/creation-index/132957)

<div class="topic-metadata">

**Author:** [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 6:51am UTC](https://discuss.elastic.co/t/creation-index/132957 "2018-05-26T06:51:50Z")

</div>

Hello, I have a very naive question but I can not find a solution. By launching logstash with this config file (just after), it creates several indexes in elasticsearch. input { file { path =\> "/home/ahmed/Bu…

---

## [Trying to force merge index](https://discuss.elastic.co/t/trying-to-force-merge-index/133209)

<div class="topic-metadata">

**Author:** [@Rah](https://discuss.elastic.co/u/Rah)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 5:49am UTC](https://discuss.elastic.co/t/trying-to-force-merge-index/133209 "2018-05-26T05:49:34Z")

</div>

Hi, I am trying to force purge document immediately after deleting . I am unable to perform it without full re-indexing. I deleted 3 document in total of 10, but the total document in ES still shows 10. Following are …

---

## [I have primitive fields and disabled norms on all text fields, the nvd file still created and occupies ~2GB space?](https://discuss.elastic.co/t/i-have-primitive-fields-and-disabled-norms-on-all-text-fields-the-nvd-file-still-created-and-occupies-2gb-space/133229)

<div class="topic-metadata">

**Author:** [@umahida](https://discuss.elastic.co/u/umahida)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 5:45am UTC](https://discuss.elastic.co/t/i-have-primitive-fields-and-disabled-norms-on-all-text-fields-the-nvd-file-still-created-and-occupies-2gb-space/133229 "2018-05-26T05:45:48Z")

</div>

I have datetimes, ip fields, numeric fields and text/keyword fields. I have explicitly disabled norms on text & keyword fields. Why is lucene creating nvd files in segments still ? and why is in order of GB for 36GB inde…

---

## [ElasticSearch-6.2.4 Fatal error](https://discuss.elastic.co/t/elasticsearch-6-2-4-fatal-error/133290)

<div class="topic-metadata">

**Author:** [@Vadim\_Klimenko](https://discuss.elastic.co/u/Vadim_Klimenko)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 5:43am UTC](https://discuss.elastic.co/t/elasticsearch-6-2-4-fatal-error/133290 "2018-05-26T05:43:04Z")

</div>

Fatal error: Uncaught Elasticsearch\\Common\\Exceptions\\BadRequest400Exception: {"error":"Content-Type header is not supported","status":406} in /home/vadim/www/FULL/Search/vendor/elasticsearch/elasticsearch/src/Elasticse…

---

## [Nested integer\_range mappings/query?](https://discuss.elastic.co/t/nested-integer-range-mappings-query/133085)

<div class="topic-metadata">

**Author:** [@panthersquirrel](https://discuss.elastic.co/u/panthersquirrel)\
**Replies:** 7\
**Last updated:** [May 26, 2018, 5:40am UTC](https://discuss.elastic.co/t/nested-integer-range-mappings-query/133085 "2018-05-26T05:40:37Z")

</div>

Suppose i want this structure for a user document: /users/\_doc/1 { hours: { open: \[ { gte: 10, lt: 20 }, { gte: 30, lt: 40 } ... \], closed: \[ …

---

## [Rejecting mapping update to \[magasin\] as the final mapping would have more than 1 type: \[magasin, rayon, etagere\]](https://discuss.elastic.co/t/rejecting-mapping-update-to-magasin-as-the-final-mapping-would-have-more-than-1-type-magasin-rayon-etagere/133337)

<div class="topic-metadata">

**Author:** [@Alain\_Ouakbar\_Tabba](https://discuss.elastic.co/u/Alain_Ouakbar_Tabba)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 5:39am UTC](https://discuss.elastic.co/t/rejecting-mapping-update-to-magasin-as-the-final-mapping-would-have-more-than-1-type-magasin-rayon-etagere/133337 "2018-05-26T05:39:00Z")

</div>

Hi, I ve got a big problem : while doing this command : php bin/console fos:elastica:populate i ve got this message :slight\_smile: \[Elastica\\Exception\\ResponseException\] Rejecting mapping update to \[magasin\] as th…

---

## [How to elasticsearch return all hits](https://discuss.elastic.co/t/how-to-elasticsearch-return-all-hits/133373)

<div class="topic-metadata">

**Author:** [@Ho\_Duc\_Khoa](https://discuss.elastic.co/u/Ho_Duc_Khoa)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 5:34am UTC](https://discuss.elastic.co/t/how-to-elasticsearch-return-all-hits/133373 "2018-05-26T05:34:25Z")

</div>

Code : $client = ClientBuilder::create()-\>build(); $params = \[ 'index' =\> 'rbmq', 'type' =\> 'users', 'body' =\> \[ 'query' =\> \[ 'match' =\> \[ 'email' =\> \[ 'query' =\>'@gmail.com', 'operator'=\>'and' \] \], \] \] \]; $results = $c…

---

## [Nested/hierarchical Elasticsearch query syntax?](https://discuss.elastic.co/t/nested-hierarchical-elasticsearch-query-syntax/133362)

<div class="topic-metadata">

**Author:** [@jlixfeld](https://discuss.elastic.co/u/jlixfeld)\
**Replies:** 1\
**Last updated:** [May 26, 2018, 5:30am UTC](https://discuss.elastic.co/t/nested-hierarchical-elasticsearch-query-syntax/133362 "2018-05-26T05:30:30Z")

</div>

Hey there, I'm having a hard time wrapping my head around Elasticsearch search syntax in Kibana. I have created this filter that works: { "query": { "bool": { "should": \[ { "match": { …

---

## [Sort dynamic created keyword multi-field](https://discuss.elastic.co/t/sort-dynamic-created-keyword-multi-field/132301)

<div class="topic-metadata">

**Author:** [@mix359](https://discuss.elastic.co/u/mix359)\
**Replies:** 1\
**Last updated:** [May 25, 2018, 10:08pm UTC](https://discuss.elastic.co/t/sort-dynamic-created-keyword-multi-field/132301 "2018-05-25T22:08:10Z")

</div>

Hi to all, I've started using ES 6 for a project where I'm indexing the objects of an inventory. Those object have some fixed fields and some additional fields that I have indexed in a dynamic object. I have also used…

---

## [A cool use case of Elasticsearch](https://discuss.elastic.co/t/a-cool-use-case-of-elasticsearch/133366)

<div class="topic-metadata">

**Author:** [@Sheker](https://discuss.elastic.co/u/Sheker)\
**Replies:** 0\
**Last updated:** [May 25, 2018, 9:44pm UTC](https://discuss.elastic.co/t/a-cool-use-case-of-elasticsearch/133366 "2018-05-25T21:44:25Z")

</div>

Very interesting. Combines free text search, highlighting, geolocation and basically all the good stuff in elasticsearch. search page: https://copernix.io examples: https://copernix.io/about

---

## [Does ES 6.2 supports script files under config/scripts folder](https://discuss.elastic.co/t/does-es-6-2-supports-script-files-under-config-scripts-folder/132861)

<div class="topic-metadata">

**Author:** [@mingc](https://discuss.elastic.co/u/mingc)\
**Replies:** 1\
**Last updated:** [May 25, 2018, 4:58pm UTC](https://discuss.elastic.co/t/does-es-6-2-supports-script-files-under-config-scripts-folder/132861 "2018-05-25T16:58:27Z")

</div>

Hi all, I am currently using ES 1.6 and trying to upgrade to 6.2. As part of the upgrade, I need to add some scripting functionalities. In 1.6 documentation, I found ES allows you to put a script under config/scripts fo…

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

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