Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

unexpected error during fresh start by docs #545

Open
nkr-404-NotFound opened this issue Mar 5, 2018 · 0 comments
Open

unexpected error during fresh start by docs #545

nkr-404-NotFound opened this issue Mar 5, 2018 · 0 comments

Comments

@nkr-404-NotFound
Copy link

010_Intro/35_Tutorial_Aggregations.asciidoc

here when excute the example:

{
"aggs": {
"all_interests": {
"terms": { "field": "interests" }
}
}
}
'

elastic search returned :
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "Fielddata is disabled on text fields by default. Set fielddata=true on [interests] 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."
}
],
"type" : "search_phase_execution_exception",
"reason" : "all shards failed",
"phase" : "query",
"grouped" : true,
"failed_shards" : [
{
"shard" : 0,
"index" : "megacorp",
"node" : "3uJClDOmRmKlDjKWYMsYRQ",
"reason" : {
"type" : "illegal_argument_exception",
"reason" : "Fielddata is disabled on text fields by default. Set fielddata=true on [interests] 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."
}
}
]
},
"status" : 400
}

i think it is caused by some version change in default settings , so the doc needs improvement , add corresponding settings before this chapter :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant