Add code to search ES.

Kind of clunky, and I have no idea if it works.