implementing facets to withdraw the right data for the hiveplots from elasticsearch