Свойство | Тип | Описание | |
---|---|---|---|
$contentDocumentTypeIdentifier | string | Identifier of Content document type in the search backend. | |
$extractor | Search result extractor. | ||
$gateway | |||
$locationDocumentTypeIdentifier | string | Identifier of Location document type in the search backend. | |
$locationGateway | |||
$mapper | eZ\Publish\Core\Search\Elasticsearch\Content\MapperInterface |
Метод | Описание | |
---|---|---|
__construct ( |
||
bulkIndexContent ( array $contentObjects ) | Indexes several content objects. | |
bulkIndexLocations ( array $locations ) | Indexes several Locations. | |
deleteContent ( integer $contentId, integer | null $versionId = null ) | Deletes a content object from the index. | |
deleteLocation ( mixed $locationId, mixed $contentId ) | Deletes a location from the index. | |
findContent ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [] ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Finds content objects for the given query. | |
findLocations ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, array $languageFilter = [] ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Finds Locations for the given $query. | |
findSingle ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter, array $languageFilter = [] ) : eZ\Publish\SPI\Persistence\Content | Performs a query for a single content object. | |
flush ( ) | ||
indexContent ( eZ\Publish\SPI\Persistence\Content $content ) | Indexes a content object. | |
indexLocation ( eZ\Publish\SPI\Persistence\Content\Location $location ) | Indexes a Location in the index storage. | |
purgeIndex ( ) | Purges all contents from the index. | |
setCommit ( boolean $commit ) | Set if index/delete actions should commit or if several actions is to be expected. | |
suggest ( string $prefix, string[] $fieldPaths = [], integer $limit = 10, eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter = null ) | Suggests a list of values for the given prefix. |
public __construct ( |
||
$gateway | ||
$locationGateway | ||
$mapper | eZ\Publish\Core\Search\Elasticsearch\Content\MapperInterface | |
$extractor |
public bulkIndexContent ( array $contentObjects ) | ||
$contentObjects | array |
public bulkIndexLocations ( array $locations ) | ||
$locations | array |
public deleteLocation ( mixed $locationId, mixed $contentId ) | ||
$locationId | mixed | |
$contentId | mixed | @todo Make use of this, or remove if not needed. |
public findContent ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [] ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | ||
$query | eZ\Publish\API\Repository\Values\Content\Query | |
$languageFilter | array | - a map of language related filters specifying languages query will be performed on.
Also used to define which field languages are loaded for the returned content.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations |
Результат | eZ\Publish\API\Repository\Values\Content\Search\SearchResult |
public findLocations ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, array $languageFilter = [] ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | ||
$query | eZ\Publish\API\Repository\Values\Content\LocationQuery | |
$languageFilter | array | - a map of language related filters specifying languages query will be performed on.
Also used to define which field languages are loaded for the returned content.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations |
Результат | eZ\Publish\API\Repository\Values\Content\Search\SearchResult |
public findSingle ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter, array $languageFilter = [] ) : eZ\Publish\SPI\Persistence\Content | ||
$filter | eZ\Publish\API\Repository\Values\Content\Query\Criterion | |
$languageFilter | array | - a map of language related filters specifying languages query will be performed on.
Also used to define which field languages are loaded for the returned content.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations |
Результат | eZ\Publish\SPI\Persistence\Content |
public indexContent ( eZ\Publish\SPI\Persistence\Content $content ) | ||
$content | eZ\Publish\SPI\Persistence\Content |
public indexLocation ( eZ\Publish\SPI\Persistence\Content\Location $location ) | ||
$location | eZ\Publish\SPI\Persistence\Content\Location |
protected string $contentDocumentTypeIdentifier | ||
Результат | string |
protected Extractor,eZ\Publish\Core\Search\Elasticsearch\Content $extractor | ||
Результат |
protected Gateway,eZ\Publish\Core\Search\Elasticsearch\Content $gateway | ||
Результат |
protected string $locationDocumentTypeIdentifier | ||
Результат | string |
protected Gateway,eZ\Publish\Core\Search\Elasticsearch\Content $locationGateway | ||
Результат |