Limiting facet fragments per match or term?

I am using matched_fields for faceting.

The problem is this. I have 3 terms that are matched.


number_of_fragments set to 12

Instead of getting 4 highlights for each, I get 10 highlights for "cat"
and 2 for "dog" and none left for "book".

Is there a way to limit the number of repeating highlight terms?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit