added ability to retrive list of matching ids from elastic search.  test.js now fetches ids and then appropriate items from db