# Elasticsearch

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

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

**Page:** 410

---

## [How to split an existing index based on number of documents](https://discuss.elastic.co/t/how-to-split-an-existing-index-based-on-number-of-documents/309287)

<div class="topic-metadata">

**Author:** [@Aurovindo\_Sahu](https://discuss.elastic.co/u/Aurovindo_Sahu)\
**Replies:** 4\
**Last updated:** [July 11, 2022, 6:18am UTC](https://discuss.elastic.co/t/how-to-split-an-existing-index-based-on-number-of-documents/309287 "2022-07-11T06:18:51Z")

</div>

We have an index of size 70GB which contains 73 million documents and we want to split this index based on number of documents. Is there any way we can divide the current index by taking number of documents into conside…

---

## [OCR integration](https://discuss.elastic.co/t/ocr-integration/308781)

<div class="topic-metadata">

**Author:** [@kanavsha](https://discuss.elastic.co/u/kanavsha)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 6:16am UTC](https://discuss.elastic.co/t/ocr-integration/308781 "2022-07-11T06:16:40Z")

</div>

Hi, We have a requirement where we receive pdf/jpg documents having log content. We need to read those documents and convert them to text and index them. We have been guided to use OCR libraries and then index the cont…

---

## [Filebeat PKI certificate authentication not working to es](https://discuss.elastic.co/t/filebeat-pki-certificate-authentication-not-working-to-es/309239)

<div class="topic-metadata">

**Author:** [@fformoso](https://discuss.elastic.co/u/fformoso)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 6:01am UTC](https://discuss.elastic.co/t/filebeat-pki-certificate-authentication-not-working-to-es/309239 "2022-07-11T06:01:38Z")

</div>

Dear all, Im trying to setup ssl to connect filebeat to elastic Elastic service is running in xxxxx.yy:9200 filebeat.yml hosts: \["xxxxx.yy:9200"\] protocol: "https" ssl.certificate\_authorities: "/etc/filebeat/securi…

---

## [Analyzer-ik Can we support the 祖-10 participle?](https://discuss.elastic.co/t/analyzer-ik-can-we-support-the-10-participle/309062)

<div class="topic-metadata">

**Author:** [@zhilong](https://discuss.elastic.co/u/zhilong)\
**Replies:** 0\
**Last updated:** [July 7, 2022, 1:46am UTC](https://discuss.elastic.co/t/analyzer-ik-can-we-support-the-10-participle/309062 "2022-07-07T01:46:24Z")

</div>

Can we support the 祖-10 participle? I was unable to support the 祖-10 participle after using the Analyzer - IK test

---

## [Query\_string with wildcard does not return an explanation (explain=true)](https://discuss.elastic.co/t/query-string-with-wildcard-does-not-return-an-explanation-explain-true/309278)

<div class="topic-metadata">

**Author:** [@Alberto\_Calvo\_Rubio](https://discuss.elastic.co/u/Alberto_Calvo_Rubio)\
**Replies:** 0\
**Last updated:** [July 10, 2022, 9:18pm UTC](https://discuss.elastic.co/t/query-string-with-wildcard-does-not-return-an-explanation-explain-true/309278 "2022-07-10T21:18:49Z")

</div>

Hello, The following query\_string does not return the explanation of the matching (explain=true) GET myindex/\_search?explain=true { "query": { "nested": { "path": "entity", "query": { …

---

## [Wondering about REST API difference between \_cat/count vs \_stats](https://discuss.elastic.co/t/wondering-about-rest-api-difference-between-cat-count-vs-stats/309272)

<div class="topic-metadata">

**Author:** [@stefws](https://discuss.elastic.co/u/stefws)\
**Replies:** 0\
**Last updated:** [July 10, 2022, 8:38pm UTC](https://discuss.elastic.co/t/wondering-about-rest-api-difference-between-cat-count-vs-stats/309272 "2022-07-10T20:38:32Z")

</div>

Trying to understand why it seems that indicies/\_stats doesn't return the proper numbers of docs as \_cat/count/index and kibana discover does? eg. finding these samples from a sample index with a simple REST API CLI wra…

---

## [ElasticSearch on NAS](https://discuss.elastic.co/t/elasticsearch-on-nas/309156)

<div class="topic-metadata">

**Author:** [@akassabi](https://discuss.elastic.co/u/akassabi)\
**Replies:** 17\
**Last updated:** [July 10, 2022, 6:48pm UTC](https://discuss.elastic.co/t/elasticsearch-on-nas/309156 "2022-07-10T18:48:23Z")

</div>

We have deployed ES7 to an Oracle PCA environment. This consists of several Oracle VMs connected to an Oracle NAS filer. Initially, the ES data partitions were mounted as NFS, but we are hitting the filer IOPS limits. Ou…

---

## [Watcher: comparing two fields in same Doc?](https://discuss.elastic.co/t/watcher-comparing-two-fields-in-same-doc/309267)

<div class="topic-metadata">

**Author:** [@gabrielfsousa](https://discuss.elastic.co/u/gabrielfsousa)\
**Replies:** 0\
**Last updated:** [July 10, 2022, 2:57pm UTC](https://discuss.elastic.co/t/watcher-comparing-two-fields-in-same-doc/309267 "2022-07-10T14:57:05Z")

</div>

how i compare two fields in same doc ?

---

## [Migrate Elasticsearch objects (index templates, scripts..) to New Cluster](https://discuss.elastic.co/t/migrate-elasticsearch-objects-index-templates-scripts-to-new-cluster/309266)

<div class="topic-metadata">

**Author:** [@Ofir\_Edi](https://discuss.elastic.co/u/Ofir_Edi)\
**Replies:** 0\
**Last updated:** [July 10, 2022, 2:34pm UTC](https://discuss.elastic.co/t/migrate-elasticsearch-objects-index-templates-scripts-to-new-cluster/309266 "2022-07-10T14:34:28Z")

</div>

Hi, We are considering migrating our on-premises cluster to Elastic Cloud. Whilst there are many options to migrate indices data (reindex, snapshot & restore) I didn't find what is the best practice to migrate objects …

---

## [How to use the value in buckets\_path to filter the whole document？](https://discuss.elastic.co/t/how-to-use-the-value-in-buckets-path-to-filter-the-whole-document/309265)

<div class="topic-metadata">

**Author:** [@josephLiu](https://discuss.elastic.co/u/josephLiu)\
**Replies:** 0\
**Last updated:** [July 10, 2022, 2:07pm UTC](https://discuss.elastic.co/t/how-to-use-the-value-in-buckets-path-to-filter-the-whole-document/309265 "2022-07-10T14:07:39Z")

</div>

I have a DSL，i want to use the value return from buckets\_path to filter the whole index. can ES supports this kind of operation？In SQL SERVER like select \* from table where max(datatime) \< (select max(datatime) from …

---

## [Randomise hits results every iterations](https://discuss.elastic.co/t/randomise-hits-results-every-iterations/309260)

<div class="topic-metadata">

**Author:** [@Eddie\_Vuong](https://discuss.elastic.co/u/Eddie_Vuong)\
**Replies:** 5\
**Last updated:** [July 10, 2022, 10:42am UTC](https://discuss.elastic.co/t/randomise-hits-results-every-iterations/309260 "2022-07-10T10:42:34Z")

</div>

Is there any way to randomise the search hits every I rerun a query? Due to the large number of hits, I just want to sample my results and do some statistical test on it. However, I have yet to find a way to randomise t…

---

## [Advise for logging infrastructure](https://discuss.elastic.co/t/advise-for-logging-infrastructure/309209)

<div class="topic-metadata">

**Author:** [@loicattena](https://discuss.elastic.co/u/loicattena)\
**Replies:** 1\
**Last updated:** [July 10, 2022, 8:56am UTC](https://discuss.elastic.co/t/advise-for-logging-infrastructure/309209 "2022-07-10T08:56:04Z")

</div>

Hi, I would like to get advise from experienced people to build a HA infrastructure to log 1.5To of data in JSON format every week. I need to have a retention time of 7 days and need to be able to requests these data by…

---

## [Valid or Invalid Restore bytes and files](https://discuss.elastic.co/t/valid-or-invalid-restore-bytes-and-files/309253)

<div class="topic-metadata">

**Author:** [@wonderland14](https://discuss.elastic.co/u/wonderland14)\
**Replies:** 0\
**Last updated:** [July 9, 2022, 3:34pm UTC](https://discuss.elastic.co/t/valid-or-invalid-restore-bytes-and-files/309253 "2022-07-09T15:34:35Z")

</div>

Hi ElasticTeam, I asked this before but haven't heard any confirmation yet so I want to raised and make sure if the Restore I did is valid or not. The status is "Complete", and has 100% remarks, but the bytes and file ar…

---

## [Unable to parse response body for Response | ElasticsearchSinkConnector](https://discuss.elastic.co/t/unable-to-parse-response-body-for-response-elasticsearchsinkconnector/309241)

<div class="topic-metadata">

**Author:** [@Mayderson\_Santos](https://discuss.elastic.co/u/Mayderson_Santos)\
**Replies:** 0\
**Last updated:** [July 9, 2022, 2:44am UTC](https://discuss.elastic.co/t/unable-to-parse-response-body-for-response-elasticsearchsinkconnector/309241 "2022-07-09T02:44:54Z")

</div>

Hello, I'm having a problem in Elasticsearch version 8.3.2, I'm using Kafka Connect with Elasticsearch's sink connector in version 13.1.0, the following error occurs: Failed to execute bulk request due to 'java.io.IOEx…

---

## [The CPU useage of elasticsearch three nodes is not balance](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243)

<div class="topic-metadata">

**Author:** [@zekaifeng](https://discuss.elastic.co/u/zekaifeng)\
**Replies:** 3\
**Last updated:** [July 9, 2022, 11:27am UTC](https://discuss.elastic.co/t/the-cpu-useage-of-elasticsearch-three-nodes-is-not-balance/309243 "2022-07-09T11:27:59Z")

</div>

elasticsearch version：7.10.2 nodes：3 indice config：3 primary shard & 1 Replica I use {"query": {"match\_all": {}} to query 10 pieces of data, and the CPU useage of the three nodes is not balance. node-0: node-1: …

---

## [Not equal condtions in elasticsearch aggregation](https://discuss.elastic.co/t/not-equal-condtions-in-elasticsearch-aggregation/308976)

<div class="topic-metadata">

**Author:** [@hadii](https://discuss.elastic.co/u/hadii)\
**Replies:** 5\
**Last updated:** [July 9, 2022, 5:21am UTC](https://discuss.elastic.co/t/not-equal-condtions-in-elasticsearch-aggregation/308976 "2022-07-09T05:21:23Z")

</div>

I have a rails app that connects to Elasticsearch and the user could define some conditions like (at least),(at most), and ... to compare and find his specific result. everything is fine but now I have to add not equal t…

---

## [How to implement space ignored search across a document with multiple fields](https://discuss.elastic.co/t/how-to-implement-space-ignored-search-across-a-document-with-multiple-fields/309236)

<div class="topic-metadata">

**Author:** [@Karan\_Bansal](https://discuss.elastic.co/u/Karan_Bansal)\
**Replies:** 0\
**Last updated:** [July 8, 2022, 11:04pm UTC](https://discuss.elastic.co/t/how-to-implement-space-ignored-search-across-a-document-with-multiple-fields/309236 "2022-07-08T23:04:29Z")

</div>

I'm trying to implement a space agnostic product catalog search solution using Elasticsearch for a chemical oriented product database. I am using the word\_joiner with catenate\_all to join words, but when using multi\_matc…

---

## [Specify search analyzer during query time with the new Elastic Java Client](https://discuss.elastic.co/t/specify-search-analyzer-during-query-time-with-the-new-elastic-java-client/309235)

<div class="topic-metadata">

**Author:** [@Karan\_Bansal](https://discuss.elastic.co/u/Karan_Bansal)\
**Replies:** 0\
**Last updated:** [July 8, 2022, 10:58pm UTC](https://discuss.elastic.co/t/specify-search-analyzer-during-query-time-with-the-new-elastic-java-client/309235 "2022-07-08T22:58:58Z")

</div>

Hi, is there a way to specify which analyzer to use for the query string while querying the index via the Elasticsearch Java Client API? I'm using the new Java Client API and when I'm specifying the analyzer during sear…

---

## [Java Client for Composite Aggregation using Terms queries](https://discuss.elastic.co/t/java-client-for-composite-aggregation-using-terms-queries/309227)

<div class="topic-metadata">

**Author:** [@parashar1505](https://discuss.elastic.co/u/parashar1505)\
**Replies:** 0\
**Last updated:** [July 8, 2022, 7:34pm UTC](https://discuss.elastic.co/t/java-client-for-composite-aggregation-using-terms-queries/309227 "2022-07-08T19:34:58Z")

</div>

Hi Team, I have created a composite query for aggregating on 2 different attributes as below - { "from": 0, "size": 0, "query": { "bool": { "must": \[ { …

---

## [Creating Multiple Elastic Search Ingest Pipelines](https://discuss.elastic.co/t/creating-multiple-elastic-search-ingest-pipelines/309206)

<div class="topic-metadata">

**Author:** [@scott\_stash](https://discuss.elastic.co/u/scott_stash)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 1:54pm UTC](https://discuss.elastic.co/t/creating-multiple-elastic-search-ingest-pipelines/309206 "2022-07-08T13:54:23Z")

</div>

I have created multiple ingest pipelines. I can export these pipelines from the dev console with the following command: GET \_ingest/pipeline/logs\* I copy this into a .json file, I would like to now import this back int…

---

## [Elasticsearch Source Plugin in Cloud Data Fusion (GCP)](https://discuss.elastic.co/t/elasticsearch-source-plugin-in-cloud-data-fusion-gcp/309168)

<div class="topic-metadata">

**Author:** [@dharminfadia](https://discuss.elastic.co/u/dharminfadia)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 1:25pm UTC](https://discuss.elastic.co/t/elasticsearch-source-plugin-in-cloud-data-fusion-gcp/309168 "2022-07-08T13:25:12Z")

</div>

Hello Every One I am using Elasticsearch plugin in to cloud data fusion (CDAP tool) I am using follwing Configration but I am not detecting Output schema may be I am doing miss configuration please help how to I co…

---

## [Unable to search array values on filter](https://discuss.elastic.co/t/unable-to-search-array-values-on-filter/309196)

<div class="topic-metadata">

**Author:** [@Himanshu\_Joshi1](https://discuss.elastic.co/u/Himanshu_Joshi1)\
**Replies:** 2\
**Last updated:** [July 8, 2022, 1:07pm UTC](https://discuss.elastic.co/t/unable-to-search-array-values-on-filter/309196 "2022-07-08T13:07:43Z")

</div>

\*\*This is my data\*\* { "took" : 2, "timed\_out" : false, "\_shards" : { "total" : 6, "successful" : 6, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : { "value" : 2, "relation" …

---

## [Elasticsearch - Score for a document pair](https://discuss.elastic.co/t/elasticsearch-score-for-a-document-pair/309172)

<div class="topic-metadata">

**Author:** [@Pazhaniyappan](https://discuss.elastic.co/u/Pazhaniyappan)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 12:52pm UTC](https://discuss.elastic.co/t/elasticsearch-score-for-a-document-pair/309172 "2022-07-08T12:52:41Z")

</div>

Hello, Is there a way to find out the similarity between the two documents? For example, I have document A and document B in JSON format. I will select some parameters from the documents for calculating the match sco…

---

## [Memory usage of completion/context suggester](https://discuss.elastic.co/t/memory-usage-of-completion-context-suggester/309186)

<div class="topic-metadata">

**Author:** [@mpinho](https://discuss.elastic.co/u/mpinho)\
**Replies:** 0\
**Last updated:** [July 8, 2022, 9:20am UTC](https://discuss.elastic.co/t/memory-usage-of-completion-context-suggester/309186 "2022-07-08T09:20:35Z")

</div>

Hello, I have a question regarding the context suggester implementation, on Elasticsearch 8.3.1. I have this mapping: { "mappings": { "properties": { "suggest": { "type": "completion", "contexts": \[ …

---

## [Bulk Partial update of a Nested object List by condition](https://discuss.elastic.co/t/bulk-partial-update-of-a-nested-object-list-by-condition/308948)

<div class="topic-metadata">

**Author:** [@krishnapss](https://discuss.elastic.co/u/krishnapss)\
**Replies:** 2\
**Last updated:** [July 8, 2022, 7:28am UTC](https://discuss.elastic.co/t/bulk-partial-update-of-a-nested-object-list-by-condition/308948 "2022-07-08T07:28:08Z")

</div>

Hi, I have an index which has nested list object. I need to only update certain values based on a condition. List of history with dates and values I need to update only certain dates values. In the below example I only …

---

## [Python elasticsearch client : TypeError: index() got an unexpected keyword argument 'document'](https://discuss.elastic.co/t/python-elasticsearch-client-typeerror-index-got-an-unexpected-keyword-argument-document/308758)

<div class="topic-metadata">

**Author:** [@Jay\_Urbain](https://discuss.elastic.co/u/Jay_Urbain)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 7:04am UTC](https://discuss.elastic.co/t/python-elasticsearch-client-typeerror-index-got-an-unexpected-keyword-argument-document/308758 "2022-07-08T07:04:34Z")

</div>

elasticsearch: 8.3.1 python 3.9 Mac OS: Montery 12.4, ARM architecture. Running the getting started example from elasticsearch docs (Python Elasticsearch Client — Python Elasticsearch client 8.3.1 documentation) I'm g…

---

## [Deletion time - index managed by ilm](https://discuss.elastic.co/t/deletion-time-index-managed-by-ilm/308987)

<div class="topic-metadata">

**Author:** [@gerardgorrion](https://discuss.elastic.co/u/gerardgorrion)\
**Replies:** 2\
**Last updated:** [July 8, 2022, 6:30am UTC](https://discuss.elastic.co/t/deletion-time-index-managed-by-ilm/308987 "2022-07-08T06:30:13Z")

</div>

We are using this ILM: PUT \_ilm/policy/ilm-custom { "policy": { "phases": { "hot": { "min\_age": "0ms", "actions": { "set\_priority": { "priority": 10 } …

---

## [ElasticSearch POST \_doc and doc issue](https://discuss.elastic.co/t/elasticsearch-post-doc-and-doc-issue/309097)

<div class="topic-metadata">

**Author:** [@Even\_Zhang](https://discuss.elastic.co/u/Even_Zhang)\
**Replies:** 5\
**Last updated:** [July 8, 2022, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-post-doc-and-doc-issue/309097 "2022-07-08T05:36:58Z")

</div>

Hi everyone, I through curl to POST new index with doc like curl -XPOST -H "Content-Type: application/json" 'http://localhost:9200/portstats/doc/' -d '{"bytesReceived":0,"bytesSent":0,"@timestamp":"2022-07-10T23:43:01.…

---

## [Elasticsearch-plugin install nlp plugin remain error](https://discuss.elastic.co/t/elasticsearch-plugin-install-nlp-plugin-remain-error/309015)

<div class="topic-metadata">

**Author:** [@zhigang9521](https://discuss.elastic.co/u/zhigang9521)\
**Replies:** 4\
**Last updated:** [July 8, 2022, 2:37am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-install-nlp-plugin-remain-error/309015 "2022-07-08T02:37:45Z")

</div>

appuser@elasticsearch:~/app/elasticsearch-7.14.1$ ./bin/elasticsearch-plugin install file:///data/elasticsearch-data/analysis-hanlp -\> Installing file:///data/elasticsearch-data/analysis-hanlp -\> Downloading file:///data…

---

## [The certificate is not trusted elasticsearch, but I do have the SSL certificates](https://discuss.elastic.co/t/the-certificate-is-not-trusted-elasticsearch-but-i-do-have-the-ssl-certificates/309164)

<div class="topic-metadata">

**Author:** [@Xavier\_Font](https://discuss.elastic.co/u/Xavier_Font)\
**Replies:** 0\
**Last updated:** [July 8, 2022, 12:28am UTC](https://discuss.elastic.co/t/the-certificate-is-not-trusted-elasticsearch-but-i-do-have-the-ssl-certificates/309164 "2022-07-08T00:28:26Z")

</div>

when trying to access endpoints of my self-hosted elasticsearch, On Safari I https://i.stack.imgur.com/YA6Be.png)\](https://i.stack.imgur.com/YA6Be.png And on my Rust client I get code: -67843, message: "The certificate…

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

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