Add/delete/update cron functions added.

IndexDBControl class added to abstract some index functionality out.
This commit is contained in:
mchampan
2006-08-16 13:34:07 +00:00
parent ecebdf0e6e
commit 6f1b1da1ec
9 changed files with 359 additions and 45 deletions
+3 -1
View File
@@ -166,8 +166,10 @@
$resultdocs = array();
$i = 0;
$hits = $this->index->find(strtolower($this->term));
$term = strtolower($this->term);
$hits = $this->index->find($term." title:".$term." author:".$term);
foreach ($hits as $hit) {
//check permissions on each result
if ($this->can_display($USER, $hit->id, $hit->doctype, $hit->course_id, $hit->group_id)) {