# Aggregating multi-field (array)

**URL:** https://discuss.elastic.co/t/aggregating-multi-field-array/168310
**Category:** Elasticsearch
**Created:** [February 14, 2019, 12:18am UTC](https://discuss.elastic.co/t/aggregating-multi-field-array/168310 "2019-02-14T00:18:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Madhu\_V](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Madhu\_V](https://discuss.elastic.co/u/Madhu_V)
#### Post date: [February 14, 2019, 12:18am UTC](https://discuss.elastic.co/t/aggregating-multi-field-array/168310/1 "2019-02-14T00:18:03Z")

</div>

I have a field in my doc as below

{  
"Term": "["Randomized","Placebo Control","Single Blind","Prevention","Parallel Assignment","Interventional"]"  
}

and wanna be able to aggregate by the individual terms like Randomized / Placebo Control / other across the index but  
using Keyword = interprets the entire list as 1 occurence or otherwise tokenizes and splits terms like "Placebo Control" etc...

What property should I define for this field to allow for the individual phrase/term aggregation

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 14, 2019, 12:18am UTC](https://discuss.elastic.co/t/aggregating-multi-field-array/168310/2 "2019-03-14T00:18:07Z")

</div>

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