I'm using Hugo paperMod theme. I read online to open the console. When I do that upon sharing I see the following error.
That implies that an index.json is missing somewhere. I don't know how to find it or point to it.
Also saw this question without an answer.
In my config file I don't see anything related to search. Nor anything in the config file of papermod's example site.

I was on the right path.
Hugo can typically generate your content in a variations of forms. See docs: Custom Output formats | Hugo
If you specify json as well, then it will create it for you.
See my updated
config.ymlfile. I was missingJSONfrom my outputs. Adding that, fixed my search functionality.After doing such my search worked. I was also able to find
index.jsonathttps://mfaani.com/index.jsonNote: for your theme things could be different, but you get the idea.