{"id":13502779,"url":"https://github.com/django-haystack/celery-haystack","last_synced_at":"2025-04-13T18:34:09.483Z","repository":{"id":53906785,"uuid":"2124286","full_name":"django-haystack/celery-haystack","owner":"django-haystack","description":"An app for integrating Celery with Haystack.","archived":false,"fork":false,"pushed_at":"2025-03-03T22:27:49.000Z","size":213,"stargazers_count":223,"open_issues_count":29,"forks_count":95,"subscribers_count":19,"default_branch":"develop","last_synced_at":"2025-04-06T15:07:13.764Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://celery-haystack.readthedocs.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/django-haystack.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-07-29T14:38:01.000Z","updated_at":"2025-03-03T22:27:37.000Z","dependencies_parsed_at":"2024-02-13T04:28:41.325Z","dependency_job_id":"758de63f-3416-4923-8fb9-26cb654eb9bf","html_url":"https://github.com/django-haystack/celery-haystack","commit_stats":{"total_commits":213,"total_committers":23,"mean_commits":9.26086956521739,"dds":0.5023474178403755,"last_synced_commit":"47d1219ccae2c3d0e09c6118c6751e69734af52c"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-haystack%2Fcelery-haystack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-haystack%2Fcelery-haystack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-haystack%2Fcelery-haystack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-haystack%2Fcelery-haystack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/django-haystack","download_url":"https://codeload.github.com/django-haystack/celery-haystack/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760643,"owners_count":21157400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:02:24.881Z","updated_at":"2025-04-13T18:34:09.448Z","avatar_url":"https://github.com/django-haystack.png","language":"Python","readme":"===============\ncelery-haystack\n===============\n\n.. image:: https://secure.travis-ci.org/django-haystack/celery-haystack.png?branch=develop\n    :alt: Build Status\n    :target: http://travis-ci.org/django-haystack/celery-haystack\n\nThis Django app allows you to utilize Celery for automatically updating and\ndeleting objects in a Haystack_ search index.\n\nRequirements\n------------\n\n* Django 1.8+\n* Haystack_ `2.X`_\n* Celery_ 3.X\n\nYou also need to install your choice of one of the supported search engines\nfor Haystack and one of the supported backends for Celery.\n\n\n.. _Haystack: http://haystacksearch.org\n.. _Celery: http://www.celeryproject.org\n\n\nInstallation\n------------\n\nUse your favorite Python package manager to install the app from PyPI, e.g.::\n\n    pip install celery-haystack\n\n\nFor Django \u003c 1.9 you need to install and configure `django-transaction-hooks`_ -- an app that\nbrings transaction commit hooks to Django.\n\n.. _django-transaction-hooks: https://github.com/carljm/django-transaction-hooks\n\n\nUsage\n-----\n\n1. Add ``'celery_haystack'`` to the ``INSTALLED_APPS`` setting\n\n   .. code:: python\n\n     INSTALLED_APPS = [\n         # ..\n         'celery_haystack',\n     ]\n\n2. Enable the celery-haystack signal processor in the settings\n\n   .. code:: python\n\n    HAYSTACK_SIGNAL_PROCESSOR = 'celery_haystack.signals.CelerySignalProcessor'\n\n3. Alter all of your ``SearchIndex`` subclasses to inherit from\n   ``celery_haystack.indexes.CelerySearchIndex`` and\n   ``haystack.indexes.Indexable``\n\n   .. code:: python\n\n     from haystack import indexes\n     from celery_haystack.indexes import CelerySearchIndex\n     from myapp.models import Note\n\n     class NoteIndex(CelerySearchIndex, indexes.Indexable):\n         text = indexes.CharField(document=True, model_attr='content')\n\n         def get_model(self):\n             return Note\n\n4. Ensure your Celery instance is running.\n\nThanks\n------\n\nThis app is a blatant rip-off of Daniel Lindsley's queued_search_\napp but uses Ask Solem Hoel's Celery_ instead of the equally awesome\nqueues_ library by Matt Croyden.\n\n.. _queued_search: https://github.com/toastdriven/queued_search/\n.. _Celery: http://celeryproject.org/\n.. _queues: http://code.google.com/p/queues/\n\nIssues\n------\n\nPlease use the `Github issue tracker`_ for any bug reports or feature\nrequests.\n\n.. _`Github issue tracker`: https://github.com/django-haystack/celery-haystack/issues\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-haystack%2Fcelery-haystack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjango-haystack%2Fcelery-haystack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-haystack%2Fcelery-haystack/lists"}