Search is only available in production builds. Try building and previewing the site to test it out locally.
This post is purely for testing the table of content, which should not be rendered