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.

Source Distribution

Scavenger-0.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file Scavenger-0.1.tar.gz.

File metadata

  • Download URL: Scavenger-0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Scavenger-0.1.tar.gz
Algorithm Hash digest
SHA256 3284c767850fd2e95d9112ccf60fc69e2d037f90083cd4127563eb4a2a89d18b
MD5 e1bb176952fac42b09cc9d797f2c5349
BLAKE2b-256 c244c25f1e89bdd2fd57531080370bebc0e21fe1d0e7bd273816ef2d5b307ebc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page