AFAIK, Obsidian works on full content from the beginning. I do not understand what is requested here (?)
Do you have “Search” plugin enabled in Obsidian → Settings → Core plugins → Search ?
Related: Full text search index plugin for all text in a vault?
Related usecase: Search text in PDFs