Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in hyphae content #238

Open
Eragonfr opened this issue Jun 24, 2024 · 3 comments
Open

Search in hyphae content #238

Eragonfr opened this issue Jun 24, 2024 · 3 comments

Comments

@Eragonfr
Copy link

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.

@Eragonfr Eragonfr changed the title Search in hyphae Search in hyphae content Jun 24, 2024
@bouncepaw
Copy link
Owner

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...

@Eragonfr
Copy link
Author

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

@bouncepaw
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants