update to index and search