0

当我在分布式索引中搜索时,我有空属性

[matches] => Array
    (
        [9] => Array
            (
                [weight] => 1
                [attrs] => Array
                    (
                    )

            )

        [28] => Array
            (
                [weight] => 1
                [attrs] => Array
                    (
                    )

            )

我的 sphinx.conf

#!/usr/local/bin/php

source base_src
{
    type = xmlpipe2
}

<?php for($i=1;$i<=6;$i++): ?>
source main_src_<?php echo $i; ?> : base_src
{
    xmlpipe_command     = /usr/local/bin/php /home/yanovskiy/project/indexer.php --main <?php echo ($i - 1); ?>
}
<?php endfor; ?>

index base_index
{
    docinfo         = extern
    mlock           = 1
    morphology      = none
    min_word_len        = 3
    charset_type        = utf-8
    enable_star     = 0
    html_strip      = 0
}

<?php for($i=1;$i<=6;$i++): ?>
index main_index_<?php echo $i; ?> : base_index
{
    source              = main_src_<?php echo $i; ?>
    path                = /var/db/sphinxsearch/data/main_<?php echo $i; ?>

}
<?php endfor; ?>

index dist
{
    type                = distributed
    <?php for($i=1;$i<=6;$i++): ?>
    local               = main_index_<?php echo $i; ?>
    <?php endfor; ?>
}

我在所有索引中都有相同的模式。我用indextool --dumpheader手动检查了它。

当我分别在 *main_index_1* 或 *main_index_2* 中搜索时,一切都很好,但如果我在dist索引中搜索 - 属性为空。有人可以帮我吗?

我在 FreeBSD 9.2 上使用 Sphinx 2.1.2-release

4

2 回答 2

0

PECL(版本 1.3.0)的 PHP 扩展中的这个问题

于 2013-11-14T12:41:38.177 回答
0

在我们升级到最新版本的 Sphinx 服务器(2.2.10)之前,我在这里遇到了同样的问题

于 2015-11-25T12:21:15.517 回答