# Elasticsearch

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

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

**Page:** 935

---

## [Index Management - Operational Procedures](https://discuss.elastic.co/t/index-management-operational-procedures/230752)

<div class="topic-metadata">

**Author:** [@fvegaucr](https://discuss.elastic.co/u/fvegaucr)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 3:51pm UTC](https://discuss.elastic.co/t/index-management-operational-procedures/230752 "2020-05-04T15:51:36Z")

</div>

Hi I was wondering if someone can point me to documentation or information about how to deal with indexes, like regular operations that admins use or try to fix issues, sort of like bestpractices. I want to understand o…

---

## [Illegal\_argument\_exception reject mapping update category in ES 7.6](https://discuss.elastic.co/t/illegal-argument-exception-reject-mapping-update-category-in-es-7-6/230761)

<div class="topic-metadata">

**Author:** [@Ketan\_Chachad](https://discuss.elastic.co/u/Ketan_Chachad)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 3:44pm UTC](https://discuss.elastic.co/t/illegal-argument-exception-reject-mapping-update-category-in-es-7-6/230761 "2020-05-04T15:44:18Z")

</div>

Hi, I have created an index in elasticsearch 7.6. The mapping is as follows: { "employee\_202005011710": { "mappings": { "properties": { "employee": { "properties": { "name": { …

---

## [Create tests with ES mock (/ in memory)](https://discuss.elastic.co/t/create-tests-with-es-mock-in-memory/230871)

<div class="topic-metadata">

**Author:** [@AsfK](https://discuss.elastic.co/u/AsfK)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 3:31pm UTC](https://discuss.elastic.co/t/create-tests-with-es-mock-in-memory/230871 "2020-05-04T15:31:46Z")

</div>

Hello! We're using ES 7.6.2 (pull document and upload bulks). And we want to create tests, as data is upload correctly, simulate situations where the bulk (/ connection, etc.) is failed. I found old reference to Elas…

---

## [Fatal error occuring on all nodes within the hour](https://discuss.elastic.co/t/fatal-error-occuring-on-all-nodes-within-the-hour/230933)

<div class="topic-metadata">

**Author:** [@faxm0dem](https://discuss.elastic.co/u/faxm0dem)\
**Replies:** 4\
**Last updated:** [May 4, 2020, 3:17pm UTC](https://discuss.elastic.co/t/fatal-error-occuring-on-all-nodes-within-the-hour/230933 "2020-05-04T15:17:29Z")

</div>

Using 6.8.6 from the oss rpm for redhat and jvm openjdk-1.8.0.252.b09-2.el7\_8 on Centos 7, we've been getting crashes every second day now on almost all nodes within the hour. I managed to catch the log during the cra…

---

## [Get snapshots after upgrade Elasticsearch 2.4 to 5.6](https://discuss.elastic.co/t/get-snapshots-after-upgrade-elasticsearch-2-4-to-5-6/230986)

<div class="topic-metadata">

**Author:** [@ruipoliveira](https://discuss.elastic.co/u/ruipoliveira)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 2:37pm UTC](https://discuss.elastic.co/t/get-snapshots-after-upgrade-elasticsearch-2-4-to-5-6/230986 "2020-05-04T14:37:39Z")

</div>

I made the upgrade in my elasticsearch cluster 2.4 version to 5.6. (as described in elastic website). The upgrade occurred without issues, but now I needed check the snapshots available and receive the error: curl -X GE…

---

## [Deserializing Query DSL to Java objects](https://discuss.elastic.co/t/deserializing-query-dsl-to-java-objects/230962)

<div class="topic-metadata">

**Author:** [@shekharshan](https://discuss.elastic.co/u/shekharshan)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 2:20pm UTC](https://discuss.elastic.co/t/deserializing-query-dsl-to-java-objects/230962 "2020-05-04T14:20:03Z")

</div>

I am new to Elasticsearch and I have a front-end in Angular 8 and it is communicating with a Spring boot application on the server side. The Spring boot application in turn will communicate with Elasticsearch 6.7 (or hig…

---

## [Nest 6.8.3 getting InvalidProgramException sometimes](https://discuss.elastic.co/t/nest-6-8-3-getting-invalidprogramexception-sometimes/227037)

<div class="topic-metadata">

**Author:** [@cwellborn23](https://discuss.elastic.co/u/cwellborn23)\
**Replies:** 4\
**Last updated:** [May 4, 2020, 2:07pm UTC](https://discuss.elastic.co/t/nest-6-8-3-getting-invalidprogramexception-sometimes/227037 "2020-05-04T14:07:38Z")

</div>

I see an internal ticket was created(00487754) and this topic was closed. We were getting this in our prod instance yesterday. Nest 6.6 getting InvalidProgramException sometimes Envionrment: AWS ECS Fargate Docker co…

---

## [Change default \[max\_docvalue\_fields\_search\] value](https://discuss.elastic.co/t/change-default-max-docvalue-fields-search-value/230525)

<div class="topic-metadata">

**Author:** [@WAFA\_Mardiney](https://discuss.elastic.co/u/WAFA_Mardiney)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 1:34pm UTC](https://discuss.elastic.co/t/change-default-max-docvalue-fields-search-value/230525 "2020-05-04T13:34:39Z")

</div>

I'm using kibana and was encountering an issue that was solved by setting the \[max\_docvalue\_fields\_search\] setting to a greater value like this: PUT /index\_name\_log-\*/\_settings { "index.max\_docvalue\_fields\_search" : "1…

---

## [Live/historical charts by elasticsearch documents](https://discuss.elastic.co/t/live-historical-charts-by-elasticsearch-documents/230864)

<div class="topic-metadata">

**Author:** [@JavaDeveloper](https://discuss.elastic.co/u/JavaDeveloper)\
**Replies:** 7\
**Last updated:** [May 4, 2020, 8:13am UTC](https://discuss.elastic.co/t/live-historical-charts-by-elasticsearch-documents/230864 "2020-05-04T08:13:35Z")

</div>

Hi everyone. I want to create real time and historical charts (for example by chart.js library) from the elasticsearch documents. each document has its own date field. So I want to have a linear chart (x axis : time fi…

---

## [Migrating from Node Client -\> Transport Client -\> REST Client](https://discuss.elastic.co/t/migrating-from-node-client-transport-client-rest-client/224148)

<div class="topic-metadata">

**Author:** [@girishc13](https://discuss.elastic.co/u/girishc13)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 11:04am UTC](https://discuss.elastic.co/t/migrating-from-node-client-transport-client-rest-client/224148 "2020-05-04T11:04:42Z")

</div>

In 2016 our cluster was setup using Node Client so that some nodes can function as pure coordinating nodes with additional custom REST API implementations. This was done to optimize on the extra network call for the cust…

---

## [Can any one knows how to enable OCR in es with Ingest mapper plugin?](https://discuss.elastic.co/t/can-any-one-knows-how-to-enable-ocr-in-es-with-ingest-mapper-plugin/230946)

<div class="topic-metadata">

**Author:** [@vaibhav8600](https://discuss.elastic.co/u/vaibhav8600)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 10:48am UTC](https://discuss.elastic.co/t/can-any-one-knows-how-to-enable-ocr-in-es-with-ingest-mapper-plugin/230946 "2020-05-04T10:48:06Z")

</div>

Can any one knows how to enable OCR in es with Ingest mapper plugin ?

---

## [Failed to connect to node \[{}{}{localhost}{127.0.0.1:9300}\], removed from nodes list](https://discuss.elastic.co/t/failed-to-connect-to-node-localhost-127-0-0-1-9300-removed-from-nodes-list/226640)

<div class="topic-metadata">

**Author:** [@Vishnu\_Vardhan](https://discuss.elastic.co/u/Vishnu_Vardhan)\
**Replies:** 4\
**Last updated:** [May 4, 2020, 10:47am UTC](https://discuss.elastic.co/t/failed-to-connect-to-node-localhost-127-0-0-1-9300-removed-from-nodes-list/226640 "2020-05-04T10:47:25Z")

</div>

geoportal\_1 | 2020-04-05 06:46:38,400 INFO \[org.elasticsearch.client.transport.TransportClientNodesService\] - failed to connect to node \[{#transport#-1}{DTai1v8zS96dztCUpGku4w}{localhost}{127.0.0.1:9300}\], removed f…

---

## [Is there any difference between these search methods](https://discuss.elastic.co/t/is-there-any-difference-between-these-search-methods/230927)

<div class="topic-metadata">

**Author:** [@wajika](https://discuss.elastic.co/u/wajika)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 9:48am UTC](https://discuss.elastic.co/t/is-there-any-difference-between-these-search-methods/230927 "2020-05-04T09:48:10Z")

</div>

Method 1 GET \_search { "query": { "term": {"service.name": "IMS-4-199"}} } Method 2 GET /\_search { "query": { "bool": { "must": {"match": { "service.name": "IMS-4-199" }} } } } Method 3 GET…

---

## [Do i need Ingest Node for Logstash?](https://discuss.elastic.co/t/do-i-need-ingest-node-for-logstash/230892)

<div class="topic-metadata">

**Author:** [@AtyNewman](https://discuss.elastic.co/u/AtyNewman)\
**Replies:** 5\
**Last updated:** [May 4, 2020, 9:44am UTC](https://discuss.elastic.co/t/do-i-need-ingest-node-for-logstash/230892 "2020-05-04T09:44:21Z")

</div>

Hello, I have a question about Elasticsearch: Do i need a dedicated ingest node in Elasticsearch if i am using Logstash to receive and create data to the database, and i have heavy queries? I have only one machine, an…

---

## [Type mapping cannot be changed in either direction](https://discuss.elastic.co/t/type-mapping-cannot-be-changed-in-either-direction/230629)

<div class="topic-metadata">

**Author:** [@alexfritz](https://discuss.elastic.co/u/alexfritz)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 8:22am UTC](https://discuss.elastic.co/t/type-mapping-cannot-be-changed-in-either-direction/230629 "2020-05-04T08:22:02Z")

</div>

Hi I got a really strange behavior on one of our Elasticsearch instances running 6.x regarding the 'mapper cannot be changed' error. We are using strict mapping on template level and we usually don't have data type cha…

---

## [Problems getting started with Filebeat and Elasticsearch?](https://discuss.elastic.co/t/problems-getting-started-with-filebeat-and-elasticsearch/229974)

<div class="topic-metadata">

**Author:** [@Forcep](https://discuss.elastic.co/u/Forcep)\
**Replies:** 8\
**Last updated:** [May 4, 2020, 8:13am UTC](https://discuss.elastic.co/t/problems-getting-started-with-filebeat-and-elasticsearch/229974 "2020-05-04T08:13:36Z")

</div>

Hi, Im running the following on a local computer for test : Elastcisserach 7.5.1 Kibana 7.5.1 Filebeat 7.5.1 Its using HTTPS connection with ignor cert errors. I have followed the guide on how ti install filebeat wit…

---

## [Painless scrip error in kibana](https://discuss.elastic.co/t/painless-scrip-error-in-kibana/227526)

<div class="topic-metadata">

**Author:** [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 7:56am UTC](https://discuss.elastic.co/t/painless-scrip-error-in-kibana/227526 "2020-05-04T07:56:58Z")

</div>

HI Team, I'm working on scripted field to generate userid value in separate field and please find my error detail with script. Script: def m = /.\*UserID/.matcher(doc\['message.keyword'\].value); if ( m.matches() ) { …

---

## [Unable To Add Custom Analyzer](https://discuss.elastic.co/t/unable-to-add-custom-analyzer/230816)

<div class="topic-metadata">

**Author:** [@Prakash\_Choudhary](https://discuss.elastic.co/u/Prakash_Choudhary)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 7:40am UTC](https://discuss.elastic.co/t/unable-to-add-custom-analyzer/230816 "2020-05-04T07:40:28Z")

</div>

Hi , I am trying to create a new index in open source elastic search cluster and unable to create customer analyser facing the issue. I required help please help me in this to resolve issue, { \* "error": { \* "root…

---

## [Range query for Nested Documents for Keyword Type](https://discuss.elastic.co/t/range-query-for-nested-documents-for-keyword-type/230929)

<div class="topic-metadata">

**Author:** [@Thilak](https://discuss.elastic.co/u/Thilak)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 6:37am UTC](https://discuss.elastic.co/t/range-query-for-nested-documents-for-keyword-type/230929 "2020-05-04T06:37:05Z")

</div>

Hello I have a document structure like this. For this below two documents, we have nested documents called interaction info. I just need to get only the documents that have title duration and their value is greater th…

---

## [How to access elastic search on remote machine?](https://discuss.elastic.co/t/how-to-access-elastic-search-on-remote-machine/230926)

<div class="topic-metadata">

**Author:** [@Aiden\_Sharma](https://discuss.elastic.co/u/Aiden_Sharma)\
**Replies:** 6\
**Last updated:** [May 4, 2020, 6:24am UTC](https://discuss.elastic.co/t/how-to-access-elastic-search-on-remote-machine/230926 "2020-05-04T06:24:45Z")

</div>

Trying to access the elastic search remotely. However, it seems to be refusing the connection.

---

## [\_alias returns index not found where as \_search works](https://discuss.elastic.co/t/alias-returns-index-not-found-where-as-search-works/230836)

<div class="topic-metadata">

**Author:** [@rnataraja](https://discuss.elastic.co/u/rnataraja)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 5:47am UTC](https://discuss.elastic.co/t/alias-returns-index-not-found-where-as-search-works/230836 "2020-05-04T05:47:44Z")

</div>

/foo/\_alias returns index not found but foo/\_search etc work I do see that there is an index foo and \_search and \_settings work fine on it. But \_alias returns index not found exception. What could be the reason? thanks …

---

## [Search for a word ( like ) query in mysql](https://discuss.elastic.co/t/search-for-a-word-like-query-in-mysql/230895)

<div class="topic-metadata">

**Author:** [@hariskhalique](https://discuss.elastic.co/u/hariskhalique)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 5:34am UTC](https://discuss.elastic.co/t/search-for-a-word-like-query-in-mysql/230895 "2020-05-04T05:34:40Z")

</div>

Hi, I need help. I am looking to search for black cat:dresses, color:Black, color:Blue, color:Pink, DPSID48965, Gretchen Scott, subcat:cocktail:cat:dresses, women, z\_global\_id:37430 Black, Blue, boohoo, cat:dresses, DZ…

---

## [Query filter with variable geo\_distance](https://discuss.elastic.co/t/query-filter-with-variable-geo-distance/230914)

<div class="topic-metadata">

**Author:** [@Joannes\_Noel](https://discuss.elastic.co/u/Joannes_Noel)\
**Replies:** 4\
**Last updated:** [May 4, 2020, 4:28am UTC](https://discuss.elastic.co/t/query-filter-with-variable-geo-distance/230914 "2020-05-04T04:28:52Z")

</div>

I have an interesting situation. I am building an app where sellers post items with geo\_point and market\_radius field. The market\_radius field determines how far the seller can entertain a buyer. if seller says he/she wi…

---

## [How to search using geo\_distance and two indices](https://discuss.elastic.co/t/how-to-search-using-geo-distance-and-two-indices/230897)

<div class="topic-metadata">

**Author:** [@Pierre\_S\_Almeida](https://discuss.elastic.co/u/Pierre_S_Almeida)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 4:13am UTC](https://discuss.elastic.co/t/how-to-search-using-geo-distance-and-two-indices/230897 "2020-05-04T04:13:02Z")

</div>

Hi, I am trying to make a query on elasticsearch that reproduce the same result of this SQL: select pl.latitude, pl.longitude from places as pl where exists ( select rf.id from references as rf where ST\_Dis…

---

## [Sending data to existing elasticsearch index through Watcher](https://discuss.elastic.co/t/sending-data-to-existing-elasticsearch-index-through-watcher/230368)

<div class="topic-metadata">

**Author:** [@shubhamshd99](https://discuss.elastic.co/u/shubhamshd99)\
**Replies:** 6\
**Last updated:** [May 4, 2020, 2:32am UTC](https://discuss.elastic.co/t/sending-data-to-existing-elasticsearch-index-through-watcher/230368 "2020-05-04T02:32:22Z")

</div>

Hi Guys, I'm trying to send the output of watcher to existing index on elasticsearch, but it throws an error with following description -\> "java.lang.IllegalArgumentException: Field \[\_source\] is defined both as an objec…

---

## [Automatically deleting all data of only particular one index and re initiating with same data](https://discuss.elastic.co/t/automatically-deleting-all-data-of-only-particular-one-index-and-re-initiating-with-same-data/230675)

<div class="topic-metadata">

**Author:** [@venkat1696](https://discuss.elastic.co/u/venkat1696)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 2:10am UTC](https://discuss.elastic.co/t/automatically-deleting-all-data-of-only-particular-one-index-and-re-initiating-with-same-data/230675 "2020-05-04T02:10:00Z")

</div>

Hi All, In project using elastic search version 6.5.0 with single node. In elastic search particular one index automatically deleting all the data of index and after some time again deleted data coming back to index aut…

---

## [Performance of kibana dashboard, one index, many visualizations or multiple indices many visualizations](https://discuss.elastic.co/t/performance-of-kibana-dashboard-one-index-many-visualizations-or-multiple-indices-many-visualizations/230904)

<div class="topic-metadata">

**Author:** [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 1:39am UTC](https://discuss.elastic.co/t/performance-of-kibana-dashboard-one-index-many-visualizations-or-multiple-indices-many-visualizations/230904 "2020-05-04T01:39:57Z")

</div>

I ussualy create different indices based on the metric type, for example i create an index, for system uptime, cpu, memory... then I filter by machine an get the metrics by a particular machine...but I recently use metr…

---

## [Highlight part ignored in the spring data @Query](https://discuss.elastic.co/t/highlight-part-ignored-in-the-spring-data-query/230846)

<div class="topic-metadata">

**Author:** [@suryas16](https://discuss.elastic.co/u/suryas16)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 12:48am UTC](https://discuss.elastic.co/t/highlight-part-ignored-in-the-spring-data-query/230846 "2020-05-04T00:48:03Z")

</div>

I'm using spring data elasticsearch @Query annotation, i don't get the highlighted values returned from this query, it works fine on elasticsearch { "from":0, "size":1, "highlight": { "fields": { "code…

---

## [Why is this delete operation reported as success if the document is still there after refresh?](https://discuss.elastic.co/t/why-is-this-delete-operation-reported-as-success-if-the-document-is-still-there-after-refresh/230702)

<div class="topic-metadata">

**Author:** [@Thomas\_Thiebaud](https://discuss.elastic.co/u/Thomas_Thiebaud)\
**Replies:** 7\
**Last updated:** [May 3, 2020, 8:32pm UTC](https://discuss.elastic.co/t/why-is-this-delete-operation-reported-as-success-if-the-document-is-still-there-after-refresh/230702 "2020-05-03T20:32:24Z")

</div>

I'm deleting a bunch a documents in elasticsearch using helpers.streaming\_bulk from the python library for ok, results in helpers.streaming\_bulk( \_es\_session.es\_client, operations, max\_retries=20, raise\_on\_error…

---

## [Poximity search with wildcards and phrase (multiple word terms)](https://discuss.elastic.co/t/poximity-search-with-wildcards-and-phrase-multiple-word-terms/228360)

<div class="topic-metadata">

**Author:** [@th.wyns](https://discuss.elastic.co/u/th.wyns)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 6:04pm UTC](https://discuss.elastic.co/t/poximity-search-with-wildcards-and-phrase-multiple-word-terms/228360 "2020-05-03T18:04:44Z")

</div>

Hello, We have a business requirement where the customer would like to run proximity searches that contain wildcards and phrases (multiple words). For eg: query: "somet\*" within 5 word distance of "need to find" shou…

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

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