Property | Type | Description | |
---|---|---|---|
$contentTypeHandler | eZ\Publish\SPI\Persistence\Content\Type\Handler | Content type handler. | |
$fieldRegistry | Field registry. | ||
$nameGenerator | Field name generator. |
Method | Description | |
---|---|---|
__construct ( |
Create from search field registry, content type handler and field name generator. | |
getFieldNames ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : string[] | For the given parameters returns a set of search backend field names to search on. | |
getFieldTypes ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : array |
For the given parameters returns a set of search backend field names/types to search on. | |
getIndexFieldName ( object $criterionOrSortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, string $fieldTypeIdentifier, string $name, boolean $isSortField ) : string | Returns index field name for the given parameters. | |
getSortFieldName ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, null | string $name = null ) : null | string | For the given parameters returns search backend field name to sort on or null if the field could not be found. |
Method | Description | |
---|---|---|
getSearchableFieldMap ( ) : array[] | Get content type, field definition and field type mapping information. |
public __construct ( |
||
$fieldRegistry | ||
$contentTypeHandler | eZ\Publish\SPI\Persistence\Content\Type\Handler | |
$nameGenerator |
public getFieldNames ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : string[] | ||
$criterion | eZ\Publish\API\Repository\Values\Content\Query\Criterion | |
$fieldDefinitionIdentifier | string | |
$fieldTypeIdentifier | null | string | |
$name | null | string | |
return | string[] |
public getFieldTypes ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : array |
||
$criterion | eZ\Publish\API\Repository\Values\Content\Query\Criterion | |
$fieldDefinitionIdentifier | string | |
$fieldTypeIdentifier | null | string | |
$name | null | string | |
return | array |
public getIndexFieldName ( object $criterionOrSortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, string $fieldTypeIdentifier, string $name, boolean $isSortField ) : string | ||
$criterionOrSortClause | object | |
$contentTypeIdentifier | string | |
$fieldDefinitionIdentifier | string | |
$fieldTypeIdentifier | string | |
$name | string | |
$isSortField | boolean | |
return | string |
array(
"" => array(
"" => array(
"field_definition_id" => "",
"field_type_identifier" => "",
),
...
),
...
)
protected getSearchableFieldMap ( ) : array[] | ||
return | array[] |
public getSortFieldName ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, null | string $name = null ) : null | string | ||
$sortClause | eZ\Publish\API\Repository\Values\Content\Query\SortClause | |
$contentTypeIdentifier | string | |
$fieldDefinitionIdentifier | string | |
$name | null | string | |
return | null | string |
protected Handler,eZ\Publish\SPI\Persistence\Content\Type $contentTypeHandler | ||
return | eZ\Publish\SPI\Persistence\Content\Type\Handler |
protected FieldRegistry,eZ\Publish\Core\Search\Common $fieldRegistry | ||
return |