Note that there are some explanatory texts on larger screens.

plurals
  1. POfailed to read searchd response
    primarykey
    data
    text
    <p>I Got this error in Sphinx.</p> <pre><code>{"status":"failed","status_message":"failed to read searchd response (status=2613, ver=11829, len=774975488, read=66)"} </code></pre> <p><strong>PHP file</strong> >> i am fallowing this <a href="http://www.ioncannon.net/programming/685/full-text-search-with-sphinx/" rel="nofollow">tutorial</a></p> <pre><code>&lt;?php require_once('sphinxapi.php'); $sphinxClient = new SphinxClient(); $sphinxClient-&gt;SetServer( 'localhost', 3306 ); $sphinxClient-&gt;SetConnectTimeout( 1 ); $sphinxClient-&gt;SetFieldWeights(array('title' =&gt; 70, 'body_text' =&gt; 30)); $sphinxClient-&gt;SetMatchMode( SPH_MATCH_EXTENDED2 ); $sphinxClient-&gt;SetLimits( 0, 20, 1000 ); $sphinxClient-&gt;SetRankingMode( SPH_RANK_PROXIMITY_BM25 ); $sphinxClient-&gt;SetArrayResult( true ); $searchQuery = "SELECT title FROM `documents` WHERE 1"; $searchResults = $sphinxClient-&gt;Query( $searchQuery, '*' ); $jhash = array(); if ( $searchResults === false ) { $jhash['status'] = 'failed'; $jhash['status_message'] = $sphinxClient-&gt;GetLastError(); } else { if ( $sphinxClient-&gt;GetLastWarning() ) { $jhash['status'] = 'warning'; $jhash['status_message'] = $sphinxClient-&gt;GetLastWarning(); } else { $jhash['status'] = 'good'; } $jhash['result_total'] = $searchResults['total']; $jhash['result_found'] = $searchResults['total_found']; $jhash_matches = array(); if ( is_array($searchResults["matches"]) ) { $row_ids = array(); foreach ( $searchResults["matches"] as $docinfo ) { array_push($row_ids, mysql_real_escape_string($docinfo['id'])); } } $jhash['matches'] = $jhash_matches; } echo json_encode($jhash); ?&gt; </code></pre> <p>Any idea about the cause of the problem ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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