We have been trying to implement the Sitesearch function on our site and have encountered a few strange things.
First, the limit attribute does not seem to work above 85. Is this a hard limit? Would be cool to raise it.
Second, the text indexing may be missing words at the end of sentences, maybe because of the closing period. Not sure about this as pages might be missing of the 85 limit, but I thought I’d ask your opinion, two birds, one stone.
Thanks for the input. The 100 limit is weird as I always get max 85 results in datetime descending order.
The algolia plugin sounds cool, but we are using vercel / nextjs so i think this is not a real option for us. Or is it? Or maybe you have any recommended alternative for our environment, some free 3rd party solution?
We’re also using a Next.js stack, but we haven’t built the site search component yet. I’ll report back if we either succeed or run into issues.
Algolia does have a free plan (10,000 search requests/mo). It doesn’t include the crawler, which means you’ll have to index your resources yourself. But it should be easy with graphQL.
PS there are also open source alternatives to Algolia like TypoSense and MeiliSearch, but you either have to self-host them or deploy to their supported clouds but manage scaling yourself (CPU/bandwidth/etc.). If you’re going with Vercel you’re probably interested in serverless to begin with (same here), so the idea of managing more infrastructure just for search seems… not ideal.
I’ll definitely report back if we find any other solutions later, or if Algolia works out.
You really should put this on the documentation for this feature so people don’t waste time trying get things fixed/changed if it’s not working for them.