IndexStrategy Interface Reference

Detailed Description

IndexStrategy defines the interface for indexing implementations.

Definition at line 18 of file IndexStrategy.php.

+ Inheritance diagram for IndexStrategy:

Public Member Functions

 getDocument (PersistentObject $obj, $language)
 
 encodeValue ($value, $inputType)
 

Member Function Documentation

◆ getDocument()

getDocument ( PersistentObject  $obj,
  $language 
)

Get the lucene document for a PersistentObject.

Parameters
$objPersistenceObject instance
$languageThe language
Returns
Document or null, if object should not be contained in the index

Implemented in DefaultIndexStrategy.

◆ encodeValue()

encodeValue (   $value,
  $inputType 
)

Encode the given value according to the input type.

Parameters
$value
$inputType
Returns
String

Implemented in DefaultIndexStrategy.