// search finished, update title and status message
else{
Search.stopPulse();
Search.title.text(_('Search Results'));
if(!resultCount)
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
else
Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s',resultCount));
Search.status.fadeIn(500);
}
}
displayNextItem();
},
/**
* search for object names
*/
performObjectSearch:function(object,otherterms){
varfilenames=this._index.filenames;
vardocnames=this._index.docnames;
varobjects=this._index.objects;
varobjnames=this._index.objnames;
vartitles=this._index.titles;
vari;
varresults=[];
for(varprefixinobjects){
for(varnameinobjects[prefix]){
varfullname=(prefix?prefix+'.':'')+name;
if(fullname.toLowerCase().indexOf(object)>-1){
varscore=0;
varparts=fullname.split('.');
// check for different match types: exact matches of full name or