Giter Site home page Giter Site logo

christopherrabotin / celery-bungiesearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from afrancis13/celery-bungiesearch

0.0 3.0 0.0 92 KB

A repository that wraps Django signal processing classes in celery tasks.

License: MIT License

Python 100.00%

celery-bungiesearch's Introduction

celery-bungiesearch

A repository that wraps the provided Bungiesearch signal processing class in your own celery tasks.

This Django app allows you to utilize Celery for automatically updating and deleting objects in a Bungiesearch search index.

Compatible with most recent version of Bungiesearch, which is similar to Haystack, but interacts directly with elasticsearch-dsl and therefore allows for more custom ranking functions.

Install

pip install celery-bungiesearch

Requirements

Usage

  1. Add 'celery_bungiesearch' to INSTALLED_APPS in settings
INSTALLED_APPS = [
    # ..
    'celery_bungiesearch',
]
  1. Add CelerySignalProcessor to settings.BUNGIESEARCH['SIGNAL_CLASS'] in settings. This will ensure that any model that's managed by a BungiesearchManager acquire CelerySignalProcessor as the signal processor.
from celery_bungiesearch import CelerySignalProcessor

BUNGIESEARCH = {
   # ..
   'SIGNALS': {
       'SIGNAL_CLASS': 'celery_bungiesearch.signals.CelerySignalProcessor',
       'BUFFER_SIZE' : 100
   }

}

  1. Add celery-bungisearch configuration variables to your settings file. The task below is the default version, but you may include your own custom class if you desire:
CELERY_BUNGIESEARCH_QUEUE = None
CELERY_BUNGIESEARCH_TASK = 'celery_bungiesearch.tasks.celeryindex.CeleryIndexTask'
  1. Ensure your Celery instance is running.

Testing

You can run tests locally for celery-bungiesearch by simply running the command tox or tox test. You must have an instance of elasticsearch running locally. You can also run tests using continuous integration with Travis CI (build status at the top of this README).

Thanks

This application borrows liberally from Jannis Leidel's celery-haystack and from Christopher Rabotin's Bungiesearch, which itself was the inspiration for this project.

Issues

Please submit a pull request or use the Github issue tracker for any bug fixes, bug reports, or feature requests.

celery-bungiesearch's People

Contributors

afrancis13 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.