Wednesday 20 July 2005 9:06:33 am
Unfortunately the documentation on ezsearch is quitepoor. i wrote a test script to check out the functionality of ezSearch:
include_once("kernel/classes/ezsearch.php");
$searchArray=&eZSearch::buildSearchArray();
$searchText="Feuerstein";
$searchContentClassID=24;
$searchContentClassAttributeID=205;
$searchResult=& eZSearch::search($searchText,
array('SearchContentClassID'=>$searchContentClassID,
'SearchContentClassAttributeID'=>$searchContentClassAttributeID),
$searchArray);
var_dump($searchResult);
this simple example returns:
C:\Programme\Apache Group\Apache\htdocs\ez\test>php -q search.php
PHP Warning: in_array(): Wrong datatype for second argument in c:\Programme\Apache Group\Apache\htdocs\ez\lib\ezi18n\classes\ezchartransform.php on line 249
PHP Notice: Undefined index: wildCardCount in c:\Programme\Apache Group\Apache
\htdocs\ez\kernel\search\plugins\ezsearchengine\ezsearchengine.php on line 640
PHP Warning: array_keys(): The first argument should be an array in c:\Programme\Apache Group\Apache\htdocs\ez\kernel\search\plugins\ezsearchengine\ezsearchengine.php on line 1956
PHP Warning: Invalid argument supplied for foreach() in c:\Programme\Apache Gro
up\Apache\htdocs\ez\kernel\search\plugins\ezsearchengine\ezsearchengine.php on line 1956
PHP Warning: Invalid argument supplied for foreach() in c:\Programme\Apache Gro
up\Apache\htdocs\ez\kernel\classes\datatypes\ezuser\ezuser.php on line 1515 PHP Warning: Invalid argument supplied for foreach() in c:\Programme\Apache Group\Apache\htdocs\ez\kernel\classes\ezrole.php on line 512
array(3) {
["SearchResult"]=>
array(0) {
}
["SearchCount"]=>
NULL
["StopWordArray"]=>
array(0) {
} } meaning no result. the object itself exists. Where can i get more info on ezSearch? Anyone else had problems with ezSearch? Using ezp 3.6 greg
|