Generates a simple search filter for ES