环境变量中的haystack配置

dj-haystack-url的Python项目详细描述


https://badge.fury.io/py/dj-haystack-url.pnghttps://travis-ci.org/simpleenergy/dj-haystack-url.png?branch=masterhttps://pypip.in/d/dj-haystack-url/badge.png

环境变量中的Haystack配置

  • 自由软件:麻省理工学院许可证

支持的后端

目前支持简单、WHOSH、弹性搜索、SOLR和XAPIAN 后端。

安装

安装很简单:

$ pip install dj-haystack-url

用法

settings.py中配置haystack连接 HAYSTACK_CONNECTIONSdefault是可选的):

HAYSTACK_CONNECTIONS = {'default': dj_haystack_url.config(default='simple')}

解析任意haystack连接url:

HAYSTACK_CONNECTIONS = {'default': dj_haystack_url.parse('simple')}

URL架构

EngineHaystack BackendURL
Simple^{tt4}$^{tt5}$
Whoosh^{tt6}$^{tt7}$ [1]
Elasticsearch^{tt8}$^{tt9}$
Solr^{tt10}$^{tt11}$
Xapian^{tt12}$^{tt13}$ [1]
[1](1, 2) Whoosh and Xapian connect to an index on the file system. The same URL format is used, omitting the hostname, and using the “file” portion as the file path to the index.

历史记录

0.1.0(2014-01-11)

  • pypi上的第一个版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java RFID不完整输出?   java如何构造一个for循环来查找每个数组的第一个索引的总和   java Eclipse AST解析器正在删除我的规则   安卓如何在java中创建“可重写”配置?   java每次我向应用程序添加图像时,它都会崩溃   Java 8流到文件   EntityNotFoundException的java可能原因   java多线程为什么下面的程序表现得如此怪异?   java footprint soap api+mavenjaxb2plugin   java MongoDB锁定,直到找到结果   java重写Jtable选项卡行为转到下一个可编辑单元格   java关于方法和创建另一个方法   java将人脸与图像分离   java复制Spring批处理作业实例   java TextView不会更改为新设置的文本