# Elasticsearch

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

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

**Page:** 688

---

## [Elasticsearch delete snapshot, 504 timeout](https://discuss.elastic.co/t/elasticsearch-delete-snapshot-504-timeout/266532)

<div class="topic-metadata">

**Author:** [@Norman\_Khine](https://discuss.elastic.co/u/Norman_Khine)\
**Replies:** 3\
**Last updated:** [March 8, 2021, 12:37pm UTC](https://discuss.elastic.co/t/elasticsearch-delete-snapshot-504-timeout/266532 "2021-03-08T12:37:26Z")

</div>

Hello, I am taking snapshots and saving these to AWS S3, when I try to delete old snapshots, I get curl -X DELETE "http://localhost:9300/\_snapshot/backup-prod/20200123031645?pretty"  ✔  10089  …

---

## [Elasticsearch failing](https://discuss.elastic.co/t/elasticsearch-failing/266547)

<div class="topic-metadata">

**Author:** [@amazonas\_ecommerce](https://discuss.elastic.co/u/amazonas_ecommerce)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 11:55am UTC](https://discuss.elastic.co/t/elasticsearch-failing/266547 "2021-03-08T11:55:07Z")

</div>

elasticsearch failing. I don't know what could be happening I start it in a few hours it stops working. Then restart it works. When repeating this operation a few times it locks my Centos Estou usando Magento 2.4, n…

---

## [Help improving this query before it explodes!](https://discuss.elastic.co/t/help-improving-this-query-before-it-explodes/266544)

<div class="topic-metadata">

**Author:** [@doctor](https://discuss.elastic.co/u/doctor)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 11:38am UTC](https://discuss.elastic.co/t/help-improving-this-query-before-it-explodes/266544 "2021-03-08T11:38:16Z")

</div>

Hey, I made a working request but it kinda sucks ! Was wondering if a pleasing soul could help me get to something better... The problem Lets say I have 2 types of documents for simplicty's sake. The type square and…

---

## [Google-like exact match using multi\_match](https://discuss.elastic.co/t/google-like-exact-match-using-multi-match/266540)

<div class="topic-metadata">

**Author:** [@alimci](https://discuss.elastic.co/u/alimci)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 10:56am UTC](https://discuss.elastic.co/t/google-like-exact-match-using-multi-match/266540 "2021-03-08T10:56:52Z")

</div>

Hi there, I wanna to create google-like exact match query by multi\_match query. My desired result is followed by this query. "bool": { "should": \[ { "query\_string": { "query": "string \\"exact match…

---

## [Integrate Jira-Cloud with Elasticsearch](https://discuss.elastic.co/t/integrate-jira-cloud-with-elasticsearch/266539)

<div class="topic-metadata">

**Author:** [@vishakh](https://discuss.elastic.co/u/vishakh)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 10:55am UTC](https://discuss.elastic.co/t/integrate-jira-cloud-with-elasticsearch/266539 "2021-03-08T10:55:16Z")

</div>

ELK-Stack: 7.10 I'm planning to integrate Jira-Cloud with ELK Stack where I can ingest logs/events into Elasticsearch and visualize the same with Kibana I did go through an option in using Elasticsearch Enterprise-Sear…

---

## [Exception during establishing a SSL connection: HttpRequestOnTransportException\[This is not an HTTP port\]](https://discuss.elastic.co/t/exception-during-establishing-a-ssl-connection-httprequestontransportexception-this-is-not-an-http-port/266536)

<div class="topic-metadata">

**Author:** [@sarthaksahu](https://discuss.elastic.co/u/sarthaksahu)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 10:45am UTC](https://discuss.elastic.co/t/exception-during-establishing-a-ssl-connection-httprequestontransportexception-this-is-not-an-http-port/266536 "2021-03-08T10:45:42Z")

</div>

We are continuously getting below error. Please let me know the reason of this error, and what is the corrective action will help to get rid of this error. Exception during establishing a SSL connection: HttpRequestOnTr…

---

## [Read text from pdf file](https://discuss.elastic.co/t/read-text-from-pdf-file/266530)

<div class="topic-metadata">

**Author:** [@arefin](https://discuss.elastic.co/u/arefin)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 10:16am UTC](https://discuss.elastic.co/t/read-text-from-pdf-file/266530 "2021-03-08T10:16:00Z")

</div>

String filePath = "C://x.pdf"; String encodedfile = null; RestHighLevelClient restHighLevelClient = null; File file = new File(filePath); try { FileInputStream fileInputStreamReader = new FileInputStream(file); …

---

## [How to know whether elastic is down or not](https://discuss.elastic.co/t/how-to-know-whether-elastic-is-down-or-not/266523)

<div class="topic-metadata">

**Author:** [@Rinku\_Gulia](https://discuss.elastic.co/u/Rinku_Gulia)\
**Replies:** 7\
**Last updated:** [March 8, 2021, 10:09am UTC](https://discuss.elastic.co/t/how-to-know-whether-elastic-is-down-or-not/266523 "2021-03-08T10:09:06Z")

</div>

I have a requirement where i need to apply patches, create indices through resthighlevelclient and use elastic if elastic is up , otherwise switch to postgres. let's suppose elastic service is down. when i try to apply…

---

## [Detector field "clientIP.keyword" is not an aggregatable field](https://discuss.elastic.co/t/detector-field-clientip-keyword-is-not-an-aggregatable-field/266465)

<div class="topic-metadata">

**Author:** [@Ingram\_Gultom](https://discuss.elastic.co/u/Ingram_Gultom)\
**Replies:** 8\
**Last updated:** [March 8, 2021, 10:07am UTC](https://discuss.elastic.co/t/detector-field-clientip-keyword-is-not-an-aggregatable-field/266465 "2021-03-08T10:07:00Z")

</div>

Hello, Stack version : 7.9.3 I found issue when I tried to create a machine learning job in kibana The error : Detector field "clientIP.keyword" is not an aggregatable field The data looks like this in kibana { "\_…

---

## [Check if id exist in array field or not using script\_fields](https://discuss.elastic.co/t/check-if-id-exist-in-array-field-or-not-using-script-fields/266453)

<div class="topic-metadata">

**Author:** [@aninda\_halder](https://discuss.elastic.co/u/aninda_halder)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 9:08am UTC](https://discuss.elastic.co/t/check-if-id-exist-in-array-field-or-not-using-script-fields/266453 "2021-03-08T09:08:16Z")

</div>

Hi, i like to get a script field if a specific value exist in a array . Here is my mapping - "mappings": { "properties": { "field1": { "type": "text", }, "field2": { …

---

## [Visit elastic web 403](https://discuss.elastic.co/t/visit-elastic-web-403/266501)

<div class="topic-metadata">

**Author:** [@guangyao\_wang](https://discuss.elastic.co/u/guangyao_wang)\
**Replies:** 5\
**Last updated:** [March 8, 2021, 8:55am UTC](https://discuss.elastic.co/t/visit-elastic-web-403/266501 "2021-03-08T08:55:55Z")

</div>

---

## [Index.codec option](https://discuss.elastic.co/t/index-codec-option/266478)

<div class="topic-metadata">

**Author:** [@jungsoo](https://discuss.elastic.co/u/jungsoo)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 8:18am UTC](https://discuss.elastic.co/t/index-codec-option/266478 "2021-03-08T08:18:36Z")

</div>

Hello, I have a question about index.codec. I have been reading document about index settings. (https://www.elastic.co/guide/en/elasticsearch/reference/6.2/index-modules.html) While I was testing index.codec, I realiz…

---

## [Elasticsearch Http Cors Setting - multiple domains](https://discuss.elastic.co/t/elasticsearch-http-cors-setting-multiple-domains/266514)

<div class="topic-metadata">

**Author:** [@sb\_jeong](https://discuss.elastic.co/u/sb_jeong)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 6:44am UTC](https://discuss.elastic.co/t/elasticsearch-http-cors-setting-multiple-domains/266514 "2021-03-08T06:44:34Z")

</div>

Hi, everyone. I have a question while using elasticsearch in k8s environment because I have a question. Is there a way to create multiple domains in the http.cors.allow-origin: option? For example http.cors.allow-orig…

---

## [Unable to change state Active: Running of Elasticsearch](https://discuss.elastic.co/t/unable-to-change-state-active-running-of-elasticsearch/266195)

<div class="topic-metadata">

**Author:** [@Salmankazmi](https://discuss.elastic.co/u/Salmankazmi)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 3:57am UTC](https://discuss.elastic.co/t/unable-to-change-state-active-running-of-elasticsearch/266195 "2021-03-08T03:57:54Z")

</div>

Hi, I'm using VM via Putty. Filebeat and kibana are in Running status but Elasticsearch is in Failed state.

---

## [Can I run Elastic 5.4 on an Apple M1?](https://discuss.elastic.co/t/can-i-run-elastic-5-4-on-an-apple-m1/266487)

<div class="topic-metadata">

**Author:** [@jchatard](https://discuss.elastic.co/u/jchatard)\
**Replies:** 0\
**Last updated:** [March 7, 2021, 8:31pm UTC](https://discuss.elastic.co/t/can-i-run-elastic-5-4-on-an-apple-m1/266487 "2021-03-07T20:31:48Z")

</div>

Hi all, I know ARM was not supported until 7.8, but I have an application which still runs amazingly using 5.4 elasticsearch, and now that I have an Apple M1, I could transition all my docker images to ARM, except for E…

---

## [Looping through nested aggregations error](https://discuss.elastic.co/t/looping-through-nested-aggregations-error/266408)

<div class="topic-metadata">

**Author:** [@Muhammad\_Faisal](https://discuss.elastic.co/u/Muhammad_Faisal)\
**Replies:** 1\
**Last updated:** [March 7, 2021, 8:08pm UTC](https://discuss.elastic.co/t/looping-through-nested-aggregations-error/266408 "2021-03-07T20:08:37Z")

</div>

hi all, i have serial difference metric aggregation, and need to filter those documents, whose delta or value is greater than zero ...need to loop through all aggregations in condition and check for value \>0 ( where Val…

---

## [Best way to load a pcap file into elasticsearch 7.11](https://discuss.elastic.co/t/best-way-to-load-a-pcap-file-into-elasticsearch-7-11/266483)

<div class="topic-metadata">

**Author:** [@humbaw](https://discuss.elastic.co/u/humbaw)\
**Replies:** 1\
**Last updated:** [March 7, 2021, 6:58pm UTC](https://discuss.elastic.co/t/best-way-to-load-a-pcap-file-into-elasticsearch-7-11/266483 "2021-03-07T18:58:08Z")

</div>

Hi. I'm using elasticsearch 7.11 and I would like to ingest a pcap file into elasticsearch and kibana. What would be the best way to do this I tried using the analyzing network packets guide(https://www.elastic.co/…

---

## [Query string query fuzzy performance](https://discuss.elastic.co/t/query-string-query-fuzzy-performance/266356)

<div class="topic-metadata">

**Author:** [@nbiondic](https://discuss.elastic.co/u/nbiondic)\
**Replies:** 2\
**Last updated:** [March 7, 2021, 5:27pm UTC](https://discuss.elastic.co/t/query-string-query-fuzzy-performance/266356 "2021-03-07T17:27:32Z")

</div>

Hi there, we're trying to optimize performance of our search and have run into an issue we need help with. We use the query\_string query to allow our customers to execute boolean queries on the data. We also allow fuzz…

---

## [Longer queries return a lot of search results](https://discuss.elastic.co/t/longer-queries-return-a-lot-of-search-results/266481)

<div class="topic-metadata">

**Author:** [@vastevenson](https://discuss.elastic.co/u/vastevenson)\
**Replies:** 0\
**Last updated:** [March 7, 2021, 4:52pm UTC](https://discuss.elastic.co/t/longer-queries-return-a-lot-of-search-results/266481 "2021-03-07T16:52:05Z")

</div>

When users type in queries like "Italy was cool and nice", my search query returns nearly every document in my index. What are the best practices to improve precision of search results? I feel like the multi\_match should…

---

## [Tests ignores during sonarqube build](https://discuss.elastic.co/t/tests-ignores-during-sonarqube-build/266480)

<div class="topic-metadata">

**Author:** [@simon\_dcm](https://discuss.elastic.co/u/simon_dcm)\
**Replies:** 0\
**Last updated:** [March 7, 2021, 3:45pm UTC](https://discuss.elastic.co/t/tests-ignores-during-sonarqube-build/266480 "2021-03-07T15:45:48Z")

</div>

Hello, I need to study the properties / statistics of the elasticsearch project as a student project. I'm using sonarqube but during the build, all tests are ignored and then there is no information about tests, coverag…

---

## [Practical scoring function](https://discuss.elastic.co/t/practical-scoring-function/266473)

<div class="topic-metadata">

**Author:** [@Tlm\_Konstantinos](https://discuss.elastic.co/u/Tlm_Konstantinos)\
**Replies:** 0\
**Last updated:** [March 7, 2021, 12:28pm UTC](https://discuss.elastic.co/t/practical-scoring-function/266473 "2021-03-07T12:28:50Z")

</div>

Hi everyone. I am currently working on figuring out the practical scoring function of elastic search queries. I would like to know what scores give bad text or semantic similarity. What is the threshold that shows little…

---

## [All shards failing error](https://discuss.elastic.co/t/all-shards-failing-error/266303)

<div class="topic-metadata">

**Author:** [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Replies:** 3\
**Last updated:** [March 6, 2021, 11:02pm UTC](https://discuss.elastic.co/t/all-shards-failing-error/266303 "2021-03-06T23:02:55Z")

</div>

I am having problems with an application (Arkime) which uses ES to store its data. When it does long searches these time out and on looking at the logs I find errors from ES. The same errors are in the ES logs and I hav…

---

## [Java connection lost](https://discuss.elastic.co/t/java-connection-lost/266454)

<div class="topic-metadata">

**Author:** [@Cosmin\_Ciobanu1](https://discuss.elastic.co/u/Cosmin_Ciobanu1)\
**Replies:** 0\
**Last updated:** [March 6, 2021, 9:06pm UTC](https://discuss.elastic.co/t/java-connection-lost/266454 "2021-03-06T21:06:17Z")

</div>

Hi! I'm trying to connect to my Elasticsearch node from Java. I have this code : final CredentialsProvider credentialsProvider = new BasicCredentialsProvider(); credentialsProvider.setCredentials(AuthS…

---

## [Elasticsearch OSS Docker Images](https://discuss.elastic.co/t/elasticsearch-oss-docker-images/266091)

<div class="topic-metadata">

**Author:** [@robinhood\_lko](https://discuss.elastic.co/u/robinhood_lko)\
**Replies:** 4\
**Last updated:** [March 6, 2021, 6:53pm UTC](https://discuss.elastic.co/t/elasticsearch-oss-docker-images/266091 "2021-03-06T18:53:34Z")

</div>

Hi All, What is primary difference between Elasticsearch OSS and OSS Snapshot docker images. Any link to document will be very helpful. Thanks.

---

## [Problem with searching and deleting data in Elasticsearch using term and regexp](https://discuss.elastic.co/t/problem-with-searching-and-deleting-data-in-elasticsearch-using-term-and-regexp/266447)

<div class="topic-metadata">

**Author:** [@white\_rabbit](https://discuss.elastic.co/u/white_rabbit)\
**Replies:** 0\
**Last updated:** [March 6, 2021, 2:59pm UTC](https://discuss.elastic.co/t/problem-with-searching-and-deleting-data-in-elasticsearch-using-term-and-regexp/266447 "2021-03-06T14:59:26Z")

</div>

I am currently developing a user data analysis platform and have a problem with searching and deleting data in Elasticsearch using term and regexp. I would be very grateful for checking the solutions below and writing so…

---

## [What is elasticsearch best feature to achieve what I need?](https://discuss.elastic.co/t/what-is-elasticsearch-best-feature-to-achieve-what-i-need/266360)

<div class="topic-metadata">

**Author:** [@Nuno\_Oliveira](https://discuss.elastic.co/u/Nuno_Oliveira)\
**Replies:** 3\
**Last updated:** [March 6, 2021, 8:52am UTC](https://discuss.elastic.co/t/what-is-elasticsearch-best-feature-to-achieve-what-i-need/266360 "2021-03-06T08:52:21Z")

</div>

Hi, I'm relatively new to elasticsearch and I'm not sure what is the best approach to achieve what I want, but this is what I've been trying: I have a list of dog breeds in an Index and given the input "0293 Corki USA" …

---

## [Optimization for rolling restart without stopping indexing](https://discuss.elastic.co/t/optimization-for-rolling-restart-without-stopping-indexing/266411)

<div class="topic-metadata">

**Author:** [@jthoni](https://discuss.elastic.co/u/jthoni)\
**Replies:** 0\
**Last updated:** [March 5, 2021, 10:30pm UTC](https://discuss.elastic.co/t/optimization-for-rolling-restart-without-stopping-indexing/266411 "2021-03-05T22:30:03Z")

</div>

I know the topic of shard allocation during rolling restarts is a well worn path here. When we do node restarts, we: Disable shard allocation Restart the node Once the node comes back online, we reenable allocation Whe…

---

## [Field aliases in search results](https://discuss.elastic.co/t/field-aliases-in-search-results/266221)

<div class="topic-metadata">

**Author:** [@andreas123](https://discuss.elastic.co/u/andreas123)\
**Replies:** 1\
**Last updated:** [March 5, 2021, 10:10pm UTC](https://discuss.elastic.co/t/field-aliases-in-search-results/266221 "2021-03-05T22:10:19Z")

</div>

Hey, we have different suppliers for data that is imported into elastic. The suppliers use different field names, but some of them use the same type of data. Example: Supplier A: last\_seen: 2020\_02\_03 IP: 10.10.10.1…

---

## [Async-search keepalive value](https://discuss.elastic.co/t/async-search-keepalive-value/266314)

<div class="topic-metadata">

**Author:** [@alexpanas](https://discuss.elastic.co/u/alexpanas)\
**Replies:** 9\
**Last updated:** [March 5, 2021, 10:04pm UTC](https://discuss.elastic.co/t/async-search-keepalive-value/266314 "2021-03-05T22:04:30Z")

</div>

Hi, As far as I can see from https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html - the default keep-alive value for async search is 5 days and is regulated on the query side. This results …

---

## [Need help to update es6 template to es7](https://discuss.elastic.co/t/need-help-to-update-es6-template-to-es7/266409)

<div class="topic-metadata">

**Author:** [@michbsd](https://discuss.elastic.co/u/michbsd)\
**Replies:** 0\
**Last updated:** [March 5, 2021, 9:27pm UTC](https://discuss.elastic.co/t/need-help-to-update-es6-template-to-es7/266409 "2021-03-05T21:27:38Z")

</div>

Hi, I have been using varnishstatbeat in the past to ship varnish statistics to Elasticsearch. I am currently in the process of upgrading my cluster to 7.x - and there is no es7 template for the varnishstatbeat project…

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

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