class ElasticsearchConnectorSearchApiPrefixSearch in Elasticsearch Connector 7.2
Same name and namespace in other branches
- 7.5 modules/elasticsearch_connector_search_api/includes/processor_prefix_search.inc \ElasticsearchConnectorSearchApiPrefixSearch
- 7 modules/elasticsearch_connector_search_api/includes/processor_prefix_search.inc \ElasticsearchConnectorSearchApiPrefixSearch
@file Contains the ElasticsearchConnectorSearchApiPrefixSearch class.
Hierarchy
- class \SearchApiAbstractProcessor implements SearchApiProcessorInterface
Expanded class hierarchy of ElasticsearchConnectorSearchApiPrefixSearch
1 string reference to 'ElasticsearchConnectorSearchApiPrefixSearch'
- elasticsearch_connector_search_api_search_api_processor_info in modules/
elasticsearch_connector_search_api/ elasticsearch_connector_search_api.module - Implements hook_search_api_processor_info().
File
- modules/
elasticsearch_connector_search_api/ includes/ processor_prefix_search.inc, line 7 - Contains the ElasticsearchConnectorSearchApiPrefixSearch class.
View source
class ElasticsearchConnectorSearchApiPrefixSearch extends SearchApiAbstractProcessor {
/**
* {@inheritdoc}
*/
public function __construct(SearchApiIndex $index, array $options = array()) {
parent::__construct($index, $options);
}
/**
* {@inheritdoc}
*/
public function supportsIndex(SearchApiIndex $index) {
$server = $index
->server();
if (!empty($server) && $server->class == 'search_api_elasticsearch_connector') {
return TRUE;
}
else {
return FALSE;
}
}
/**
* {@inheritdoc}
*/
public function preprocessSearchQuery(SearchApiQuery $query) {
$query
->setOption(SearchApiElasticsearchConnector::PREFIX_SEARCH_FIELDS, $this->options['fields']);
$query
->setOption(SearchApiElasticsearchConnector::PREFIX_SEARCH, TRUE);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ElasticsearchConnectorSearchApiPrefixSearch:: |
public | function |
Calls processKeys() for the keys and processFilters() for the filters. Overrides SearchApiAbstractProcessor:: |
|
ElasticsearchConnectorSearchApiPrefixSearch:: |
public | function |
Check whether this processor is applicable for a certain index. Overrides SearchApiAbstractProcessor:: |
|
ElasticsearchConnectorSearchApiPrefixSearch:: |
public | function |
Constructor, saving its arguments into properties. Overrides SearchApiAbstractProcessor:: |
|
SearchApiAbstractProcessor:: |
protected | property | ||
SearchApiAbstractProcessor:: |
protected | property | ||
SearchApiAbstractProcessor:: |
public | function |
Display a form for configuring this processor.
Since forcing users to specify options for disabled processors makes no
sense, none of the form elements should have the '#required' attribute set. Overrides SearchApiProcessorInterface:: |
5 |
SearchApiAbstractProcessor:: |
public | function |
Submit callback for the form returned by configurationForm(). Overrides SearchApiProcessorInterface:: |
|
SearchApiAbstractProcessor:: |
public | function |
Validation callback for the form returned by configurationForm(). Overrides SearchApiProcessorInterface:: |
4 |
SearchApiAbstractProcessor:: |
protected | function | Internal helper function for imploding tokens into a single string. | |
SearchApiAbstractProcessor:: |
protected | function | Internal helper function for normalizing tokens. | |
SearchApiAbstractProcessor:: |
public | function |
Does nothing. Overrides SearchApiProcessorInterface:: |
2 |
SearchApiAbstractProcessor:: |
public | function |
Calls processField() for all appropriate fields. Overrides SearchApiProcessorInterface:: |
|
SearchApiAbstractProcessor:: |
protected | function | Function that is ultimately called for all text by the standard implementation, and does nothing by default. | 5 |
SearchApiAbstractProcessor:: |
protected | function | Method for preprocessing field data. | |
SearchApiAbstractProcessor:: |
protected | function | Called for processing a single text element in a field. The default implementation just calls process(). | 2 |
SearchApiAbstractProcessor:: |
protected | function | Method for preprocessing query filters. | |
SearchApiAbstractProcessor:: |
protected | function | Called for processing a single filter value. The default implementation just calls process(). | |
SearchApiAbstractProcessor:: |
protected | function | Called for processing a single search keyword. The default implementation just calls process(). | |
SearchApiAbstractProcessor:: |
protected | function | Method for preprocessing search keys. | |
SearchApiAbstractProcessor:: |
protected | function | Determines whether to process data from the given field. | |
SearchApiAbstractProcessor:: |
protected | function | Determines whether fields of the given type should normally be processed. |