Add REST call for indexing