eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Solr\Content\Search\Gateway Class Reference

The Content Search Gateway provides the implementation for one database to retrieve the desired content objects. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Solr\Content\Search\Gateway:

Public Member Functions

 deleteContent ($contentId, $versionId=null)
 Deletes a content object from the index. More...
 
 findContent (Query $query, array $fieldFilters=array())
 Finds content objects for the given query. More...
 
 indexContent (array $document)
 Indexes a content object. More...
 
 purgeIndex ()
 Purges all contents from the index. More...
 

Detailed Description

The Content Search Gateway provides the implementation for one database to retrieve the desired content objects.

Member Function Documentation

eZ\Publish\Core\Persistence\Solr\Content\Search\Gateway::deleteContent (   $contentId,
  $versionId = null 
)
abstract

Deletes a content object from the index.

Parameters
intcontent id
int|nullversion id
Returns
void
eZ\Publish\Core\Persistence\Solr\Content\Search\Gateway::findContent ( Query  $query,
array  $fieldFilters = array() 
)
abstract

Finds content objects for the given query.

Todo:
define structs for the field filters
Parameters
\eZ\Publish\API\Repository\Values\Content\Query$query
array$fieldFilters- a map of filters for the returned fields. Currently supported: array("languages" => array(<language1>,..)).
Returns
eZ\Publish\Core\Persistence\Solr\Content\Search\Gateway::indexContent ( array  $document)
abstract

Indexes a content object.

Parameters
\eZ\Publish\SPI\Persistence\Content\Search\Field[]$document
Returns
void
eZ\Publish\Core\Persistence\Solr\Content\Search\Gateway::purgeIndex ( )
abstract

Purges all contents from the index.

Returns
void

The documentation for this class was generated from the following file: