Skip to main content

Light redis search engine

Project description

Scavenger is a light search engine for use in django projects utilizing redis indexing and mongodb datastore. Usage Example:

#!/usr/bin/env python

from mongoengine import *
from <app.models> import <models>

p = Person(first_name='joe', last_name='smith')
Scavenger.index(p)

search_models = ['first_name', 'last_name']
s = Scavenger(search_models)

query = 'jared'
matches = s.search(query)

Notes

  • Scavenger.index method calls save() method of mongodb object.
  • Scavenger instance hooks to redis on default localhost:6379 using db=0.
  • Scavenger.index_root defaults to current app/directory name

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Scavenger-0.1.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page