Agregations and filters

(Сергей Гаврилюк) #1

I have an index with this mapping:

"domain": {
"type": "string",
"index": "not_analyzed"
"keyword": {
"type": "string",

Example data:

{"domain": "", "keyword":"search"},
{"domain": "", "keyword":"people"},
{"domain": "", "keyword":"people"},
{"domain": "", "keyword":"bar"},

I want to create a query, that will return:

  • domains, filtered by keyword
  • total count of keywords resulted domains have

For search "people" it might be "google": 2 and "facebook": 1

Thanks for your help!

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.