From 1a0c5a0db9302bcf28c5b616470cf6356a9797a3 Mon Sep 17 00:00:00 2001 From: Sachin Araballi Date: Wed, 14 Nov 2018 19:17:47 +0530 Subject: [PATCH] Using keyword instead of text for field color Getting an error message on Kibana console 6.4.2 "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Fielddata is disabled on text fields by default. Set fielddata=true on [color] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead." } ] --- 300_Aggregations/20_basic_example.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/300_Aggregations/20_basic_example.asciidoc b/300_Aggregations/20_basic_example.asciidoc index 2c3281000..c3b9cdcec 100644 --- a/300_Aggregations/20_basic_example.asciidoc +++ b/300_Aggregations/20_basic_example.asciidoc @@ -52,7 +52,7 @@ GET /cars/transactions/_search "aggs" : { <1> "popular_colors" : { <2> "terms" : { <3> - "field" : "color" + "field" : "color.keyword" } } }