foxtrap imports Firefox bookmark backup files and downloads all pages for full-text indexing of titles, URIs, tags, and body text.
- "Instant" results as you type.
- Keyword history ranked by queries that led to a clicked link.
- Sanitized copy of the archived page viewable under each search result.
foxtrap --file bookmarks-YYYY-MM-DD.json
- PHP 5.3+
- Sphinx Search 0.9.9+
- MySQL 5.1+
- git submodule update --init
- Create a new database and import
config/foxtrap.sql. - Copy
config/config-dist.phptoconfig/config.phpand customizedbandsphinxsections. - Copy
config/sphinx-dist.conftoconfig/sphinx.confand replace the placeholders. - Export bookmarks as JSON.
foxtrap --file bookmarks.json- Start Sphinx:
bin/foxtrap-searchd-start - Setup a document root at
pub/. - (Recommended) Set up a cron to run
foxtrapon the latest JSON file periodically created by Firefox inbookmarkbackups/under your profile's directory.
- Create a new test database and import
config/foxtrap.sql. - Customize
testConnectvalues inconfig/config.php. - Copy
config/sphinx-test-dist.conftoconfig/sphinx-test.confand replace the placeholders. - Start Sphinx (w/ test config):
bin/foxtrap-test-searchd-start phpunit -c test/unit/phpunit.xml test/unit
- Remove old index files.
- Stop
searchd. - Update sphinx configuration files, ex. new
rt_attr_timestampattribute. - Start
searchd. bin/foxtrap-seed-rtindex
