We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
这种情况下的最佳索引结构是 后缀树
Lucene 没有实现这种类型的索引,因此它的子字符串搜索速度很慢。但是 lucene 有前缀树索引,这意味着如果您通过前缀搜索术语,您可以进行快速搜索。
Best index structure for this case is suffix tree
Lucene does not implements this type of index so its substring search is slow. But lucene has prefix tree index which mean you can do fast search if you search terms by their prefix.
自 2011 年 4 月 22 日版本 2.0.1-beta 起,Sphinx 确实支持有效的子字符串搜索。不幸的是,截至今天,此支持仅考虑beta 版本,如此处所述。
我尝试了2.1.1 beta版本。它似乎工作正常。请参阅手动输入了解字典类型,了解
关键字< /代码> 类型。
当我尝试使用 2.0.6 发行版时,它回退到低效的 crc 索引,在索引期间给出以下警告:
我的最小配置文件:
Sphinx does support effective substring searches since Version 2.0.1-beta, 22 apr 2011. Unfortunately as of today this support regards only beta versions, as mentioned here.
I made a try with 2.1.1 beta version. It seems to work correctly. See the manual entry for dictionary type, read about
keywords
type.When I tried to use 2.0.6 release version, it fell back to inefficient crc index, giving the following warning during indexing:
My minimal configuration file:
sqlite 有一个名为 fts5 的全文扩展。看起来稳定又自由。
sqlite has a full-text extension called fts5. It looks stable and free.