add the rudiments of elastic search and type-ahead (not working fully yet)