Small search engine website with PHP frontend : FryoSearch ↗.
- For full search (requires PHP + local DB): run
php -S 127.0.0.1:8000then open http://127.0.0.1:8000/search.php
- index.html : home page
- search.php : search UI (PHP, uses hostingDb.sqlite)
- index.css, search.css : styles
- search.xml : OpenSearch descriptor
- site.webmanifest : web app manifest
To run the search engine, a database is needed (name : hostingDb.sqlite)
The database has one table (named indexed_url) that has 7 columns:
-
id, url, title, domain, lang, pageRank, desc
Example (column by column) :
- 1
- https%3A//fr.wikipedia.org/wiki/Wikip%25C3%25A9dia%253AAccueil_principal
- Wikipédia, l'encyclopédie libre
- fr.wikipedia.org
- 0.000006729621588583531
- Article labellisé du jour Rayman est un jeu vidéo de plateformes en 2D à défilement horizontal...
The DB has also a virtual table to run bm25 on, named search_fts with two columns: url and title The rows in the virtual table need to be in the same order as in the main table.