我一直在面對sphinx字符串屬性結果集的問題。下面是我這是字符串屬性(標題等)即使數據可用於字符串值,Sphinx也會使用php返回零值
[matches] => Array
(
[0] => Array
(
[id] => 83597
[weight] => 1
[attrs] => Array
(
[title] => 0
[others] => 0
[zoneid] => 19
[phoneverified] => 0
[vcardenabled] => 0
)
)
)
[total] => 1
[total_found] => 1
[time] => 0.000
在上面的獅身人面像結果返回零獅身人面像的結果集,「其他」和「標題」字段是字符串,但它與0甚至返回如果價值可用於獅身人面像
以下是我的預期結果。
[matches] => Array
(
[0] => Array
(
[id] => 83597
[weight] => 1
[attrs] => Array
(
[title] =>
[others] => yadheen
[zoneid] => 19
[phoneverified] => 0
[vcardenabled] => 0
)
)
)
[total] => 1
[total_found] => 1
[time] => 0.000
請對此建議!
FYR:我使用的獅身人面像2.0.4
你爲什麼給這個'思想 - 獅身人面像'加了標籤?從你的print_r和php5 - 看起來你使用PHP來執行操作? – barryhunter 2012-03-30 10:34:32