"Alternatively use a keyword field instead." error for keyword field

Hi, I'm attempting to sort on a keyword field, and I get "Fielddata is disabled on text fields by default. Set fielddata=true on [guid] 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."

The mapping for this field is
"guid" : {
"type" : "keyword"
},

Any ideas why it isn't honoring the keyword type?

ES 6.2.x

Hm, does the search happen to span across multiple indices? It's possible one of the indices in the search has a different mapping for that field.

It does span multiple indices. We use aliases for routing, so one may be pointed at an older schema.

I'll regenerate and check routing

Thanks!

Np, happy to help! :slight_smile:

Yea, that was the issue, thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.