Closed btholt closed 2 days ago
The current search engine has been manually updated with an updated database based on current documentation. To automatically rebuld the index on every commit to docs, we should configure the new nodes on AWS:
documentation.sqlite
databaseSELECT url, replace(snippet(documentation, -1, '<b>', '</b>', '...', 10), x'0A', ' ') as 'snippet' FROM documentation WHERE content MATCH ? ORDER BY rank LIMIT 256;
documentation.sqlite
and to replace it on these nodesWe need a GitHub action that can perform automatically the following steps after each commit:
docbuilder <input_docs_path> <output_db_path>
where:
<input_docs_path>
is the local path to docs directory, and<output_db_path>
is the full path to the output documentation.sqlite database to be created.@marcobambini @btholt @andinux can I close this issue? I think we're done with https://github.com/sqlitecloud/docsearch-action
As of right now, our docs are not re-index every time we ship new documentation so every time a user searches, they're using an outdated index that doesn't match current documentation. We should rebuild the index every single time new markdown gets committed.