I Kind of Miss Search
I've started to miss being able to search my blog. I've got nearly 700 posts over 12 years of writing. When it was running on Wordpress, search came for free because it's all in a database. When I moved to static, I lost that option. I think my categories and tags are pretty good, but if I want to reference something I've already written (or even check if I've already written something) I need to to Google, use the site:blog.ohheybrian.com trick, and then go through results. Not ideal.
I came across webdix a few months ago and this looks like a workable option. I like that it uses SQLite and that it's processed on the server and that I could write some custom functions against the database.
Another option is an official pelican-search plugin which uses Stork to generate a search file that's then indexed and searched with some Javascript. They also have a WASM option, so that might be fun to try out.
I may also be overthinking all of this.
A thought from D'Arcy Norman
2024-04-15 18:04:28If your static site generator can produce a JSON file, you might be able to use Flexsearch https://github.com/nextapps-de/flexsearch - it's what I use on my site at https://darcynorman.net/search and it's amazingly fast because it's just JSON and javascript that run locally.
A thought from COD
2024-04-15 21:29:17I use DDG to search my blog - it's okay. Seems like a lot of pages are not indexed. I miss 2005 when I could mention Britney Spears, and I'd be #1 on Google for Britney Spears the next day. (I'm not kidding.)