【发布时间】:2009-11-20 01:43:22
【问题描述】:
django-sphinx 文档显示 django-sphinx 层还支持对多个索引的一些基本查询。
http://github.com/dcramer/django-sphinx/blob/master/README.rst
from djangosphinx.models import SphinxSearch
SphinxSearch('index1 index2 index3').query('hello')
SphinxSearch 似乎不包含函数 query()。我还尝试在 django-sphinx 文档中提到的 sphinx.conf sql_query 配置中包含 content_type。没有任何效果。
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'SphinxSearch' object has no attribute 'query'
谁能说明我如何从 sphinx 中的多个索引中获得排名结果
【问题讨论】:
标签: django full-text-search django-sphinx