django-tsearch2:Postgresql 对 Django 的全文搜索支持

时间:2021-07-10 12:48:32
【文件属性】:
文件名称:django-tsearch2:Postgresql 对 Django 的全文搜索支持
文件大小:14KB
文件格式:ZIP
更新时间:2021-07-10 12:48:32
Python django-tsearch2 Postgresql 对 Django 的全文搜索支持 安装 您需要安装unaccent扩展并发出: CREATE EXTENSION unaccent; 如果你运行的是 Postgresql 8,或者没有安装unaccent扩展,你可以使用这个 plpython 函数: CREATE LANGUAGE plpythonu; CREATE FUNCTION unaccent (string text) RETURNS varchar AS $$ from unicodedata import normalize, category return unicode( filter( lambda c: category(c) != 'Mn', normalize('NFKD', string.decode('
【文件预览】:
django-tsearch2-master
----runtests_gis.py(375B)
----tsearch2()
--------models.py(7KB)
--------management()
--------__init__.py(22B)
--------gis.py(362B)
--------fields.py(737B)
----testsuite()
--------tsearch2_default()
--------tsearch2_gis()
--------__init__.py(0B)
----LICENSE(1KB)
----runtests.py(383B)
----setup.py(933B)
----.gitignore(57B)
----README.md(2KB)

网友评论