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

[FEATURE REQUEST] Searchengine #48

Open
Bingenberger opened this issue Jan 15, 2022 · 9 comments
Open

[FEATURE REQUEST] Searchengine #48

Bingenberger opened this issue Jan 15, 2022 · 9 comments
Labels
enhancement New feature or request

Comments

@Bingenberger
Copy link

Is it possible to add a sitewide search into the static html-page? We got a pretty big archive and finding old posts will be much easier with a searchengine included.

@knadh
Copy link
Owner

knadh commented Jan 16, 2022

I haven't thought about this, but I guess you could include some sort of a JS search plugin in your site template.

@joschi
Copy link

joschi commented Jan 22, 2022

Suggestion for a static local search engine: Lunr

There's a Python implementation which produces files readable by the JavaScript version: https://pypi.org/project/lunr/

@knadh knadh added the enhancement New feature or request label Jan 23, 2022
@knadh
Copy link
Owner

knadh commented Jan 23, 2022

Will experiment with Lunr sometime, @joschi. The size of the index might get out of hand for big channels.

@f0xcb
Copy link

f0xcb commented Jul 12, 2022

Why not search via MySQL. This would of course require that the database runs in a Mysql database.

@joschi
Copy link

joschi commented Jul 12, 2022

@f0xcb MySQL is quite a heavy dependency and you'd need an active backend service talking to the MySQL database (which doesn't exist yet) in order to run searches.

@knadh
Copy link
Owner

knadh commented Jul 13, 2022

MySQL is not necessary. tg-archive stores all data in an sqlite DB anyway, which has good full text support. It's possible to build a separate frontend which simply reads this DB file and presents a searchable site. That's not in the scope of tg-archive though, as it only aims to sync data and generate static sites.

@dangnhdev
Copy link

I would like to have this feature too. My telegram group is deleted and I'm struggling to search for old but valuable content in chat history.

@knadh
Copy link
Owner

knadh commented Sep 27, 2022

Relevant to this discussion: https://github.com/tinysearch/tinysearch

@rvnikita
Copy link

rvnikita commented May 9, 2023

Would love to have server search as well.

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

No branches or pull requests

6 participants