note 98081 deleted from sphinxclient.open by visualmind

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: xxxbunker dot com 

----

boy oh boy, sphinx via php documentation is flaky at best.

it appears (although i am still not 100% sure yet), that $sphinx->open(); needs to be called BEFORE $sphinx->setServer(... if one wishes to initiate a persistent connection.

a little early to tell, but when using ->open() AFTER->setServer, i was receiving a lot of:

sphinx_query() must not be called after sphinx_add_query()

which appears to be sphinx complaining about running queries on a connection after a query has been ran (thus, non persistent connection...)...

hope this helps!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.