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


(Chris Orogvany) #1

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


(Zachary Tong) #2

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.


(Chris Orogvany) #3

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!


(Zachary Tong) #4

Np, happy to help! :slight_smile:


(Chris Orogvany) #5

Yea, that was the issue, thanks!


(system) #6

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