User affiliation filter

Added a filter to elasticsearch based on user affiliations.