Note that there are some explanatory texts on larger screens.

plurals
  1. POSphinxApi and Query Seeming to Hang
    text
    copied!<p>When accessing Sphinx programmatically from PHP using SphinxAPI, the query command causes my web browser to think for about 30 seconds and then to fail without any log message I can find (or maybe a timeout?). So here is my code:</p> <pre><code>$cl = new SphinxClient(); $cl-&gt;SetServer("localhost", 9312); $res = $cl-&gt;query($query, "isp"); </code></pre> <p>At this point execution stops as if some error has occurred, but not logged in <code>log</code> or <code>query_log</code> locations of my sphinx.conf file.</p> <p>For my sphinx.conf file, an abbreviated portion is:</p> <pre><code>searchd { listen = 9312 listen = 9306:mysql41 log = {$MY_BASE}\ISP_Sphinx\log\searchd.log query_log = {$MY_BASE}\ISP_Sphinx\log\query.log read_timeout = 5 client_timeout = 300 max_children = 30 pid_file = {$MY_BASE}\ISP_Sphinx\log\searchd.pid {$ETC, ETC, ETC} } </code></pre> <p>From the DOS prompt, the search tool works as expected.</p> <p>I have searchd running as a Windows Service as documented at the <a href="http://sphinxsearch.com/docs/1.10/installing-windows.html" rel="nofollow">SphinxSearch site</a>. I could post more of the sphinx.conf is anyone cares. This situation does not seem to match up with any others I have seen on Google. Sometimes it is a port issue as can be seen in other questions, but I don't think that is so here.</p> <p>So what could be causing the query command to think and fail, or at least where else might errors be dumped? I have also checked the Apache2 logs and nothing there in regards to this problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload