PHP Class eZ\Publish\Core\Search\Elasticsearch\Content\Extractor

Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$facetBuilderVisitor FacetBuilderVisitor Facet builder visitor.

Public Methods

Method Description
__construct ( FacetBuilderVisitor $facetBuilderVisitor )
extract ( mixed $data ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult Extracts search result from $data returned by Elasticsearch.
extractHit ( mixed $hit ) : eZ\Publish\API\Repository\Values\ValueObject Extracts value object from $hit returned by Elasticsearch.

Method Details

__construct() public method

public __construct ( FacetBuilderVisitor $facetBuilderVisitor )
$facetBuilderVisitor FacetBuilderVisitor

extract() public method

Extracts search result from $data returned by Elasticsearch.
public extract ( mixed $data ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult
$data mixed
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult

extractHit() abstract public method

Needs to be implemented by concrete Extractor.
abstract public extractHit ( mixed $hit ) : eZ\Publish\API\Repository\Values\ValueObject
$hit mixed
return eZ\Publish\API\Repository\Values\ValueObject

Property Details

$facetBuilderVisitor protected_oe property

Facet builder visitor.
protected FacetBuilderVisitor,eZ\Publish\Core\Search\Elasticsearch\Content $facetBuilderVisitor
return FacetBuilderVisitor