function doSearch($term = '') { //force a single term: if ($term != '') { $this->filters = array(array('t' => 'match', 'v' => $term)); } $mvIndex = new MV_Index(); $this->results = $mvIndex->doFiltersQuery($this->filters); $this->num = $mvIndex->numResults(); $this->numResultsFound = $mvIndex->numResultsFound(); if (isset($mvIndex->offset)) { $this->offset = $mvIndex->offset; } if (isset($mvIndex->limit)) { $this->limit = $mvIndex->limit; } }