集成芹菜和干草堆的应用程序。
celery-haystack的Python项目详细描述
===
芹菜干草堆图片::https://secure.travis-ci.org/django-haystack/celeri-haystack.png?branch=development
:alt:build status
:target:http://travis ci.org/django haystack/celeriy haystack
此django应用程序允许您利用芹菜自动更新和删除haystack搜索索引中的对象。
要求
----
*django 1.8+
*haystack 2.x`
*芹菜_3.x
您还需要为Haystack安装一个支持的搜索引擎
,并为芹菜安装一个支持的后端。
_草堆:http://haystacksearch.org
…_芹菜:http://www.celleryproject.org
1.9您需要安装并配置“django transaction hooks”(django事务挂钩)——一个
将事务提交挂钩带给django的应用程序。_ django-transaction-hooks:https://github.com/carljm/django transaction hooks
用法
----
1。将“芹菜干草堆”添加到“已安装的应用程序”设置中。代码:python
installed_apps=[
..
‘芹菜草堆’,
]
2.在设置中启用芹菜干草堆信号处理器。代码::python
haystack_signal_processor='芹菜草堆.信号.芹菜信号处理器'
>3.将所有“searchIndex”子类更改为继承自
``celeri\u haystack.index.cellerySearchIndex``和
``haystack.index.indexable``
。代码::python
from haystack import indexes
from celeriy\u haystack.indexes从myapp导入芹菜搜索索引
class noteindex(芹菜搜索索引,indexes.indexable):
text=indexes.charfield(document=true,model\u attr='content')
退货单
4.确保你的芹菜实例正在运行。
_排队搜索:https://github.com/toastdriven/queued\u search/
…_芹菜:http://celleryproject.org/
…_队列:http://code.google.com/p/queues/
_` github问题跟踪者:https://github.com/django-haystack/celeri-haystack/issues
芹菜干草堆图片::https://secure.travis-ci.org/django-haystack/celeri-haystack.png?branch=development
:alt:build status
:target:http://travis ci.org/django haystack/celeriy haystack
此django应用程序允许您利用芹菜自动更新和删除haystack搜索索引中的对象。
要求
----
*django 1.8+
*haystack 2.x`
*芹菜_3.x
您还需要为Haystack安装一个支持的搜索引擎
,并为芹菜安装一个支持的后端。
_草堆:http://haystacksearch.org
…_芹菜:http://www.celleryproject.org
1.9您需要安装并配置“django transaction hooks”(django事务挂钩)——一个
将事务提交挂钩带给django的应用程序。_ django-transaction-hooks:https://github.com/carljm/django transaction hooks
用法
----
1。将“芹菜干草堆”添加到“已安装的应用程序”设置中。代码:python
installed_apps=[
..
‘芹菜草堆’,
]
2.在设置中启用芹菜干草堆信号处理器。代码::python
haystack_signal_processor='芹菜草堆.信号.芹菜信号处理器'
>3.将所有“searchIndex”子类更改为继承自
``celeri\u haystack.index.cellerySearchIndex``和
``haystack.index.indexable``
。代码::python
from haystack import indexes
from celeriy\u haystack.indexes从myapp导入芹菜搜索索引
class noteindex(芹菜搜索索引,indexes.indexable):
text=indexes.charfield(document=true,model\u attr='content')
4.确保你的芹菜实例正在运行。
_排队搜索:https://github.com/toastdriven/queued\u search/
…_芹菜:http://celleryproject.org/
…_队列:http://code.google.com/p/queues/
_` github问题跟踪者:https://github.com/django-haystack/celeri-haystack/issues