Multiple search results
Permalinkie. Search for Administration
It displays the Administration page twice in the search results.
Anyone have an idea to help resolve my issue? Thank you in advance if you can.

Any other suggestions? Thanks again in advance.
Strange!
Try opening concrete/libraries/database_indexed_search.php and replacing this function:
public function filterByKeywords($kw) {
$db = Loader::db();
$kw = $db->quote($kw);
$this->addToQuery("select PageSearchIndex.*, match(cName, cDescription, content) against ({$kw} in boolean mode) as score from PageSearchIndex inner join Pages on PageSearchIndex.cID = Pages.cID inner join CollectionSearchIndexAttributes on PageSearchIndex.cID = CollectionSearchIndexAttributes.cID");
Loader::model('attribute/categories/collection');
$keys = CollectionAttributeKey::getSearchableIndexedList();
$attribsStr = '';
foreach ($keys as $ak) {
$attribsStr=' OR ak_' . $ak->getAttributeKeyHandle() . ' like '.$kw.' ';
}
$this->filter(false, "(match(cName, cDescription, content) against ({$kw} in boolean mode) {$attribsStr})");
}
With this:
public function filterByKeywords($keywords) {
$db = Loader::db();
$kw = $db->quote($keywords);
$this->addToQuery("select distinct PageSearchIndex.cID, PageSearchIndex.content, PageSearchIndex.cName, PageSearchIndex.cDescription, PageSearchIndex.cPath, PageSearchIndex.cDatePublic, match(cName, cDescription, content) against ({$kw} in boolean mode) as score from PageSearchIndex inner join Pages on PageSearchIndex.cID = Pages.cID inner join CollectionSearchIndexAttributes on PageSearchIndex.cID = CollectionSearchIndexAttributes.cID");
Loader::model('attribute/categories/collection');
$keys = CollectionAttributeKey::getSearchableIndexedList();
$attribsStr = '';
foreach ($keys as $ak) {
$cnt = $ak->getController();
$attribsStr.=' OR ' . $cnt->searchKeywords($keywords);
}
$this->filter(false, "(match(cName, cDescription, content) against ({$kw} in boolean mode) {$attribsStr})");
}
-- Note the distinct cID.