Power search for Sphinx by SQLite3-FTS extension.
Note
This is experimental library
This is sphinx extension to provide search component with full-text search database.
When sphinx-build
runs with this extension, builder generate these components.
- SQLite database with FTS extension
- Records of all documents
- Search page HTML with sql.js
This will be useful when you want to embed strong full-text search with keeping static-site structure.
pip install atsphinx-sqlite3fts
- Register extension into your
conf.py
and configure it.
extensions = [
#
# Other extensions
#
"atsphinx.sqlite3fts", # Add it
]
- Run builder (html-based builder only).
sphinx-build -M html source build
- To try it in local, use
http.server
module.
python -m http.server -d build
Please access http://localhost:8000/search.html