# Elasticsearch

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

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

**Page:** 1525

---

## [Highlight term issue](https://discuss.elastic.co/t/highlight-term-issue/151592)

<div class="topic-metadata">

**Author:** [@komal](https://discuss.elastic.co/u/komal)\
**Replies:** 0\
**Last updated:** [October 9, 2018, 9:28am UTC](https://discuss.elastic.co/t/highlight-term-issue/151592 "2018-10-09T09:28:53Z")

</div>

1.We created an index with below settings and mapping. PUT http://localhost:9200/essearch { "mappings": { "object": { "\_all": { "enabled": false }, "propert…

---

## [How to create a completion suggester index without duplicates?](https://discuss.elastic.co/t/how-to-create-a-completion-suggester-index-without-duplicates/151469)

<div class="topic-metadata">

**Author:** [@thurse](https://discuss.elastic.co/u/thurse)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 9:19am UTC](https://discuss.elastic.co/t/how-to-create-a-completion-suggester-index-without-duplicates/151469 "2018-10-09T09:19:49Z")

</div>

Hi, I want to organize a simple index of various search terms which gets updated frequently by the users of my search api. For this purpose I created the following mapping { "mappings": { "\_doc" : { "pr…

---

## [Use wildcard in Multi Get Java API](https://discuss.elastic.co/t/use-wildcard-in-multi-get-java-api/151580)

<div class="topic-metadata">

**Author:** [@kunliu](https://discuss.elastic.co/u/kunliu)\
**Replies:** 0\
**Last updated:** [October 9, 2018, 9:10am UTC](https://discuss.elastic.co/t/use-wildcard-in-multi-get-java-api/151580 "2018-10-09T09:10:53Z")

</div>

Hi Team, Is there a way to use wildcard to get document from multiple indices in Java API ? For example, currently I have to use prepareMultiGet as below: MultiGetResponse multiGetItemResponses = client.prepareMultiGet…

---

## [Detecting JSON in Ingest pipeline](https://discuss.elastic.co/t/detecting-json-in-ingest-pipeline/151464)

<div class="topic-metadata">

**Author:** [@Merclangrat](https://discuss.elastic.co/u/Merclangrat)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 8:52am UTC](https://discuss.elastic.co/t/detecting-json-in-ingest-pipeline/151464 "2018-10-09T08:52:19Z")

</div>

Hi all! I have the following pipeline: { "description" : "Ingest pipeline", "processors" : \[ { "grok": { "field": "message", "patterns": \["%{TIMESTAMP\_ISO8601:logtime} %{WORD:loglevel} - %{GREEDYDATA:logdata}"\] …

---

## [How to use join in elastic search?](https://discuss.elastic.co/t/how-to-use-join-in-elastic-search/151552)

<div class="topic-metadata">

**Author:** [@prashantmipl](https://discuss.elastic.co/u/prashantmipl)\
**Replies:** 3\
**Last updated:** [October 9, 2018, 8:12am UTC](https://discuss.elastic.co/t/how-to-use-join-in-elastic-search/151552 "2018-10-09T08:12:55Z")

</div>

how to use join in elastic search ?

---

## [Need to maintain the elasticsearch data in server](https://discuss.elastic.co/t/need-to-maintain-the-elasticsearch-data-in-server/151461)

<div class="topic-metadata">

**Author:** [@johnrabi](https://discuss.elastic.co/u/johnrabi)\
**Replies:** 2\
**Last updated:** [October 9, 2018, 8:08am UTC](https://discuss.elastic.co/t/need-to-maintain-the-elasticsearch-data-in-server/151461 "2018-10-09T08:08:12Z")

</div>

Hi Team, can anyone advice on it? In my local I have installed elasticsearch 6 , i need to maintain in the server, which server I need to use for maintaining the elasticsearch data, and how to configure that one? i am …

---

## [2 Availability Zones in cluster](https://discuss.elastic.co/t/2-availability-zones-in-cluster/150592)

<div class="topic-metadata">

**Author:** [@Itay\_Bittan](https://discuss.elastic.co/u/Itay_Bittan)\
**Replies:** 2\
**Last updated:** [October 9, 2018, 8:01am UTC](https://discuss.elastic.co/t/2-availability-zones-in-cluster/150592 "2018-10-09T08:01:41Z")

</div>

We have separate nodes for each role: 3 master nodes, 2 client nodes and 8 data nodes. Each node is EC2 instance in AWS. Nodes are equally distributed among two availability zones (for high availability purpose). Rece…

---

## [How to stop sending duplicate Slack notifications for the same error?](https://discuss.elastic.co/t/how-to-stop-sending-duplicate-slack-notifications-for-the-same-error/151460)

<div class="topic-metadata">

**Author:** [@ddregalo](https://discuss.elastic.co/u/ddregalo)\
**Replies:** 2\
**Last updated:** [October 9, 2018, 7:57am UTC](https://discuss.elastic.co/t/how-to-stop-sending-duplicate-slack-notifications-for-the-same-error/151460 "2018-10-09T07:57:28Z")

</div>

I've asked this question in X-Pack +Heartbeat forums with no real progress made - I was referred to @michael.heldebrant for some assistance!?? If you have any insight on this it would be very much appreciated! :slight\_sm…

---

## [Version 6.4.2 does not start (java.lang.NoSuchFieldError: LOG\_DEFAULT\_LEVEL\_SETTING)](https://discuss.elastic.co/t/version-6-4-2-does-not-start-java-lang-nosuchfielderror-log-default-level-setting/151158)

<div class="topic-metadata">

**Author:** [@najamansari](https://discuss.elastic.co/u/najamansari)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 7:50am UTC](https://discuss.elastic.co/t/version-6-4-2-does-not-start-java-lang-nosuchfielderror-log-default-level-setting/151158 "2018-10-09T07:50:16Z")

</div>

I filed an issue on Github yesterday but turns out this is an environmental thing and not a bug. I am currently in the process of upgrading all our environments from 6.2.0 to 6.4.2 and am currently unable to do so on my …

---

## [Fuzzy searching on shingles filter getting problem](https://discuss.elastic.co/t/fuzzy-searching-on-shingles-filter-getting-problem/151566)

<div class="topic-metadata">

**Author:** [@vishalg](https://discuss.elastic.co/u/vishalg)\
**Replies:** 0\
**Last updated:** [October 9, 2018, 7:41am UTC](https://discuss.elastic.co/t/fuzzy-searching-on-shingles-filter-getting-problem/151566 "2018-10-09T07:41:58Z")

</div>

Query: How to apply fuzziness on every token produced by shingles filter? Below is my created mapping: { "settings":{ "index":{ "number\_of\_shards" : 1, "number\_of\_replicas" : 0 , "analysis":{ "filter": { "my\_syn…

---

## [Can't start ES 6.4 cluster with 3 master nodes](https://discuss.elastic.co/t/cant-start-es-6-4-cluster-with-3-master-nodes/151348)

<div class="topic-metadata">

**Author:** [@ludaca](https://discuss.elastic.co/u/ludaca)\
**Replies:** 6\
**Last updated:** [October 9, 2018, 7:38am UTC](https://discuss.elastic.co/t/cant-start-es-6-4-cluster-with-3-master-nodes/151348 "2018-10-09T07:38:57Z")

</div>

Hello, I have ES 6.3.2 cluster with 3 master nodes running with xpack.security.enabled=true When I' trying to upgrade to ES 6.4.x, master nodes can't communicate each other and form the cluster. Master's elasticsearc…

---

## [Histogram is slow](https://discuss.elastic.co/t/histogram-is-slow/150726)

<div class="topic-metadata">

**Author:** [@Akaren](https://discuss.elastic.co/u/Akaren)\
**Replies:** 4\
**Last updated:** [October 9, 2018, 6:48am UTC](https://discuss.elastic.co/t/histogram-is-slow/150726 "2018-10-09T06:48:10Z")

</div>

Hi, we are having ELK 5.4.3 and 6.1.1 and in both cases thin one chart - histogram is really slow. Other charts are fine. Any idea why? I've set "\_all" field so "query:\*" will search only in one field. And in Profiler…

---

## [Index shard allocation for single node Elasticsearch environment](https://discuss.elastic.co/t/index-shard-allocation-for-single-node-elasticsearch-environment/151546)

<div class="topic-metadata">

**Author:** [@popa](https://discuss.elastic.co/u/popa)\
**Replies:** 3\
**Last updated:** [October 9, 2018, 5:46am UTC](https://discuss.elastic.co/t/index-shard-allocation-for-single-node-elasticsearch-environment/151546 "2018-10-09T05:46:54Z")

</div>

I'm currently working with a single node Elastic Stack deployment. System specifications are 2 CPU / 8 GB RAM / 500 GB SSD. I've implemented most if not all optimization best practices (minus index / shard sizing). I'm …

---

## [What is the recommended way to unit test components using RestHighLevelClient?](https://discuss.elastic.co/t/what-is-the-recommended-way-to-unit-test-components-using-resthighlevelclient/148961)

<div class="topic-metadata">

**Author:** [@chakradarraju](https://discuss.elastic.co/u/chakradarraju)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 3:49am UTC](https://discuss.elastic.co/t/what-is-the-recommended-way-to-unit-test-components-using-resthighlevelclient/148961 "2018-10-09T03:49:35Z")

</div>

There is exact same request made few months back: RestHighLevelClient mocking But it was auto closed without an explanation. I tried using ESIntegTestCase and ran into endless slf4j, log4j incompatibility issues. Bein…

---

## [How to change S3 base\_path for snapshot repos](https://discuss.elastic.co/t/how-to-change-s3-base-path-for-snapshot-repos/151544)

<div class="topic-metadata">

**Author:** [@raywtsang](https://discuss.elastic.co/u/raywtsang)\
**Replies:** 0\
**Last updated:** [October 9, 2018, 2:36am UTC](https://discuss.elastic.co/t/how-to-change-s3-base-path-for-snapshot-repos/151544 "2018-10-09T02:36:14Z")

</div>

I'm having some difficulty changing the base\_path for a snapshot repository and having the change persist after a snapshot has been saved. I have removed the repo using the DELETE /\_snapshot/\<my\_repo\> and recreating wit…

---

## [In-memory elasticsearch](https://discuss.elastic.co/t/in-memory-elasticsearch/151536)

<div class="topic-metadata">

**Author:** [@Manas\_Paldhe](https://discuss.elastic.co/u/Manas_Paldhe)\
**Replies:** 2\
**Last updated:** [October 9, 2018, 1:57am UTC](https://discuss.elastic.co/t/in-memory-elasticsearch/151536 "2018-10-09T01:57:49Z")

</div>

Elasticsearch 1.5 has the option of using memory storage type. If I understand correctly, when this option is chosen, all data will be store in the RAM? If that is the case, why was this option removed in future versio…

---

## [Assistance required to recover an Elasticsearch cluster](https://discuss.elastic.co/t/assistance-required-to-recover-an-elasticsearch-cluster/151533)

<div class="topic-metadata">

**Author:** [@tarpanpathak](https://discuss.elastic.co/u/tarpanpathak)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 10:59pm UTC](https://discuss.elastic.co/t/assistance-required-to-recover-an-elasticsearch-cluster/151533 "2018-10-08T22:59:43Z")

</div>

I need some assistance in recovering an Elasticsearch cluster. Here are the environment details: Elasticsearch version: 5.5.2 Master nodes: 3 Data nodes: 3 Client nodes: 2 (Most recent) master nodes logs: Note: Ea…

---

## [Should I use the table ID as the elastic ID](https://discuss.elastic.co/t/should-i-use-the-table-id-as-the-elastic-id/151532)

<div class="topic-metadata">

**Author:** [@David\_Binney](https://discuss.elastic.co/u/David_Binney)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 10:27pm UTC](https://discuss.elastic.co/t/should-i-use-the-table-id-as-the-elastic-id/151532 "2018-10-08T22:27:41Z")

</div>

I am new to elastic and starting to sync my database tables into elastic indexes. I have started by using the table ID(UUID) as the elastic id, but I am starting to wondering if this is a mistake in terms of performance …

---

## [Making elasticsearch smarter](https://discuss.elastic.co/t/making-elasticsearch-smarter/151492)

<div class="topic-metadata">

**Author:** [@SearchLife](https://discuss.elastic.co/u/SearchLife)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 3:42pm UTC](https://discuss.elastic.co/t/making-elasticsearch-smarter/151492 "2018-10-08T15:42:39Z")

</div>

We currently have elasticsearch running as our primary search tool for an ecommerce website. We are happy with how it works currently but would like to use some historical data to get the user to better results. For ex…

---

## [Passing ctx fields to stored proc as parameter](https://discuss.elastic.co/t/passing-ctx-fields-to-stored-proc-as-parameter/149742)

<div class="topic-metadata">

**Author:** [@Matt\_McGovern](https://discuss.elastic.co/u/Matt_McGovern)\
**Replies:** 5\
**Last updated:** [October 8, 2018, 9:26pm UTC](https://discuss.elastic.co/t/passing-ctx-fields-to-stored-proc-as-parameter/149742 "2018-10-08T21:26:27Z")

</div>

I am managing hundreds of scripts that all use an inline script to go through the nested buckets inside the ctx.payload structure. We've recently run into the circuit break error of: "reason": "\[script\] Too many dynamic …

---

## [Primary shard is not active Timeout : \[1m\]](https://discuss.elastic.co/t/primary-shard-is-not-active-timeout-1m/151515)

<div class="topic-metadata">

**Author:** [@clgs](https://discuss.elastic.co/u/clgs)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 8:03pm UTC](https://discuss.elastic.co/t/primary-shard-is-not-active-timeout-1m/151515 "2018-10-08T20:03:32Z")

</div>

Hello. Please tell me why this happens? We have three servers, all three masters, but we write only on one Server A. When Server B is disconnected, the cluster breaks up and Server A and Server C error: server\_a:9200 …

---

## [Filtering by a aggregation (like SQL having clause)](https://discuss.elastic.co/t/filtering-by-a-aggregation-like-sql-having-clause/151281)

<div class="topic-metadata">

**Author:** [@Lucas\_Porto](https://discuss.elastic.co/u/Lucas_Porto)\
**Replies:** 3\
**Last updated:** [October 8, 2018, 7:35pm UTC](https://discuss.elastic.co/t/filtering-by-a-aggregation-like-sql-having-clause/151281 "2018-10-08T19:35:40Z")

</div>

Hi all, My question is quite simple I think. I have the query below where I use two types of aggregations. The query works fine. GET /testeagg/\_search { "aggregations": { "group\_by\_id": { "aggregations": { …

---

## [Safely disable/enable replicas to fix unassigned shards](https://discuss.elastic.co/t/safely-disable-enable-replicas-to-fix-unassigned-shards/151432)

<div class="topic-metadata">

**Author:** [@steven.walsh](https://discuss.elastic.co/u/steven.walsh)\
**Replies:** 3\
**Last updated:** [October 8, 2018, 6:44pm UTC](https://discuss.elastic.co/t/safely-disable-enable-replicas-to-fix-unassigned-shards/151432 "2018-10-08T18:44:44Z")

</div>

Hi all, We ran into an issue in our production ELK cluster last Friday. The system has since recovered but is in a yellow state with 778 unassigned shards. I've tried to reroute but the two errors coming back say the ma…

---

## [Not able to use "delete\_indices" for curator\_cli](https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490)

<div class="topic-metadata">

**Author:** [@Vinay\_Karajagi](https://discuss.elastic.co/u/Vinay_Karajagi)\
**Replies:** 2\
**Last updated:** [October 8, 2018, 5:35pm UTC](https://discuss.elastic.co/t/not-able-to-use-delete-indices-for-curator-cli/151490 "2018-10-08T17:35:01Z")

</div>

The following line gives - Error: No such command "delete\_indices" curator\_cli --host --port delete\_indices --filter\_list '\[{"filtertype":"pattern","kind":"prefix","value":".watch\_history"}\]' As per curator\_cli --hel…

---

## [Phrase Suggestion based in Query](https://discuss.elastic.co/t/phrase-suggestion-based-in-query/151498)

<div class="topic-metadata">

**Author:** [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 5:31pm UTC](https://discuss.elastic.co/t/phrase-suggestion-based-in-query/151498 "2018-10-08T17:31:47Z")

</div>

Currently I had a property in my mapping that restricts data by accounts, each document has this property stating which account it belongs to. Is it possible to use phrase suggestion only to return document-based sugges…

---

## [Is roll-up API free (open source) or is available only with xpack](https://discuss.elastic.co/t/is-roll-up-api-free-open-source-or-is-available-only-with-xpack/151364)

<div class="topic-metadata">

**Author:** [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Replies:** 2\
**Last updated:** [October 8, 2018, 2:56pm UTC](https://discuss.elastic.co/t/is-roll-up-api-free-open-source-or-is-available-only-with-xpack/151364 "2018-10-08T14:56:16Z")

</div>

Only if I want rollout feature.. how much would it cost in terms of licensing

---

## [Singular and plural entries giving different Result Count](https://discuss.elastic.co/t/singular-and-plural-entries-giving-different-result-count/151481)

<div class="topic-metadata">

**Author:** [@anveshdd](https://discuss.elastic.co/u/anveshdd)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 2:51pm UTC](https://discuss.elastic.co/t/singular-and-plural-entries-giving-different-result-count/151481 "2018-10-08T14:51:43Z")

</div>

I am using ES 6.x. When I tried search for sport and sports its showing different results count. If I search for sport its giving 7 records and for sports 36 records. Any solution to allow singular and plural words to ge…

---

## [Index pattern with alias name](https://discuss.elastic.co/t/index-pattern-with-alias-name/151480)

<div class="topic-metadata">

**Author:** [@chandra0651](https://discuss.elastic.co/u/chandra0651)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 2:50pm UTC](https://discuss.elastic.co/t/index-pattern-with-alias-name/151480 "2018-10-08T14:50:02Z")

</div>

Hello i have four different type of indices which will have same alias name associated with it , now i want to create a index pattern as this alias name so that i can view or get all the data under discover tab. But when…

---

## [Index failure MapperParsingException](https://discuss.elastic.co/t/index-failure-mapperparsingexception/151476)

<div class="topic-metadata">

**Author:** [@Yujia\_Zhou](https://discuss.elastic.co/u/Yujia_Zhou)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 2:26pm UTC](https://discuss.elastic.co/t/index-failure-mapperparsingexception/151476 "2018-10-08T14:26:42Z")

</div>

I'm trying to index my json file with command "curl -XPOST 'http://localhost:9200/mgi\_2/11' -d @/Users/yzhou9/WG3-MetadataSpecifications/json-instances/datacommons/MGI\_0928/jsonld/dats\_MGI\_99205.json" via elasticsearch 1…

---

## [Query to show unfinished job](https://discuss.elastic.co/t/query-to-show-unfinished-job/151467)

<div class="topic-metadata">

**Author:** [@florentmair](https://discuss.elastic.co/u/florentmair)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 1:58pm UTC](https://discuss.elastic.co/t/query-to-show-unfinished-job/151467 "2018-10-08T13:58:30Z")

</div>

Hi everyone, i have an index who store some documents with information like : timestamp;hash;request;begin timestamp;hash;request;end i want to find the most oldest request unfinished, "hash" is an unique ID for the r…

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

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