today, you'd either pre-filter (e.g. you call LookupResources and then use that as a filter to ES) or post-filter (e.g. you do the ES search and then check each result). Usually post-filter is better if you expect to show only a small number of results from a very large result set