Sync-up with https://github.com/imotov/elasticsearch-facet-script.git