Visualize pdf and images indexed with fscrawler in kibana dicover section

i didnt understand terms aggregation in the visualization, can you give an exemple, what i am doing now in the filter is: content:"hello", can you give an example of term agregation and where i should put it (in kibana filter ??)
thank you