fixed search indexer errors

This commit is contained in:
JT Smith 2004-09-13 19:44:38 +00:00
parent c485014062
commit 6402c8f3af
10 changed files with 23 additions and 21 deletions

View file

@ -669,7 +669,7 @@ sub search {
$sql .= " AND $filterElement in (".quoteAndJoin($filter->{$filterElement}).")";
}
# No trash or other garbage
$sql .= " AND (pageId > 999 or pageId < 0 or pageId = 1) ";
$sql .= " AND isSystem<>1 ";
# Keep @fts_docIds list order
$sql .= " ORDER BY FIELD(docID,$docIds)" unless $noFtsSearch;
my $filteredDocIds = WebGUI::SQL->buildArrayRef($sql);