Open Eragonfr opened 1 week ago
So true! One day...
One of the reasons I've been postponing this is that I don't want to read every text file on every search. But maybe it's alright...
It's alright if there is not too much content. But the solution might be to create an index, like how tinysearch do it. Maintaining a JSON index is probably the best solution (that doesn't involve a db) for bigger wikis
Hmm, actually, an index might be a good idea! For some reason, I never thought about that, thank you.
Actually, I'm not scared of db, SQLite is quite good in my experience and I'm gonna introduce it to Mycorrhiza later. It will replace all this wide assortment of JSON files. Might as well store the index.
Tinysearch will probably serve as a source of inspiration.
The current search is only done on title of the existing hyphae. But sometimes you want to find something that's only inside the hyphae content.
If the search would find hyphae that have content matching the request and display them under the list of hyphae that have the request in the title.
I guess something that works kind of like grep would be more than enough. There is no need for a search that allows for similar words or something like that. But having the option to find in the files would be great.