Search index is built by npm run build; it is not available in npm run dev.
npm run build
npm run dev