我已经实现了一些python代码,可以使用BM25在whoosh上运行搜索,并且一切正常,但是现在我试图将评分机制更改为Cosine,我得到了这个错误:
from whoosh.scoring import CosineFile"TFIDF.py", line 4, in <module>
from whoosh
在我的开发服务器中,当我尝试使用django/haystack和whoosh后端引擎进行搜索时,遇到了一个问题。The path to your Whoosh index '/home/foo/bar/whoosh/index' is not writable for the current user/group
['body']
body = db.Column(db.String)如果不将whoosh_index()放在whoosh_search()之前,则会得到错误:AttributeError: 'BaseQuery' object has no attribute 'whoosh_search'
教程在没有<e
我知道Whoosh只对新索引的项工作,而不对预先存在的项工作,所以我将所有东西重新导入到我的数据库中。这不起作用,所以我从堆栈溢出问题上运行了gist代码:。whooshalchemy.whoosh_index(app, Restaurant)AttributeError: 'Query' object has no attribute '