Closed (fixed)
Project:
Sphinx Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2009 at 20:06 UTC
Updated:
5 Oct 2012 at 11:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
markus_petrux commentedmain+delta index scheme is supported, but this is a complex issue if you're new to Sphinx. Best I can tell is please, read the README shipped with this module. It is all explained there.
Comment #2
Kane commentedThanks, i've done all like in readme, but got stuck while reindexing, here's a problem:
ERROR: index 'index_drupal_example_delta': xmlpipe: expected '', got 'XMLPipe for delta index failed: Could not obtain list of main i'.
No idea what's that.
Thanks.
Comment #3
markus_petrux commentedCould you please post your sphinx.conf (attached as a plain text file) and the output of the "Check connection" option of the Sphinx search module (next to Sphinx search settings)?
Comment #4
markus_petrux commentedComment #5
markus_petrux commentedhmm... I guess you see this error in the Drupal log, and that usually means your Sphinx search daemon is not started, or your Drupal installation has not been able to connect (settings? firewall?).
Comment #6
Kane commentedI believe i resolved my problem, changed some settings here and there. Thanks to README file and contributed manuals everything works fine, even delta index works (almost live update, heh).
Thanks again.
Comment #7
markus_petrux commentedOk, so issue fixed.
Live updates in Sphinx works only for certain attributes, and it is used here to flag deleted documents. It cannot be used to re-index documents yet.
Comment #9
quotesbro commented@Kane: Can you say what you changed? I have the same problem (ERROR: index 'index_delta': xmlpipe: expected '', got 'XMLPipe for delta index failed: Could not obtain list of main i'.) and I don't know what to do with it.
P.S. I use Sphinx 0.9.9-rc2 (r1785)
upd: i resolved this problem (reduced the number of nodes in the index)
Comment #10
quotesbro commentedComment #11
Kane commentedI've updated drupal (6.16?) today in the morning (night) and after that sphinx stopped working.
Settings and config file were intact, so i've logged via ssh and tried to run indexer
first, there were problem with main index - nothing indexed, i thought it must be php memory limit, so i've increased it and main index was done.
Then i checked delta index and here's where fun began.
Good old "xmlpipe: expected '', got 'XMLPipe for delta index failed: Could not obtain list of main i'." returned.
Tried everything but in the end decided to use clean config file. That took about 5 minutes to delete all old indexes, stop daemon and other stuff.
After configuration i started sphinx daemon. Some problems occurred but it was about port.
Anyway, during that part there were some alerts about missing delta.sph (or something similar) file.
So, i've created clean delta.sph and put it in index folder.
Then i started daemon again. Worked.
Then i started index. Worked.
Basically, i haven't changed anything at all.
Could it be that "xmlpipe: expected '', got 'XMLPipe for delta index failed: Could not obtain list of main i'." error occurs when it can't find that delta.sph file?
Comment #12
dark_kz commentedHello!
Debian Squezze 6
sphinxsearch-2.0.5
sphinxsearch-2.0-dev version
I have a site with ~30 000 nodes.
When I start indexer
/usr/local/sphinx/bin/indexer --config /home/dark/domains/example.com/html/sphinx/config/sphinx.conf --all
Any ideas about "xmlpipe: expected '< document >', got 'XMLPipe for delta index failed" error?
Comment #13
dark_kz commentedI divide indexes, and then it works. But index delta still has an error
ERROR: index 'index_m0_delta': xmlpipe: expected '<document>', got 'XMLPipe for delta index failed: Could not obtain list of main i'.Connection status:
Testing Sphinx searchd daemon connection.
OK - Your Sphinx searchd daemon is up and running.
Testing search query using index index_example_join.
Query asks for a list of all indexed documents to retrieve the last indexed node.
MySQL equivalent would look something like:
SELECT nid FROM {node} ORDER BY nid DESC LIMIT 1;
OK - Test passed successfully. Sphinx results summary follow:
Query execution time: 0.033 seconds
Total results found: 25932
Total results available: 1000
Last indexed node: 39838 (2012-10-05 11:24:53)
Testing excerpts builder using index sm1.
ERROR - Unable to build excerpts.
Sphinx message: searchd error: unknown local index 'sm0' in search request