How to do aggregation in Elastic search with a field which has both keyword and text types


(Sreejith Ms) #1

Im new to ES, Please help me to do the aggregation in Elastic search with a field which has both keyword and text types.


(Christian Dahlqvist) #2

A single field can not have multiple types. If you are referring to the default mapping that uses multifields, there are two separate fields that can be queried and aggregated on - <field> and <field>.keyword. Pick the one that has the mapping you need for your serach or aggregation.


(system) closed #3

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