public function process($indexes = array())
 {
     if (empty($indexes)) {
         $indexes = array_keys($this->search_indexes);
     }
     foreach ($indexes as $index) {
         $items = search_api_get_items_to_index($this->search_indexes[$index], 10);
         search_api_index_specific_items($this->search_indexes[$index], $items);
     }
 }
示例#2
0
 /**
  * @Then the Dataset search updates behind the scenes
  */
 public function theDatasetSearchUpdatesBehindTheScenes()
 {
     $index = search_api_index_load('datasets');
     $items = search_api_get_items_to_index($index);
     search_api_index_specific_items($index, $items);
 }