AddToSearchIndex
AddToSearchIndex[obj, content] adds the specified content to the existing search index object obj.
AddToSearchIndex[obj, {content1, ...}] adds all the contenti to obj.
Examples
Add content to a search index:
index = CreateSearchIndex[{}];
AddToSearchIndex[index, "sample text"]Please visit the official Wolfram Language Reference for more details.