# Elasticsearch

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

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

**Page:** 1754

---

## [The index is red how i can do about it?](https://discuss.elastic.co/t/the-index-is-red-how-i-can-do-about-it/123826)

<div class="topic-metadata">

**Author:** [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Replies:** 1\
**Last updated:** [March 15, 2018, 6:41am UTC](https://discuss.elastic.co/t/the-index-is-red-how-i-can-do-about-it/123826 "2018-03-15T06:41:01Z")

</div>

use /cat search out put this the indices have 8 shards and two replicas the shard 7 can't ASSIGNED the status is allways UNASSIGNED, i close and open the index it output this again? how i can do about this output? …

---

## [Merging search results by key](https://discuss.elastic.co/t/merging-search-results-by-key/124026)

<div class="topic-metadata">

**Author:** [@omrishaked](https://discuss.elastic.co/u/omrishaked)\
**Replies:** 4\
**Last updated:** [March 15, 2018, 5:45am UTC](https://discuss.elastic.co/t/merging-search-results-by-key/124026 "2018-03-15T05:45:20Z")

</div>

I've got a tough one, which I think can only be solved by client code, but here goes: My index has 4 documents: {"\_id": "user1\_\_field1", "\_source": {"object\_id": "user1", "field\_name": "field1", "value\_int": 123}} {"\_i…

---

## [Multiple documents same id find difference](https://discuss.elastic.co/t/multiple-documents-same-id-find-difference/124025)

<div class="topic-metadata">

**Author:** [@sureshboiina](https://discuss.elastic.co/u/sureshboiina)\
**Replies:** 1\
**Last updated:** [March 15, 2018, 4:50am UTC](https://discuss.elastic.co/t/multiple-documents-same-id-find-difference/124025 "2018-03-15T04:50:53Z")

</div>

HI, Actually have sample data like id,date,value 1,12-03-2018:12:12:234,3 1,12-03-2018:12:13:234,4 2,12-03-2018:12:18:264,2 2,12-03-2018:12:20:234,9 Want to have date difference and value difference between the docs i…

---

## [Aggregations - Average - based on some filters](https://discuss.elastic.co/t/aggregations-average-based-on-some-filters/123837)

<div class="topic-metadata">

**Author:** [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Replies:** 4\
**Last updated:** [March 15, 2018, 3:45am UTC](https://discuss.elastic.co/t/aggregations-average-based-on-some-filters/123837 "2018-03-15T03:45:56Z")

</div>

Hi I have an elastic query get testaggregate/\_search { "from":0, "size":1000, "query":{ "bool":{ "must":\[ {"match": {"uCycleId": "111"}}, {"match": {"uTestId": "222"}}, {"m…

---

## [Elasticsearch NEST Highlight](https://discuss.elastic.co/t/elasticsearch-nest-highlight/117158)

<div class="topic-metadata">

**Author:** [@Ramon\_Zaro](https://discuss.elastic.co/u/Ramon_Zaro)\
**Replies:** 10\
**Last updated:** [March 15, 2018, 2:50am UTC](https://discuss.elastic.co/t/elasticsearch-nest-highlight/117158 "2018-03-15T02:50:32Z")

</div>

Hi all, I am running an ES 5.5.0 implementation and use the NEST api in a custom .NET app. I am able to get correct highlight results while using exact word search. But after activating the full lucene query the highli…

---

## [Parent/Child Filter documents by using aggregation results](https://discuss.elastic.co/t/parent-child-filter-documents-by-using-aggregation-results/124003)

<div class="topic-metadata">

**Author:** [@josem](https://discuss.elastic.co/u/josem)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 10:03pm UTC](https://discuss.elastic.co/t/parent-child-filter-documents-by-using-aggregation-results/124003 "2018-03-14T22:03:31Z")

</div>

Hi, I am new using ES and I am currently working on an interesting usage for ES, here a little of context: In my company we have two main business objects and they have a parent-child relationship. There are many childr…

---

## [ElasticSearch with Freeboard](https://discuss.elastic.co/t/elasticsearch-with-freeboard/124002)

<div class="topic-metadata">

**Author:** [@Dipali](https://discuss.elastic.co/u/Dipali)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 10:01pm UTC](https://discuss.elastic.co/t/elasticsearch-with-freeboard/124002 "2018-03-14T22:01:24Z")

</div>

Hi, I have created 2 Indexes in ElasticSearch which i can see and configure using ElasticSearch head plugin. 1 index is created using the app which is integrated with ES and other one i created manually using Bulk API. …

---

## [Comparison of performance on sorting vs. scoring on date field](https://discuss.elastic.co/t/comparison-of-performance-on-sorting-vs-scoring-on-date-field/124001)

<div class="topic-metadata">

**Author:** [@Chris\_Gatihi](https://discuss.elastic.co/u/Chris_Gatihi)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 10:00pm UTC](https://discuss.elastic.co/t/comparison-of-performance-on-sorting-vs-scoring-on-date-field/124001 "2018-03-14T22:00:30Z")

</div>

Since results are ordered by relevance by default when performing a search in ES, I have at least two options to obtain a sorted result set if I want to sort by a date field in descending order: I can do an explicit so…

---

## [Logging into the cloud servers](https://discuss.elastic.co/t/logging-into-the-cloud-servers/123999)

<div class="topic-metadata">

**Author:** [@ar21](https://discuss.elastic.co/u/ar21)\
**Replies:** 1\
**Last updated:** [March 14, 2018, 9:47pm UTC](https://discuss.elastic.co/t/logging-into-the-cloud-servers/123999 "2018-03-14T21:47:29Z")

</div>

I would like to install new relic plugin on the servers that are running in elastic.co cloud. For this, I will need to login to the server, download the new relic agent plugin and be able to run it. Is there a way to do …

---

## [Elasticsearch/PHP Client: Using script to search for a month](https://discuss.elastic.co/t/elasticsearch-php-client-using-script-to-search-for-a-month/123988)

<div class="topic-metadata">

**Author:** [@syiannop](https://discuss.elastic.co/u/syiannop)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-php-client-using-script-to-search-for-a-month/123988 "2018-03-14T19:52:31Z")

</div>

I am trying to search for a specific month using the PHP client for ES. I tried the following code and it works fine in Kibana: GET testba/\_search { "query": { "bool": { "must": \[ { "range": { …

---

## [Conflicting field names doesnt allow to have differnet settings](https://discuss.elastic.co/t/conflicting-field-names-doesnt-allow-to-have-differnet-settings/123955)

<div class="topic-metadata">

**Author:** [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Replies:** 3\
**Last updated:** [March 14, 2018, 6:44pm UTC](https://discuss.elastic.co/t/conflicting-field-names-doesnt-allow-to-have-differnet-settings/123955 "2018-03-14T18:44:32Z")

</div>

I have two mappings type mpping1 and mapping2 both of them have serverIP. In mapping1 iwant to enable indexing but want to disable on mapping2 how to do that? i am getting exception reg conflicting settings

---

## [Elasticsearch.js client bulk delete api](https://discuss.elastic.co/t/elasticsearch-js-client-bulk-delete-api/123978)

<div class="topic-metadata">

**Author:** [@fali](https://discuss.elastic.co/u/fali)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 6:41pm UTC](https://discuss.elastic.co/t/elasticsearch-js-client-bulk-delete-api/123978 "2018-03-14T18:41:44Z")

</div>

Hi, I'm trying to use the elasticsearch.js client to bulk delete documents from elasticsearch using the bulk api. The documents get deleted successfully. However, when I run the same delete request using the same set o…

---

## [Elasticsearch-curator-5.4.1-1.x86\_64](https://discuss.elastic.co/t/elasticsearch-curator-5-4-1-1-x86-64/123926)

<div class="topic-metadata">

**Author:** [@vitich](https://discuss.elastic.co/u/vitich)\
**Replies:** 2\
**Last updated:** [March 14, 2018, 6:37pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-5-4-1-1-x86-64/123926 "2018-03-14T18:37:41Z")

</div>

Curator is broken after update elasticsearch-curator-5.2.0-1.x86\_64 works fine curator .curator/nginx.yml Traceback (most recent call last): File "/home/buh/.local/lib/python3.6/site-packages/cx\_Freeze/initscripts/\_\_…

---

## [Elastic Search Does not overwrite data from Hive overwrite insert statement](https://discuss.elastic.co/t/elastic-search-does-not-overwrite-data-from-hive-overwrite-insert-statement/123806)

<div class="topic-metadata">

**Author:** [@naresh523](https://discuss.elastic.co/u/naresh523)\
**Replies:** 0\
**Last updated:** [March 13, 2018, 8:48pm UTC](https://discuss.elastic.co/t/elastic-search-does-not-overwrite-data-from-hive-overwrite-insert-statement/123806 "2018-03-13T20:48:33Z")

</div>

Trying to do insert overwrite es\_table from select \*; Does not overwrites the data in es\_tables, instead count on es\_tables doubles; My data does not have a unique column, so used two column as mapping.id, then while t…

---

## [Increasing num of indices decreasing performance](https://discuss.elastic.co/t/increasing-num-of-indices-decreasing-performance/123953)

<div class="topic-metadata">

**Author:** [@Yogesh\_BG](https://discuss.elastic.co/u/Yogesh_BG)\
**Replies:** 1\
**Last updated:** [March 14, 2018, 5:00pm UTC](https://discuss.elastic.co/t/increasing-num-of-indices-decreasing-performance/123953 "2018-03-14T17:00:10Z")

</div>

I have one index per user. With one index i would be able to achieve 5k docs per second. Each doc ~5K. When i increased number of users and hence number of indices... around 30 users the num of docs per second reduced to…

---

## [Java API - delete all documents within the specific index and the specific type](https://discuss.elastic.co/t/java-api-delete-all-documents-within-the-specific-index-and-the-specific-type/4681)

<div class="topic-metadata">

**Author:** [@Slava\_G](https://discuss.elastic.co/u/Slava_G)\
**Replies:** 12\
**Last updated:** [March 14, 2018, 4:20pm UTC](https://discuss.elastic.co/t/java-api-delete-all-documents-within-the-specific-index-and-the-specific-type/4681 "2018-03-14T16:20:10Z")

</div>

Hi, I'm trying to delete all documents within specific index and type or to delete entire index, using this piece of code: DeleteResponse response = client.prepareDelete().setIndex(indexKey) .execute() …

---

## [\[BUG\] You can use BulkProcessor with high-level client in 5.6 version](https://discuss.elastic.co/t/bug-you-can-use-bulkprocessor-with-high-level-client-in-5-6-version/123602)

<div class="topic-metadata">

**Author:** [@juanaramis](https://discuss.elastic.co/u/juanaramis)\
**Replies:** 8\
**Last updated:** [March 14, 2018, 4:13pm UTC](https://discuss.elastic.co/t/bug-you-can-use-bulkprocessor-with-high-level-client-in-5-6-version/123602 "2018-03-14T16:13:48Z")

</div>

Hi team, Thanks in advance I try to create a BulkProcessor like https://www.elastic.co/guide/en/elasticsearch/client/java-rest/5.6/java-rest-high-document-bulk.html with the high-level client in the version 5.6 but I…

---

## [Entity extraction on query?](https://discuss.elastic.co/t/entity-extraction-on-query/123947)

<div class="topic-metadata">

**Author:** [@aclowkey](https://discuss.elastic.co/u/aclowkey)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 4:07pm UTC](https://discuss.elastic.co/t/entity-extraction-on-query/123947 "2018-03-14T16:07:47Z")

</div>

I was curious if anyone knows about performing entity extraction on a user query, on query time, to determine which fields to search on? i.e. "Black hats for women" would be tagged as black:color, hats:category, women:g…

---

## [Convert ElastichSearch query to NEST query](https://discuss.elastic.co/t/convert-elastichsearch-query-to-nest-query/123946)

<div class="topic-metadata">

**Author:** [@Thanh\_S\_n\_Nguy\_n](https://discuss.elastic.co/u/Thanh_S_n_Nguy_n)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 4:05pm UTC](https://discuss.elastic.co/t/convert-elastichsearch-query-to-nest-query/123946 "2018-03-14T16:05:12Z")

</div>

Hi all, I have a ElasticSearch query: { "query": { "bool": { "must": \[ { "query\_string": { "query": "\*", "analyze\_wildcard": true } }, { …

---

## [Unable to connect to localhost elastic](https://discuss.elastic.co/t/unable-to-connect-to-localhost-elastic/123875)

<div class="topic-metadata">

**Author:** [@kmo2008](https://discuss.elastic.co/u/kmo2008)\
**Replies:** 4\
**Last updated:** [March 14, 2018, 3:45pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-localhost-elastic/123875 "2018-03-14T15:45:34Z")

</div>

Hi, I'm learning ElasticSearch, I have a problem with connecting to the database. I install clear lastest elastic with clustername "kmo2008" without x-pack on basic license. On web on localhsot:9200 gives: { "name": "…

---

## [Query string with highlighting slow and high cpu usage](https://discuss.elastic.co/t/query-string-with-highlighting-slow-and-high-cpu-usage/123790)

<div class="topic-metadata">

**Author:** [@imranazad](https://discuss.elastic.co/u/imranazad)\
**Replies:** 8\
**Last updated:** [March 14, 2018, 3:17pm UTC](https://discuss.elastic.co/t/query-string-with-highlighting-slow-and-high-cpu-usage/123790 "2018-03-14T15:17:15Z")

</div>

I have the following query: GET /test/\_search?human=true { "profile": true, "\_source": "title", "from":0, "size":250, "query":{ "bool":{ "must":\[ { "query\_string":{ "query":"VITAL SIGNS COMPUTER", "default\_o…

---

## [Add mapping on elastic search index field](https://discuss.elastic.co/t/add-mapping-on-elastic-search-index-field/123859)

<div class="topic-metadata">

**Author:** [@Ali\_Ahmed](https://discuss.elastic.co/u/Ali_Ahmed)\
**Replies:** 2\
**Last updated:** [March 14, 2018, 3:12pm UTC](https://discuss.elastic.co/t/add-mapping-on-elastic-search-index-field/123859 "2018-03-14T15:12:06Z")

</div>

{ "user": { "aliases": {}, "mappings": { "user": { "properties": { "created": { "type": "date" }, "email": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore\_above": 256 } } } } } …

---

## [What is the impact by increasing the parameter script.max\_compilations\_per\_minute value](https://discuss.elastic.co/t/what-is-the-impact-by-increasing-the-parameter-script-max-compilations-per-minute-value/123925)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 2:58pm UTC](https://discuss.elastic.co/t/what-is-the-impact-by-increasing-the-parameter-script-max-compilations-per-minute-value/123925 "2018-03-14T14:58:31Z")

</div>

Hi All, Could any one let me know what is impact by increasing the parameter value script.max\_compilations\_per\_minute to higher number i.e more than default value. Thanks

---

## [Shared / Cross-Acccount S3 repository for snapshots - Access Denied](https://discuss.elastic.co/t/shared-cross-acccount-s3-repository-for-snapshots-access-denied/123252)

<div class="topic-metadata">

**Author:** [@baltendo](https://discuss.elastic.co/u/baltendo)\
**Replies:** 1\
**Last updated:** [March 14, 2018, 2:19pm UTC](https://discuss.elastic.co/t/shared-cross-acccount-s3-repository-for-snapshots-access-denied/123252 "2018-03-14T14:19:03Z")

</div>

Hi! We want that our test elasticsearch cluster is able to restore snapshots from our live elasticsearch. This worked fine in the past when we had one AWS account but now the clusters are in different AWS accounts for …

---

## [Custom ui for elasticsearch](https://discuss.elastic.co/t/custom-ui-for-elasticsearch/123886)

<div class="topic-metadata">

**Author:** [@SHIVAM\_AGRAWAL](https://discuss.elastic.co/u/SHIVAM_AGRAWAL)\
**Replies:** 1\
**Last updated:** [March 14, 2018, 2:09pm UTC](https://discuss.elastic.co/t/custom-ui-for-elasticsearch/123886 "2018-03-14T14:09:38Z")

</div>

Is there any method by which we can create custom ui for elasticsearch? I don't want to use kibana and want something much simpler. Just data filtering is sufficient. I cant figure how data from elasticsearch reaches kib…

---

## [Search for Facet/Aggregation value](https://discuss.elastic.co/t/search-for-facet-aggregation-value/123816)

<div class="topic-metadata">

**Author:** [@Mindtech](https://discuss.elastic.co/u/Mindtech)\
**Replies:** 3\
**Last updated:** [March 14, 2018, 1:53pm UTC](https://discuss.elastic.co/t/search-for-facet-aggregation-value/123816 "2018-03-14T13:53:22Z")

</div>

The main reasons we switched to Algolia was the speed and ability to search within Facet values (https://blog.algolia.com/search-for-facet-values/) Now that Elasticsearch supports index time sorting, we might consider c…

---

## [Implementing Ingest Attachment Processor Plugin](https://discuss.elastic.co/t/implementing-ingest-attachment-processor-plugin/52300)

<div class="topic-metadata">

**Author:** [@kruelah](https://discuss.elastic.co/u/kruelah)\
**Replies:** 33\
**Last updated:** [March 14, 2018, 1:51pm UTC](https://discuss.elastic.co/t/implementing-ingest-attachment-processor-plugin/52300 "2018-03-14T13:51:47Z")

</div>

I currently use a Mapper Attachments type in my Elasticsearch 2.3 mapping and I try to migrate to Elasticsearch 5.0.0-beta3. Unfortunatelly the plugin has been replaced by new Ingest Attachment Processor Plugin, which is…

---

## [Shard limit hit](https://discuss.elastic.co/t/shard-limit-hit/123606)

<div class="topic-metadata">

**Author:** [@jmgarcia](https://discuss.elastic.co/u/jmgarcia)\
**Replies:** 14\
**Last updated:** [March 14, 2018, 1:40pm UTC](https://discuss.elastic.co/t/shard-limit-hit/123606 "2018-03-14T13:40:27Z")

</div>

Well to get down to it we migraded servers this weekend. My script worked before but now it doesnt. I keep on getting an error that "\[{'error': {'root\_cause': \[{'type': 'illegal\_argument\_exception', 'reason': 'Trying t…

---

## [Elasticsearch-5.0.2 -\> SERVICE\_UNAVAILABLE/1/state not recovered / initialized](https://discuss.elastic.co/t/elasticsearch-5-0-2-service-unavailable-1-state-not-recovered-initialized/123665)

<div class="topic-metadata">

**Author:** [@lupolo](https://discuss.elastic.co/u/lupolo)\
**Replies:** 1\
**Last updated:** [March 14, 2018, 1:33pm UTC](https://discuss.elastic.co/t/elasticsearch-5-0-2-service-unavailable-1-state-not-recovered-initialized/123665 "2018-03-14T13:33:21Z")

</div>

Hi, What can I do to bring this cluster of 5 nodes up and running again? Issue: Since I upgraded jvm.options settings from -Xms2g -Xmx2g to -Xms4g -Xmx4g the cluster stays in red state. See details: Version: elastic…

---

## [Issue with using Multi Type query search with \_msearch?](https://discuss.elastic.co/t/issue-with-using-multi-type-query-search-with-msearch/123908)

<div class="topic-metadata">

**Author:** [@prasanth](https://discuss.elastic.co/u/prasanth)\
**Replies:** 0\
**Last updated:** [March 14, 2018, 1:10pm UTC](https://discuss.elastic.co/t/issue-with-using-multi-type-query-search-with-msearch/123908 "2018-03-14T13:10:00Z")

</div>

Hi , I have tried \_msearch with following query . { "index": "testIndex", "type": "home" } { "query": { "match\_all": {}}} { "index": "testIndex", "type": "persons" } { "query": { "match\_all": {}}} But response only co…

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

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