The search index is built by npm run build. Run npm run preview after it to search.
npm run build
npm run preview