cvs: php4 /ext/mnogosearch index.php
| From: | Sergey Kartashoff | Date: | Mon, 10 Dec 2001 07:21:49 +0000 |
| Subject: | cvs: php4 /ext/mnogosearch index.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8549@lists.php.net to get a copy of this message | ||
gluke Mon Dec 10 02:21:49 2001 EDT
Modified files:
/php4/ext/mnogosearch index.php
Log:
- mnogosearch example updated to include searchd support
Index: php4/ext/mnogosearch/index.php
diff -u php4/ext/mnogosearch/index.php:1.10 php4/ext/mnogosearch/index.php:1.11
--- php4/ext/mnogosearch/index.php:1.10 Sun Dec 2 05:24:38 2001
+++ php4/ext/mnogosearch/index.php Mon Dec 10 02:21:49 2001
@@ -2,7 +2,7 @@
/*
$Source: /usr/repository/php4/ext/mnogosearch/index.php,v $
- $Id: index.php,v 1.10 2001/12/02 10:24:38 gluke Exp $
+ $Id: index.php,v 1.11 2001/12/10 07:21:49 gluke Exp $
*/
/* mnoGoSearch-php-lite v.1.2
@@ -44,6 +44,7 @@
$stopwordtable_arr[]='stopword';
// $stopwordfile_arr[]='stopwords.txt';
$synonym_arr[]='/opt/udm/synonym/english.syn';
+$searchd_arr[]='localhost';
$minwordlength=1;
$maxwordlength=32;
@@ -601,6 +602,15 @@
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_SYNONYM,$synonym_arr[$i]);
}
}
+
+ for ($i=0; $i < count($searchd_arr); $i++) {
+ if ($searchd_arr[$i] != '') {
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_SEARCHD,$searchd_arr[$i]);
+ }
+ }
+
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_QSTRING,$QUERY_STRING);
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_REMOTE_ADDR,$REMOTE_ADDR);
}
if ($m=='any') {