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

Getting Started >You Know, for Search...>Analytics - Fielddata is disabled on text fields by default #701

Open
thereallisa opened this issue Aug 2, 2017 · 0 comments

Comments

@thereallisa
Copy link

Section: Getting Started >You Know, for Search...>Analytics
The GET example "For example, let’s find the most popular interests enjoyed by our employees:" will fail since fielddata is disabled on text fields by default. The GET request will result in the error Visualize: 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.

This section should include the PUT to enable fielddata on interests:
PUT megacorp/_mapping/employee { "employee": { "properties": { "interests": { "type": "text", "fielddata": true } } } }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant