PHP Class eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitor\FullText

Inheritance: extends FieldFilterBase
Exibir arquivo Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$fieldNameResolver eZ\Publish\Core\Search\Common\FieldNameResolver Field map.

Public Methods

Method Description
__construct ( FieldNameResolver $fieldNameResolver ) Create from field map.
canVisit ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean Check if visitor is applicable to current criterion.
visitFilter ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed Map field value to a proper Elasticsearch filter representation.
visitQuery ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed Map field value to a proper Elasticsearch query representation.

Protected Methods

Method Description
getCondition ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : array Returns nested condition common for filter and query contexts.
getFieldNames ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier ) : array Get field type information.

Method Details

__construct() public method

Create from field map.
public __construct ( FieldNameResolver $fieldNameResolver )
$fieldNameResolver eZ\Publish\Core\Search\Common\FieldNameResolver

canVisit() public method

Check if visitor is applicable to current criterion.
public canVisit ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
return boolean

getCondition() protected method

Returns nested condition common for filter and query contexts.
protected getCondition ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : array
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
return array

getFieldNames() protected method

Get field type information.
protected getFieldNames ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier ) : array
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$fieldDefinitionIdentifier string
return array

visitFilter() public method

Map field value to a proper Elasticsearch filter representation.
public visitFilter ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$dispatcher eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher
$languageFilter array
return mixed

visitQuery() public method

Map field value to a proper Elasticsearch query representation.
public visitQuery ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter ) : mixed
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$dispatcher eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitorDispatcher
$languageFilter array
return mixed

Property Details

$fieldNameResolver protected_oe property

Field map.
protected FieldNameResolver,eZ\Publish\Core\Search\Common $fieldNameResolver
return eZ\Publish\Core\Search\Common\FieldNameResolver