Property | Type | Description | |
---|---|---|---|
$client | eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient | ||
$criterionVisitorDispatcher | Query criterion visitor dispatcher. | ||
$facetBuilderVisitor | Query facet builder visitor. | ||
$indexName | string | Name of the index in the search backend. | |
$serializer | Document serializer. | ||
$sortClauseVisitor | Query sort clause visitor. |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient $client, |
||
bulkIndex ( array $documents ) | Performs bulk index of a given array of documents. | |
delete ( integer | string $id, string $type ) | Deletes a single document of the given $type by given document $id. | |
deleteByQuery ( string $query, string $type ) | Deletes a document(s) of the given $type by given $query string. | |
find ( eZ\Publish\API\Repository\Values\Content\Query $query, string $type, array $languageFilter = [] ) : mixed | Finds and returns documents of a given $type for a given $query object. | |
findRaw ( string $query, string $type ) : |
Finds and returns documents of a given $type for a given $query string. | |
flush ( ) | Flushes data from memory to the index storage. | |
index ( |
Indexes a given $document. | |
purgeIndex ( string $type ) | Deletes all documents of a given $type from the index. |
public __construct ( eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient $client, |
||
$client | eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient | |
$serializer | ||
$criterionVisitorDispatcher | ||
$sortClauseVisitor | ||
$facetBuilderVisitor | ||
$indexName | string |
public deleteByQuery ( string $query, string $type ) | ||
$query | string | |
$type | string |
public index ( |
||
$document |
public purgeIndex ( string $type ) | ||
$type | string |
protected HttpClient,eZ\Publish\Core\Search\Elasticsearch\Content\Gateway $client | ||
return | eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient |
protected CriterionVisitorDispatcher,eZ\Publish\Core\Search\Elasticsearch\Content $criterionVisitorDispatcher | ||
return |
protected FacetBuilderVisitor,eZ\Publish\Core\Search\Elasticsearch\Content $facetBuilderVisitor | ||
return |
protected string $indexName | ||
return | string |
protected Serializer,eZ\Publish\Core\Search\Elasticsearch\Content $serializer | ||
return |