elasticsearch query and object selection

basic script for running an elasticsearch query (returns all objects of
a type) and then finding an specific set of objects within that list.