interface SolrBackendInterface in Search API Solr 8
Same name and namespace in other branches
- 8.3 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface
- 8.2 src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface
- 4.x src/SolrBackendInterface.php \Drupal\search_api_solr\SolrBackendInterface
Defines an interface for Solr search backend plugins.
It extends the generic \Drupal\search_api\Backend\BackendInterface and covers additional Solr specific methods.
Hierarchy
- interface \Drupal\search_api\Plugin\ConfigurablePluginInterface; interface \Drupal\search_api\Backend\BackendSpecificInterface
- interface \Drupal\search_api\Backend\BackendInterface
- interface \Drupal\search_api_solr\SolrBackendInterface
- interface \Drupal\search_api\Backend\BackendInterface
Expanded class hierarchy of SolrBackendInterface
All classes that implement SolrBackendInterface
4 files declare their use of SolrBackendInterface
- SearchApiSolrBackend.php in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php - SearchApiSolrTest.php in tests/
src/ Kernel/ SearchApiSolrTest.php - search_api_solr.install in ./
search_api_solr.install - search_api_solr.module in ./
search_api_solr.module - Provides a Solr-based service class for the Search API.
File
- src/
SolrBackendInterface.php, line 16
Namespace
Drupal\search_api_solrView source
interface SolrBackendInterface extends BackendInterface {
/**
* Creates a list of all indexed field names mapped to their Solr field names.
*
* The special fields "search_api_id" and "search_api_relevance" are also
* included. Any Solr fields that exist on search results are mapped back to
* to their local field names in the final result set.
*
* @param \Drupal\search_api\IndexInterface $index
* The Search Api index.
* @param bool $reset
* (optional) Whether to reset the static cache.
*
* @see SearchApiSolrBackend::search()
*/
public function getSolrFieldNames(IndexInterface $index, $reset = FALSE);
/**
* Returns the Solr connector used for this backend.
*
* @return \Drupal\search_api_solr\SolrConnectorInterface
*
* @throws \Drupal\search_api\SearchApiException
*/
public function getSolrConnector();
/**
* Retrieves a Solr document from an search api index item.
*
* @param \Drupal\search_api\IndexInterface $index
* The search api index.
* @param \Drupal\search_api\Item\ItemInterface $item
* An item to get documents for.
*
* @return \Solarium\QueryType\Update\Query\Document
* A solr document.
*/
public function getDocument(IndexInterface $index, ItemInterface $item);
/**
* Retrieves Solr documents from search api index items.
*
* @param \Drupal\search_api\IndexInterface $index
* The search api index.
* @param \Drupal\search_api\Item\ItemInterface[] $items
* An array of items to get documents for.
* @param \Solarium\QueryType\Update\Query\Query $update_query
* The existing update query the documents should be added to.
*
* @return \Solarium\QueryType\Update\Query\Document[]
* An array of solr documents.
*/
public function getDocuments(IndexInterface $index, array $items, UpdateQuery $update_query = NULL);
/**
* Extract a file's content using tika within a solr server.
*
* @param string $filepath
* The real path of the file to be extracted.
*
* @return string
* The text extracted from the file.
*/
public function extractContentFromFile($filepath);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BackendInterface:: |
public | function | Retrieves the server entity for this backend. | 1 |
BackendInterface:: |
public | function | Reacts to the server's creation. | 1 |
BackendInterface:: |
public | function | Notifies the backend that its configuration was updated. | 1 |
BackendInterface:: |
public | function | Notifies the backend that the server is about to be deleted. | 1 |
BackendInterface:: |
public | function | Notifies the backend that its configuration is about to be updated. | 1 |
BackendInterface:: |
public | function | Sets the server entity for this backend. | 1 |
BackendSpecificInterface:: |
public | function | Adds a new index to this server. | 2 |
BackendSpecificInterface:: |
public | function | Deletes all the items from the index. | 4 |
BackendSpecificInterface:: |
public | function | Deletes the specified items from the index. | 4 |
BackendSpecificInterface:: |
public | function | Provides information on additional fields made available by the backend. | 2 |
BackendSpecificInterface:: |
public | function | Limits the processors displayed in the UI for indexes on this server. | 2 |
BackendSpecificInterface:: |
public | function | Returns all features that this backend supports. | 2 |
BackendSpecificInterface:: |
public | function | Indexes the specified items. | 4 |
BackendSpecificInterface:: |
public | function | Returns a boolean with the availability of the backend. | 2 |
BackendSpecificInterface:: |
public | function | Removes an index from this server. | 2 |
BackendSpecificInterface:: |
public | function | Executes a search on this server. | 4 |
BackendSpecificInterface:: |
public | function | Determines whether the backend supports a given add-on data type. | 2 |
BackendSpecificInterface:: |
public | function | Notifies the server that an index attached to it has been changed. | 2 |
BackendSpecificInterface:: |
public | function | Returns additional, backend-specific information about this server. | 2 |
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
ConfigurablePluginInterface:: |
public | function | Returns the plugin's description. | 1 |
ConfigurablePluginInterface:: |
public | function | Returns the label for use on the administration pages. | 1 |
ConfigurablePluginInterface:: |
public | function | Informs the plugin that some of its dependencies are being removed. | 1 |
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
DerivativeInspectionInterface:: |
public | function | Gets the base_plugin_id of the plugin instance. | 1 |
DerivativeInspectionInterface:: |
public | function | Gets the derivative_id of the plugin instance. | 1 |
HideablePluginInterface:: |
public | function | Determines whether this plugin should be hidden in the UI. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
SolrBackendInterface:: |
public | function | Extract a file's content using tika within a solr server. | 1 |
SolrBackendInterface:: |
public | function | Retrieves a Solr document from an search api index item. | 1 |
SolrBackendInterface:: |
public | function | Retrieves Solr documents from search api index items. | 1 |
SolrBackendInterface:: |
public | function | Returns the Solr connector used for this backend. | 1 |
SolrBackendInterface:: |
public | function | Creates a list of all indexed field names mapped to their Solr field names. | 1 |