Class

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

abstract class Extractor

Abstract implementation of Search Extractor, which extracts search result from the data returned by Elasticsearch index.

Methods

__construct(FacetBuilderVisitor $facetBuilderVisitor)

SearchResult extract(mixed $data)

Extracts search result from $data returned by Elasticsearch.

ValueObject extractHit(mixed $hit)

Extracts value object from $hit returned by Elasticsearch.

Details

at line 27
public __construct(FacetBuilderVisitor $facetBuilderVisitor)

Parameters

FacetBuilderVisitor $facetBuilderVisitor

at line 39
public SearchResult extract(mixed $data)

Extracts search result from $data returned by Elasticsearch.

Parameters

mixed $data

Return Value

SearchResult

at line 80
abstract public ValueObject extractHit(mixed $hit)

Extracts value object from $hit returned by Elasticsearch.

Needs to be implemented by concrete Extractor.

Parameters

mixed $hit

Return Value

ValueObject