note 93136 added to sphinxclient.setlimits

From: Date: Tue, 25 Aug 2009 10:06:12 +0000
Subject: note 93136 added to sphinxclient.setlimits
Groups: php.notes 
Request: Send a blank email to php-notes+get-159863@lists.php.net to get a copy of this message
I almost pulled out all my hair trying to figure this one out. After applying limits using $s->setLimit(10,10); the search kept returning only false. getLastError() and getLastWarning() contained empty strings. The solution, like Nayana stated, is to add a positive non-zero integer $max to setLimit. ---- Server IP: 59.162.86.8 Probable Submitter: 122.166.1.164 ---- Manual Page -- http://www.php.net/manual/en/sphinxclient.setlimits.php Edit -- https://master.php.net/note/edit/93136 Del: integrated -- https://master.php.net/note/delete/93136/integrated Del: useless -- https://master.php.net/note/delete/93136/useless Del: bad code -- https://master.php.net/note/delete/93136/bad+code Del: spam -- https://master.php.net/note/delete/93136/spam Del: non-english -- https://master.php.net/note/delete/93136/non-english Del: in docs -- https://master.php.net/note/delete/93136/in+docs Del: other reasons-- https://master.php.net/note/delete/93136 Reject -- https://master.php.net/note/reject/93136 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159863) next »