Full-text search is generated at build time and works on the deployed site (and in npm run preview after a production build).
npm run preview