added search/index endpoint