Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

codeactual/foxtrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

198 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foxtrap

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.

screenshot: saved copy viewer

Usage

foxtrap --file bookmarks-YYYY-MM-DD.json

Requirements

  • PHP 5.3+
  • Sphinx Search 0.9.9+
  • MySQL 5.1+

Setup

  1. git submodule update --init
  2. Create a new database and import config/foxtrap.sql.
  3. Copy config/config-dist.php to config/config.php and customize db and sphinx sections.
  4. Copy config/sphinx-dist.conf to config/sphinx.conf and replace the placeholders.
  5. Export bookmarks as JSON.
  6. foxtrap --file bookmarks.json
  7. Start Sphinx:bin/foxtrap-searchd-start
  8. Setup a document root at pub/.
  9. (Recommended) Set up a cron to run foxtrap on the latest JSON file periodically created by Firefox in bookmarkbackups/ under your profile's directory.

Running Tests

  1. Create a new test database and import config/foxtrap.sql.
  2. Customize testConnect values in config/config.php.
  3. Copy config/sphinx-test-dist.conf to config/sphinx-test.conf and replace the placeholders.
  4. Start Sphinx (w/ test config):bin/foxtrap-test-searchd-start
  5. phpunit -c test/unit/phpunit.xml test/unit

Altering the real-time index

  1. Remove old index files.
  2. Stop searchd.
  3. Update sphinx configuration files, ex. new rt_attr_timestamp attribute.
  4. Start searchd.
  5. bin/foxtrap-seed-rtindex

About

Sphinx full-text indexing of pages bookmarked in Firefox and instant search frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors