PHP Interface Newscoop\Search\ServiceInterface

Provides an interface for Search services
Afficher le fichier Open project: sourcefabric/newscoop Interface Usage Examples

Méthodes publiques

Méthode Description
getDocument ( Newscoop\Search\DocumentInterface $item ) : array Get document for item
getDocumentId ( Newscoop\Search\DocumentInterface $item ) : string Get document id
getSubType ( Newscoop\Search\DocumentInterface $item ) : string Get the subtype of the item
getType ( ) : string Get the type of the item
isIndexable ( Newscoop\Search\DocumentInterface $item ) : boolean Test if item can be indexed
isIndexed ( Newscoop\Search\DocumentInterface $item ) : boolean Test if item is indexed

Method Details

getDocument() public méthode

Get document for item
public getDocument ( Newscoop\Search\DocumentInterface $item ) : array
$item Newscoop\Search\DocumentInterface
Résultat array

getDocumentId() public méthode

Get document id
public getDocumentId ( Newscoop\Search\DocumentInterface $item ) : string
$item Newscoop\Search\DocumentInterface
Résultat string

getSubType() public méthode

Get the subtype of the item
public getSubType ( Newscoop\Search\DocumentInterface $item ) : string
$item Newscoop\Search\DocumentInterface
Résultat string identifier for subtype

getType() public méthode

Get the type of the item
public getType ( ) : string
Résultat string identifier for type

isIndexable() public méthode

Test if item can be indexed
public isIndexable ( Newscoop\Search\DocumentInterface $item ) : boolean
$item Newscoop\Search\DocumentInterface
Résultat boolean

isIndexed() public méthode

Test if item is indexed
public isIndexed ( Newscoop\Search\DocumentInterface $item ) : boolean
$item Newscoop\Search\DocumentInterface
Résultat boolean