分散インデックスで検索すると、空の属性があります
[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 を使用しています