# Elasticsearch

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

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

**Page:** 1221

---

## [Add multiple path\_match in dynamic templates](https://discuss.elastic.co/t/add-multiple-path-match-in-dynamic-templates/190908)

<div class="topic-metadata">

**Author:** [@tomeri](https://discuss.elastic.co/u/tomeri)\
**Replies:** 1\
**Last updated:** [July 21, 2019, 8:34am UTC](https://discuss.elastic.co/t/add-multiple-path-match-in-dynamic-templates/190908 "2019-07-21T08:34:21Z")

</div>

Hi, I use dynamic mapping with some dynamic templates that I customized I'm trying to block the adding of new fields from type object by default, along with whitelisting some specific object fields. Here is the mappin…

---

## [How to return the field name when "best\_fields" matching mode is used?](https://discuss.elastic.co/t/how-to-return-the-field-name-when-best-fields-matching-mode-is-used/191495)

<div class="topic-metadata">

**Author:** [@germax](https://discuss.elastic.co/u/germax)\
**Replies:** 0\
**Last updated:** [July 21, 2019, 12:15am UTC](https://discuss.elastic.co/t/how-to-return-the-field-name-when-best-fields-matching-mode-is-used/191495 "2019-07-21T00:15:43Z")

</div>

When using "best\_fields" multi-matching mode, how can I get the name of the field that produced that best scoring hit? Should I dig into "explain: true" object or there are easier ways? I read docs, but couldn't find a …

---

## [How to use slop and minimum\_should\_match together in some query?](https://discuss.elastic.co/t/how-to-use-slop-and-minimum-should-match-together-in-some-query/190352)

<div class="topic-metadata">

**Author:** [@princesahu04](https://discuss.elastic.co/u/princesahu04)\
**Replies:** 1\
**Last updated:** [July 20, 2019, 8:40pm UTC](https://discuss.elastic.co/t/how-to-use-slop-and-minimum-should-match-together-in-some-query/190352 "2019-07-20T20:40:28Z")

</div>

Basically, my objective is to search for some sentences with slope and also with minimum\_should\_match. For example: \> GET my\_index/\_search \> { \> "query": { \> "field": "provided that immediately after giving effec…

---

## [Individually update a large amount of documents with the Python DSL](https://discuss.elastic.co/t/individually-update-a-large-amount-of-documents-with-the-python-dsl/189997)

<div class="topic-metadata">

**Author:** [@gbosetti](https://discuss.elastic.co/u/gbosetti)\
**Replies:** 1\
**Last updated:** [July 20, 2019, 8:17pm UTC](https://discuss.elastic.co/t/individually-update-a-large-amount-of-documents-with-the-python-dsl/189997 "2019-07-20T20:17:52Z")

</div>

Hi! I'm trying to use the UpdateByQuery to update a property of a large amount of documents. I got the new values by processing them with python, and now I need to update their values in the indexes. As each document has…

---

## [How does Elasticsearch process a query?](https://discuss.elastic.co/t/how-does-elasticsearch-process-a-query/191181)

<div class="topic-metadata">

**Author:** [@Sourav\_Paul](https://discuss.elastic.co/u/Sourav_Paul)\
**Replies:** 6\
**Last updated:** [July 20, 2019, 2:04pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-process-a-query/191181 "2019-07-20T14:04:45Z")

</div>

I want to have understanding on how search is being performed at Elasticsearch, when we place a query? I know, this is elaborative, but would appreciate if any expert shares deep insight on query processing. FYI, setup…

---

## [Proximity Search Syntax - Need Another Set of Eyes](https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622)

<div class="topic-metadata">

**Author:** [@Douglas\_McQuilken](https://discuss.elastic.co/u/Douglas_McQuilken)\
**Replies:** 2\
**Last updated:** [July 20, 2019, 1:08pm UTC](https://discuss.elastic.co/t/proximity-search-syntax-need-another-set-of-eyes/190622 "2019-07-20T13:08:30Z")

</div>

This "should" be trivial but the solution escapes me. The following query does what I need to do but I would like to improve precision using proximity. So 2-blade would become "2-blade"~2. This, would then be ANDed w…

---

## [Elasticsearch 7.2 not starting on CentOS 7 because of xpack.security.enabled setting](https://discuss.elastic.co/t/elasticsearch-7-2-not-starting-on-centos-7-because-of-xpack-security-enabled-setting/191055)

<div class="topic-metadata">

**Author:** [@vinodres](https://discuss.elastic.co/u/vinodres)\
**Replies:** 2\
**Last updated:** [July 20, 2019, 12:41pm UTC](https://discuss.elastic.co/t/elasticsearch-7-2-not-starting-on-centos-7-because-of-xpack-security-enabled-setting/191055 "2019-07-20T12:41:53Z")

</div>

I have just installed Elasticsearch 7.2 OSS (rpm) using Ansible 2.8.2 on a CentOS 7 POC server. The Ansible playbook ran successfully. I used following path to download it https://artifacts.elastic.co/downloads/elasti…

---

## [Elasticsearch shows points outside boundingbox nest](https://discuss.elastic.co/t/elasticsearch-shows-points-outside-boundingbox-nest/188130)

<div class="topic-metadata">

**Author:** [@Ilyoskhuja](https://discuss.elastic.co/u/Ilyoskhuja)\
**Replies:** 28\
**Last updated:** [July 20, 2019, 11:11am UTC](https://discuss.elastic.co/t/elasticsearch-shows-points-outside-boundingbox-nest/188130 "2019-07-20T11:11:36Z")

</div>

I use Bounding Box in elasticsearch but, I get points outside of box ,it never shows points inside this box. this my Code: var response = \_elasticClient.Search\<ElasticSearchModel\>( s =\> s.From((mod…

---

## [How to append to a existing list using Java for a given ID for bulk inserts/update](https://discuss.elastic.co/t/how-to-append-to-a-existing-list-using-java-for-a-given-id-for-bulk-inserts-update/191401)

<div class="topic-metadata">

**Author:** [@Susmit07](https://discuss.elastic.co/u/Susmit07)\
**Replies:** 12\
**Last updated:** [July 20, 2019, 9:40am UTC](https://discuss.elastic.co/t/how-to-append-to-a-existing-list-using-java-for-a-given-id-for-bulk-inserts-update/191401 "2019-07-20T09:40:05Z")

</div>

Hello Team, I am using this piece of code to update to the elasticsearch index, everything is working fine, but the document is having a list which is getting overridden, and not appended. I am using a bulkprocessor to …

---

## [How to get last X documents sorted by a timestamp](https://discuss.elastic.co/t/how-to-get-last-x-documents-sorted-by-a-timestamp/191046)

<div class="topic-metadata">

**Author:** [@jimmyn](https://discuss.elastic.co/u/jimmyn)\
**Replies:** 12\
**Last updated:** [July 20, 2019, 8:26am UTC](https://discuss.elastic.co/t/how-to-get-last-x-documents-sorted-by-a-timestamp/191046 "2019-07-20T08:26:47Z")

</div>

I have a huge set of email events of different types e.g. sent, delivered, complaint, bounced etc. My goal is: get the last 10k sent events sorted by a timestamp find the timestamp of the earliest event in this subset …

---

## [Querying the accessing documents from segments](https://discuss.elastic.co/t/querying-the-accessing-documents-from-segments/191463)

<div class="topic-metadata">

**Author:** [@vin0d](https://discuss.elastic.co/u/vin0d)\
**Replies:** 2\
**Last updated:** [July 20, 2019, 7:54am UTC](https://discuss.elastic.co/t/querying-the-accessing-documents-from-segments/191463 "2019-07-20T07:54:16Z")

</div>

As I understand when we query elastic search for documents, it will search in all the segments in shads and merge the result back. My query is whether searching each segments is it done sequentially? considering 100 se…

---

## [Painless script - variable logging for scoring analysis](https://discuss.elastic.co/t/painless-script-variable-logging-for-scoring-analysis/190167)

<div class="topic-metadata">

**Author:** [@peterkimmy](https://discuss.elastic.co/u/peterkimmy)\
**Replies:** 2\
**Last updated:** [July 20, 2019, 4:04am UTC](https://discuss.elastic.co/t/painless-script-variable-logging-for-scoring-analysis/190167 "2019-07-20T04:04:56Z")

</div>

Hello, I am using a painless script to implement a custom scoring function while querying the ES index, that's being used as a basis for our recommendation engine. While calculating the final score in the painless scrip…

---

## [Subtract numeric fields between two documents with different timestamp](https://discuss.elastic.co/t/subtract-numeric-fields-between-two-documents-with-different-timestamp/190685)

<div class="topic-metadata">

**Author:** [@darmanto](https://discuss.elastic.co/u/darmanto)\
**Replies:** 1\
**Last updated:** [July 20, 2019, 12:34am UTC](https://discuss.elastic.co/t/subtract-numeric-fields-between-two-documents-with-different-timestamp/190685 "2019-07-20T00:34:16Z")

</div>

Hello, Lets say I have these data samples: { "date": "2019-06-16", "rank": 150 "name": "doc 1" } { "date": "2019-07-16", "rank": 100 "name": "doc 1" } { "date": "2019-06-16", "rank": 5…

---

## [Minimum\_should\_match not working as expected](https://discuss.elastic.co/t/minimum-should-match-not-working-as-expected/190775)

<div class="topic-metadata">

**Author:** [@Erhan\_Karabulut](https://discuss.elastic.co/u/Erhan_Karabulut)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 8:02pm UTC](https://discuss.elastic.co/t/minimum-should-match-not-working-as-expected/190775 "2019-07-19T20:02:05Z")

</div>

Hello All, Match Query: { "query":{ "bool":{ "should":\[ { "match":{ "nAME":{ "analyzer":"my\_fuzzy\_analyzer", …

---

## [Date Math in Elasticsearch SQL](https://discuss.elastic.co/t/date-math-in-elasticsearch-sql/191449)

<div class="topic-metadata">

**Author:** [@bschneiders](https://discuss.elastic.co/u/bschneiders)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 8:00pm UTC](https://discuss.elastic.co/t/date-math-in-elasticsearch-sql/191449 "2019-07-19T20:00:54Z")

</div>

I'm on ES 6.7.0 with X-Pack. Based on the documentation I cannot figure out how to subtract two dates to get the time delta. My times are stored in epoch\_millis and mapped as shown below. I've tried a variety of casti…

---

## [Filter by min doc count](https://discuss.elastic.co/t/filter-by-min-doc-count/190972)

<div class="topic-metadata">

**Author:** [@goncalobsantos](https://discuss.elastic.co/u/goncalobsantos)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 7:34pm UTC](https://discuss.elastic.co/t/filter-by-min-doc-count/190972 "2019-07-19T19:34:20Z")

</div>

I am trying to write a query that filters the results of an aggregation by min\_doc\_count. I've tried different strategies but the output is not what I need. If I understand the logic correctly, if the aggregation counts…

---

## [Parse rfc 2822 date string to timestamp using update by query](https://discuss.elastic.co/t/parse-rfc-2822-date-string-to-timestamp-using-update-by-query/189970)

<div class="topic-metadata">

**Author:** [@Alberto\_Ciolini](https://discuss.elastic.co/u/Alberto_Ciolini)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 4:57pm UTC](https://discuss.elastic.co/t/parse-rfc-2822-date-string-to-timestamp-using-update-by-query/189970 "2019-07-19T16:57:08Z")

</div>

Hi everyone, I've a bunch of documents inside an index with a string field, created\_at, that represents a date in rfc 2822 format (ex.: Thu, 17 Oct 2013 16:09:44 +0000). I've another date field, created\_at\_time, and I'd…

---

## [Adding the second node to one of the existing cluster's servers](https://discuss.elastic.co/t/adding-the-second-node-to-one-of-the-existing-clusters-servers/191423)

<div class="topic-metadata">

**Author:** [@metlovich97](https://discuss.elastic.co/u/metlovich97)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 3:29pm UTC](https://discuss.elastic.co/t/adding-the-second-node-to-one-of-the-existing-clusters-servers/191423 "2019-07-19T15:29:50Z")

</div>

HI! We have a three node cluster on three servers. According to this article we can benefit from running the second node on one of our machines: Are you doing a lot of sorting/aggregations on analyzed strings (e.g. for…

---

## [Can Elastic hold/store images?](https://discuss.elastic.co/t/can-elastic-hold-store-images/190597)

<div class="topic-metadata">

**Author:** [@edster](https://discuss.elastic.co/u/edster)\
**Replies:** 10\
**Last updated:** [July 19, 2019, 3:06pm UTC](https://discuss.elastic.co/t/can-elastic-hold-store-images/190597 "2019-07-19T15:06:14Z")

</div>

Is it possible for Elastic to store images? If so, are there only specific data types? Would they be processed or stored the same way all other data is stored i.e. index, type, docs, etc.

---

## [Query with multimatch and wildcard](https://discuss.elastic.co/t/query-with-multimatch-and-wildcard/189962)

<div class="topic-metadata">

**Author:** [@tiago](https://discuss.elastic.co/u/tiago)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 2:45pm UTC](https://discuss.elastic.co/t/query-with-multimatch-and-wildcard/189962 "2019-07-19T14:45:56Z")

</div>

I'm trying to execute a query on multi fields but also using a wildcard in the MobileNumber, basically, if a mobile number is for example 3530831112233 if I search by 831122 I want to return this record. This is what I h…

---

## [Sql server on elastic Search cloud](https://discuss.elastic.co/t/sql-server-on-elastic-search-cloud/191289)

<div class="topic-metadata">

**Author:** [@Farouk6072](https://discuss.elastic.co/u/Farouk6072)\
**Replies:** 3\
**Last updated:** [July 19, 2019, 2:11pm UTC](https://discuss.elastic.co/t/sql-server-on-elastic-search-cloud/191289 "2019-07-19T14:11:48Z")

</div>

I have a question : I have an account on cloud version of elastic search and i have sql server database So how i can get info from my sql server database and show logs and query on kibana?? Please help me

---

## [Cannot configure Multiple analyzers on the same field](https://discuss.elastic.co/t/cannot-configure-multiple-analyzers-on-the-same-field/191295)

<div class="topic-metadata">

**Author:** [@germax](https://discuss.elastic.co/u/germax)\
**Replies:** 3\
**Last updated:** [July 19, 2019, 2:07pm UTC](https://discuss.elastic.co/t/cannot-configure-multiple-analyzers-on-the-same-field/191295 "2019-07-19T14:07:44Z")

</div>

I have a text field indexed with four different analyzers. So there is raw text, keyword, token count and text without stopwords. PUT test { "settings": { "analysis": { "analyzer": { …

---

## [How to execute multi search on Elasticsearch](https://discuss.elastic.co/t/how-to-execute-multi-search-on-elasticsearch/191033)

<div class="topic-metadata">

**Author:** [@FeizNouri](https://discuss.elastic.co/u/FeizNouri)\
**Replies:** 11\
**Last updated:** [July 19, 2019, 1:30pm UTC](https://discuss.elastic.co/t/how-to-execute-multi-search-on-elasticsearch/191033 "2019-07-19T13:30:37Z")

</div>

Hi, I have indexed metadata from documents with FSCrawler, so in ES I have an index that looks like this : { "took" : 0, "timed\_out" : false, "\_shards" : { "total" : 1, "successful" : 1, "skipped" : …

---

## [Require Elasticsearch highlight words enclosed with Double Quotes (") instead of chopping them](https://discuss.elastic.co/t/require-elasticsearch-highlight-words-enclosed-with-double-quotes-instead-of-chopping-them/190478)

<div class="topic-metadata">

**Author:** [@Noctis17](https://discuss.elastic.co/u/Noctis17)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 1:06pm UTC](https://discuss.elastic.co/t/require-elasticsearch-highlight-words-enclosed-with-double-quotes-instead-of-chopping-them/190478 "2019-07-19T13:06:48Z")

</div>

Elasticsearch: v7.2 Application: PHP - Laravel v5.7 Hello and good day! I'm developing a web application that is similar to a search engine, whereas a user will enter words that will be designated to the variable $ke…

---

## [Aggregation provides multiplied results](https://discuss.elastic.co/t/aggregation-provides-multiplied-results/191391)

<div class="topic-metadata">

**Author:** [@Vova\_Marchev](https://discuss.elastic.co/u/Vova_Marchev)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 12:51pm UTC](https://discuss.elastic.co/t/aggregation-provides-multiplied-results/191391 "2019-07-19T12:51:59Z")

</div>

Hi all! I have found the next behavior during aggregation. Let's create a simple document: PUT example { "mappings": { "\_doc": { "properties": { "products": { …

---

## [Top\_hits return multiple values whenever I declared the size = 1](https://discuss.elastic.co/t/top-hits-return-multiple-values-whenever-i-declared-the-size-1/191145)

<div class="topic-metadata">

**Author:** [@niraj\_pandey](https://discuss.elastic.co/u/niraj_pandey)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 12:49pm UTC](https://discuss.elastic.co/t/top-hits-return-multiple-values-whenever-i-declared-the-size-1/191145 "2019-07-19T12:49:57Z")

</div>

Hi , I am using an ealstic query where I need to find all the running job in last 15 mins. I captured the job data in a index. I just want to get the latest doc (single doc for each job). I tried to use top\_hits but I …

---

## [Elasticsearch group by and max on a text field of type Keyword](https://discuss.elastic.co/t/elasticsearch-group-by-and-max-on-a-text-field-of-type-keyword/190818)

<div class="topic-metadata">

**Author:** [@Mihir\_Kothari](https://discuss.elastic.co/u/Mihir_Kothari)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 12:29pm UTC](https://discuss.elastic.co/t/elasticsearch-group-by-and-max-on-a-text-field-of-type-keyword/190818 "2019-07-19T12:29:16Z")

</div>

I am using the Elasticsearch 6.5. I am looking to find the documents with some filter condition (working fine) and then I need to take only docs which has the MAX timestamp (field in the doc). Basically when I search th…

---

## [Help on api to fetch node ids](https://discuss.elastic.co/t/help-on-api-to-fetch-node-ids/191380)

<div class="topic-metadata">

**Author:** [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 11:36am UTC](https://discuss.elastic.co/t/help-on-api-to-fetch-node-ids/191380 "2019-07-19T11:36:57Z")

</div>

I tried "/\_cat/nodes?v&h=id" to fetch node IDs, but it is showing only 4 letters. How to get full node Ids.

---

## [Exception in thread "main" java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.debug(Ljava/lang/String;Ljava/lang/Object;)V](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchmethoderror-org-apache-logging-log4j-logger-debug-ljava-lang-string-ljava-lang-object-v/191260)

<div class="topic-metadata">

**Author:** [@Saurabh\_Singh](https://discuss.elastic.co/u/Saurabh_Singh)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 11:04am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchmethoderror-org-apache-logging-log4j-logger-debug-ljava-lang-string-ljava-lang-object-v/191260 "2019-07-19T11:04:17Z")

</div>

Trying to upgrade elastic version from 2.4 to 5.6.16 Maven Dependency \<log4j.version\>2.11.1\</log4j.version\> \<jboss\_logging.version\>3.2.1.Final\</jboss\_logging.version\> \<logback.version\>1.1.3\</logback.version\> \<slf4j.…

---

## [BulkAll takes a long time to complete](https://discuss.elastic.co/t/bulkall-takes-a-long-time-to-complete/189848)

<div class="topic-metadata">

**Author:** [@CSharpBender](https://discuss.elastic.co/u/CSharpBender)\
**Replies:** 6\
**Last updated:** [July 19, 2019, 10:27am UTC](https://discuss.elastic.co/t/bulkall-takes-a-long-time-to-complete/189848 "2019-07-19T10:27:09Z")

</div>

Elasticsearch version : 5.6.5 C# Nest package: 5.5.0 JVM version ( java -version ): 9 OS version : Windows 10 Description of the problem including expected versus actual behavior : Sometimes BulkAll takes a long ti…

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

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