Move search code to escambo plugin