Added source filtering for elasticsearch (see #1127)