hugo generate lunrjs index.json at the root of
public folder if the site only has one language or within each language subfolder.
When you build the site with
hugo server, hugo generates it internally and of course it don’t show up in the filesystem
You can disable this functionality with
disableSearch param in you site
[params] disableSearch = true