Search query with Facets


We have indexed wikipedia using the wikipedia-river plugin, and have made *
category* field to use keyword analyser. Our Search queries faceted by
category is taking a lot of Memory and CPU.

  1. Why is it taking such high CPU and memory? Can anyone explain what is
    happening behind the scenes when fetching the search results.
  2. Is there a way we can optimise so that we reduce the amount of memory
    and CPU that is being consumed?

The query we used to search with facets

"query": {
"query_string": {
"query": "developer"
"facets": {
"tag": {
"terms": {
"field": "category"
"fields": [


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
For more options, visit