public static function SearchFactory::search in Elasticsearch Connector 8.2
Same name and namespace in other branches
- 8.7 src/ElasticSearch/Parameters/Factory/SearchFactory.php \Drupal\elasticsearch_connector\ElasticSearch\Parameters\Factory\SearchFactory::search()
- 8.5 src/ElasticSearch/Parameters/Factory/SearchFactory.php \Drupal\elasticsearch_connector\ElasticSearch\Parameters\Factory\SearchFactory::search()
- 8.6 src/ElasticSearch/Parameters/Factory/SearchFactory.php \Drupal\elasticsearch_connector\ElasticSearch\Parameters\Factory\SearchFactory::search()
Build search parameters from a query interface.
Parameters
\Drupal\search_api\Query\QueryInterface $query:
Return value
array
1 call to SearchFactory::search()
- SearchApiElasticsearchBackend::search in src/
Plugin/ search_api/ backend/ SearchApiElasticsearchBackend.php - Executes a search on this server.
File
- src/
ElasticSearch/ Parameters/ Factory/ SearchFactory.php, line 21
Class
- SearchFactory
- Class SearchFactory.
Namespace
Drupal\elasticsearch_connector\ElasticSearch\Parameters\FactoryCode
public static function search(QueryInterface $query) {
$builder = new SearchBuilder($query);
return $builder
->build();
}