gluke Fri Jul 18 05:14:23 2003 EDT
Modified files:
/php-src/ext/mnogosearch php_mnogo.c
Log:
- UDM_PARAM_SORT_ORDER has been added in Udm_Set_Agent_Param while
using with mnogosearch-3.2.14+ to set order of search results.
Index: php-src/ext/mnogosearch/php_mnogo.c
diff -u php-src/ext/mnogosearch/php_mnogo.c:1.79
php-src/ext/mnogosearch/php_mnogo.c:1.80
--- php-src/ext/mnogosearch/php_mnogo.c:1.79 Fri Jul 18 04:37:17 2003
+++ php-src/ext/mnogosearch/php_mnogo.c Fri Jul 18 05:14:23 2003
@@ -1,5 +1,5 @@
/* $Source: /usr/repository/php-src/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.79 2003/07/18 08:37:17 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.80 2003/07/18 09:14:23 gluke Exp $ */
/*
+----------------------------------------------------------------------+
@@ -85,6 +85,7 @@
#define UDM_PARAM_GROUPBYSITE 27
#define UDM_PARAM_SITEID 28
#define UDM_PARAM_DETECT_CLONES 29
+#define UDM_PARAM_SORT_ORDER 30
/* udm_add_search_limit constants */
#define UDM_LIMIT_URL 1
@@ -322,6 +323,7 @@
REGISTER_LONG_CONSTANT("UDM_PARAM_QUERY", UDM_PARAM_QUERY,CONST_CS |
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_SITEID", UDM_PARAM_SITEID,CONST_CS |
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("UDM_PARAM_DETECT_CLONES",UDM_PARAM_DETECT_CLONES,CONST_CS |
CONST_PERSISTENT);
+ REGISTER_LONG_CONSTANT("UDM_PARAM_SORT_ORDER",UDM_PARAM_SORT_ORDER,CONST_CS |
CONST_PERSISTENT);
/* udm_add_search_limit constants */
REGISTER_LONG_CONSTANT("UDM_LIMIT_CAT", UDM_LIMIT_CAT,CONST_CS |
CONST_PERSISTENT);
@@ -1080,6 +1082,13 @@
break;
}
+ break;
+#endif
+
+#if UDM_VERSION_ID >= 30214
+ case UDM_PARAM_SORT_ORDER:
+ UdmVarListReplaceStr(&Agent->Conf->Vars,"s",val);
+
break;
#endif
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php