added endpoints for (1) basic search and (2) index rebuild