handler_argument_fulltext.inc in Search API Multi-Index Searches 7
File
views/handler_argument_fulltext.inc
View source
<?php
class SearchApiMultiHandlerArgumentFulltext extends SearchApiViewsHandlerArgumentFulltext {
public function getFulltextFields() {
$fields = array();
$indexes = search_api_index_load_multiple(FALSE, array(
'enabled' => TRUE,
));
foreach ($indexes as $index) {
if ($index
->getFields()) {
$prefix = $index->machine_name . ':';
$prefix_name = $index->name . ' » ';
$f = $index
->getFields();
foreach ($index
->getFulltextFields() as $name) {
$fields[$prefix . $name] = $prefix_name . $f[$name]['name'];
}
}
}
return $fields;
}
}