Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Using keyword instead of text for field color #784

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
      }
    ]
sachinaraballi authored Nov 14, 2018
commit 1a0c5a0db9302bcf28c5b616470cf6356a9797a3
2 changes: 1 addition & 1 deletion 300_Aggregations/20_basic_example.asciidoc
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ GET /cars/transactions/_search
"aggs" : { <1>
"popular_colors" : { <2>
"terms" : { <3>
"field" : "color"
"field" : "color.keyword"
}
}
}