Сгенерировал xml-файл. В нем пусто.
Перенес /var/www/html/wiki с машины, на которой заработало (PC1).
Теперь и на второй тачке (PC2) тоже индексация работает.
К сожалению проделал это до того как прочел:
Если ничего не выйдет попробуй в xmlall.php установить error_reporting(E_ALL);
Хотя конечно видел эту строку в исходниках, но почему-то не поигрался с ней.
Сейчас отчет об ошибках включен, но в выводе indexer ошибок не обнаружено.
[root@centos54 sphinxsearch]# indexer -c sphinx.conf dk_main --rotate
Sphinx 1.10-id64-beta (r2420)
Copyright (c) 2001-2010, Andrew Aksyonoff
Copyright (c) 2008-2010, Sphinx Technologies Inc (
http://sphinxsearch.com)
using config file 'sphinx.conf'...
indexing index 'dk_main'...
WARNING: min_infix_len = 0. infix_fields are ignored
collected 43 docs, 0.1 MB
sorted 0.0 Mhits, 100.0% done
total 43 docs, 60236 bytes
total 0.822 sec, 73235 bytes/sec, 52.27 docs/sec
total 3 reads, 0.000 sec, 97.1 kb/call avg, 0.0 msec/call avg
total 9 writes, 0.001 sec, 67.9 kb/call avg, 0.1 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=26948).
[root@centos54 sphinxsearch]#
Не понятно только откуда взялось 43 документа. Потому что всего файлов в data/pages - 18:
[root@centos54 sphinxsearch]# find /var/www/html/wiki/data/pages/* -type f | wc -l
18
Подумал, что может доки из предыдущего индекса, или типо того. Очистил data/sphinxsearch. Результат тот же - 43 документа.
Сейчас индексация работает. Поиск тоже.
Конечно было бы не плохо найти причину ошибки, но я закономерности еще не увидел.
[root@centos54 pages]# pwd
/var/www/html/wiki/data/pages
[root@centos54 pages]# file *
ehxo.txt: UTF-8 Unicode text
hello.txt: ASCII text, with no line terminators
page10.txt: UTF-8 Unicode text, with very long lines
page11.txt: UTF-8 Unicode text, with very long lines
page12.txt: UTF-8 Unicode text, with very long lines
page1.txt: UTF-8 Unicode text, with very long lines
page2.txt: UTF-8 Unicode text, with very long lines
page3.txt: UTF-8 Unicode text, with very long lines
page4.txt: UTF-8 Unicode text, with very long lines
page5.txt: UTF-8 Unicode text, with very long lines
page6.txt: UTF-8 Unicode text, with very long lines
page7.txt: UTF-8 Unicode text, with very long lines
page8.txt: UTF-8 Unicode text, with very long lines
page9.txt: UTF-8 Unicode text, with very long lines
playground: directory
start.txt: UTF-8 Unicode text, with no line terminators
wiki: directory
[root@centos54 pages]#
Немного съехала разметка. Первая команда была pwd, вторая - 'file *'
Поиск работает среди всех файлов.
Текст в файлах есть и русский и английский.