[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] com =?UTF-8?Q?pecl/search=5Fengine/sphinx=3A=20set=20max=5Fmatches=3D=31?= =?UTF-8?Q?=30=
From:       Antony Dovgal <tony2001 () php ! net>
Date:       2015-11-25 12:49:44
Message-ID: php-mail-3efbbacc2b19b0f3e2c6a7d00083f7b1103462783 () git ! php ! net
[Download RAW message or body]

Commit:    7d9b13f64621bb0011743110b77e9f30c2f43b9b
Author:    Antony Dovgal <tony@daylessday.org>         Wed, 25 Nov 2015 15:49:44 \
                +0300
Parents:   2f40d68941ef245e0ee918e1a968be796128a666
Branches:  master

Link:       http://git.php.net/?p=pecl/search_engine/sphinx.git;a=commitdiff;h=7d9b13f64621bb0011743110b77e9f30c2f43b9b


Log:
set max_matches=1000 by default

Changed paths:
  M  sphinx.c


Diff:
diff --git a/sphinx.c b/sphinx.c
index 1788415..377c55d 100644
--- a/sphinx.c
+++ b/sphinx.c
@@ -411,7 +411,7 @@ static PHP_METHOD(SphinxClient, setServer)
 static PHP_METHOD(SphinxClient, setLimits)
 {
 	php_sphinx_client *c;
-	long offset, limit, max_matches = 0, cutoff = 0;
+	long offset, limit, max_matches = 1000, cutoff = 0;
 	int res;
 
 	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll|ll", &offset, &limit, \
&max_matches, &cutoff) == FAILURE) {


--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic