php调用sphinx,总共找到2,但是匹配为空,为什么?

时间:2015-11-25 13:33:05

标签: php sphinx

php调用sphinx,总共找到2,但是匹配是空的,为什么?

php包:https://pecl.php.net/package/sphinx版本:1.3.3 sphinx版本:2.0.1

当我查询(' @author tairyao',' *')时,结果是:

Array
(
    [error] => 
    [warning] => 
    [status] => 0
    [fields] => Array
        (
            [0] => author
            [1] => title
            [2] => description
        )

    [attrs] => Array
        (
        )

    [matches] => Array
        (
            [102373] => Array
                (
                    [weight] => 7702
                    [attrs] => Array
                        (
                        )

                )

            [102428] => Array
                (
                    [weight] => 7702
                    [attrs] => Array
                        (
                        )

                )

        )

    [total] => 2
    [total_found] => 2
    [time] => 0
    [words] => Array
        (
            [tairyao] => Array
                (
                    [docs] => 4
                    [hits] => 4
                )

        )

)

total和total_found都是2,为什么attrs是空的?

0 个答案:

没有答案