Group least frequent terms using a terms facet


(Daniel Duarte Figueiredo) #1

Hello,
Imagine I am indexing posts that have tags, and I want to show the most
frequent tags using a terms facet. I don't want to display the number of
posts of all tags, I want something like:
Tag1: 10%
Tag2: 9%
Tag3: 7%
Tag4: 5%
Others: 69%

Is there an easy way of grouping the least frequent terms in a terms facet
search?

I am thinking about displaying the results using Protovis/D3.js charts, as
explained herehttp://www.elasticsearch.org/blog/2011/05/13/data-visualization-with-elasticsearch-and-protovis.html
.


(Vinicius Melo) #2

I don't think it's possible

On Wednesday, July 11, 2012 11:13:57 AM UTC-3, Daniel Duarte Figueiredo
wrote:

Hello,
Imagine I am indexing posts that have tags, and I want to show the most
frequent tags using a terms facet. I don't want to display the number of
posts of all tags, I want something like:
Tag1: 10%
Tag2: 9%
Tag3: 7%
Tag4: 5%
Others: 69%

Is there an easy way of grouping the least frequent terms in a terms facet
search?

I am thinking about displaying the results using Protovis/D3.js charts, as
explained herehttp://www.elasticsearch.org/blog/2011/05/13/data-visualization-with-elasticsearch-and-protovis.html
.


(system) #3