/** * Retrives interesting terms from a MoreLikeThis search * @param WikiaSearchConfig $searchConfig * @return array of interesting terms */ public function getInterestingTerms(WikiaSearchConfig $searchConfig) { wfProfileIn(__METHOD__); $searchConfig->setInterestingTerms('list')->setMltFields(array(self::field('title'), self::field('html'), 'title'))->setMltBoost(true); $result = $this->moreLikeThis($searchConfig); wfProfileOut(__METHOD__); return $result->getInterestingTerms(); }