Detailed Description

DefaultIndexStrategy implements indexing of all PersistentObject values and might be customized by overriding the enhanceDocument method.

Definition at line 21 of file DefaultIndexStrategy.php.

+ Inheritance diagram for DefaultIndexStrategy:

Public Member Functions

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

Protected Member Functions

 enhanceDocument (Document $doc, PersistentObject $obj)
 

Member Function Documentation

getDocument ( PersistentObject  $obj)
See also
IndexStrategy::getDocument()

Implements IndexStrategy.

Definition at line 26 of file DefaultIndexStrategy.php.

encodeValue (   $value,
  $inputType 
)
See also
IndexStrategy::encodeValue()

Implements IndexStrategy.

Definition at line 67 of file DefaultIndexStrategy.php.

enhanceDocument ( Document  $doc,
PersistentObject  $obj 
)
protected

Customize the lucene document according the the application requirements.

Parameters
$docThe lucene document
$objThe object to index

Definition at line 79 of file DefaultIndexStrategy.php.