【问题标题】:Empty attributes with distributed indexes具有分布式索引的空属性
【发布时间】:2013-11-12 10:45:20
【问题描述】:

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

[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

【问题讨论】:

标签: search sphinx pecl


【解决方案1】:

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

【讨论】:

  • 有什么解决办法吗?我有同样的问题:-(
【解决方案2】:

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

【讨论】:

    猜你喜欢
    • 2014-06-25
    • 1970-01-01
    • 2016-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多