Sphinx搜索结果未显示值

时间:2013-04-01 13:09:21

标签: php centos sphinx

我已经在狮身人面像中配置了所有内容并且还旋转了索引。但是当我搜索sphinx服务器(终端命令)时,它只显示匹配计数如下,我不知道这个问题。

[root@phpsalzer server]# sudo search -i gplay 'Cut the Rope'
Sphinx 2.0.4-id64-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/etc/sphinx/sphinx.conf'...
index 'gplay': query 'Cut the Rope ': returned 2 matches of 2 total in 0.000 sec

displaying matches:
1. document=6, weight=10515
2. document=3, weight=9482

words:
1. 'cut': 5 documents, 15 hits
2. 'the': 72 documents, 2162 hits
3. 'rope': 4 documents, 12 hits

在上面的结果中,它没有显示文档值。请就此问题向我提出建议。

注意:我在CENTOS上使用sphinx的lates版本运行sphinx

1 个答案:

答案 0 :(得分:0)

与Colin提到的一样,sphinx不会存储索引的原始文本 - 称为字段。由于未存储无法返回。

但是如果你想要将它们存储在属性中,以避免必须返回数据库。

可以在结果集中返回属性

相关问题