Monday 03 September 2007 1:00:58 am
I'm certain this could be done!
Perhaps it would require a custom 'search plugin', take a look at the doxygen documentation and existing search plugins available.
<i>http://pubsvn.ez.no/doxygen/trunk/html/classeZSearch.html</i>
<i>http://pubsvn.ez.no/nextgen/trunk/kernel/search/plugins/ezsearchengine/ezsearchengine.php</i> This is a stub on the topic of search, <i>http://ezpedia.org/wiki/en/ez/search</i> It sure looks like you can pass an array of datetime stamps to the default search plugin search method to perform the type of search you looking to use. if ( $searchTimestamp )
{
if ( is_array( $searchTimestamp ) )
{
$publishedDate = $searchTimestamp[0];
$publishedDateStop = $searchTimestamp[1];
}
else
$publishedDate = $searchTimestamp;
}
From: <i>http://pubsvn.ez.no/nextgen/trunk/kernel/search/plugins/ezsearchengine/ezsearchengine.php</i> Here is a custom example of using the search method (but it does not use timestamps) function search_ezcontenttree( $searchStr )
{
include_once( "kernel/classes/ezsearch.php" );
// TODO: Replace these with ini settings, bcsoapsearch.ini.append.php
// $maximumSearchLimit = $ini->variable( 'SearchSettings', 'MaximumSearchLimit' );
$searchText = $searchStr;
$searchSectionID = -1;
$searchType = "fulltext";
$searchTimestamp = false;
// $subTreeArray = array();
$subTreeArray[] = 1;
$pageLimit = 5;
$Offset = 0;
$searchResult = eZSearch::search( $searchText, array( "SearchType" => $searchType,
"SearchSectionID" => $searchSectionID,
"SearchSubTreeArray" => $subTreeArray,
'SearchTimestamp' => $searchTimestamp,
"SearchLimit" => $pageLimit,
"SearchOffset" => $Offset ) );
// print_r( $searchResult );
// return $searchResult;
return $searchResult['SearchResult'];
}
From: <i>http://svn.projects.ez.no/bcsoapsearch/trunk/extension/bcsoapsearch/services/bcsoapsearch.php</i>
Cheers, Heath
Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org
|