Skip to content

Instantly share code, notes, and snippets.

@rsimon
Created April 5, 2016 15:54
Show Gist options
  • Save rsimon/f0a64fb4464de21df3bcd4fa556b5802 to your computer and use it in GitHub Desktop.
Save rsimon/f0a64fb4464de21df3bcd4fa556b5802 to your computer and use it in GitHub Desktop.
{
"size" : 0,
"aggs" : {
"is_conflation_of" : {
"nested" : {
"path" : "is_conflation_of"
},
"aggs" : {
"source_gazetteer" : {
"terms" : { "field" : "is_conflation_of.source_gazetteer" }
}
}
}
}
}
@rsimon
Copy link
Author

rsimon commented Apr 5, 2016

Aggregation query that returns number of places, along with the distribution of gazetteer records over gazetteers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment