update indexing api