added search fxn and docs for using elasticsearch