/**
  * @since 2.5
  *
  * @param SQLStore $store
  *
  * @return SearchTable
  */
 public function newSearchTable(SQLStore $store)
 {
     $settings = ApplicationFactory::getInstance()->getSettings();
     $searchTable = new SearchTable($store);
     $searchTable->setEnabled($settings->get('smwgEnabledFulltextSearch'));
     $searchTable->setPropertyExemptionList($settings->get('smwgFulltextSearchPropertyExemptionList'));
     $searchTable->setMinTokenSize($settings->get('smwgFulltextSearchMinTokenSize'));
     return $searchTable;
 }
Ejemplo n.º 2
0
 public function testIsEnabled()
 {
     $instance = new SearchTable($this->store);
     $instance->setEnabled(true);
     $this->assertTrue($instance->isEnabled());
 }