[elasticsearch] adapt select() to use $where

This pretty much allows seamless navigation all the way to editing. I haven't tried the actual inserting/updating yet.