Aggregating multi-field (array)

(Madhu V) #1

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