/**
  * @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;
 }
 public function testIsExemptedProperty()
 {
     $instance = new SearchTable($this->store);
     $instance->setPropertyExemptionList(array('_TEXT'));
     $property = $this->dataItemFactory->newDIProperty('_TEXT');
     $this->assertTrue($instance->isExemptedProperty($property));
     $property = $this->dataItemFactory->newDIProperty('Foo');
     $property->setPropertyTypeId('_uri');
     $this->assertFalse($instance->isExemptedProperty($property));
 }