Property | Type | Description | |
---|---|---|---|
$collection | ICollection; | ||
$index | type | The index that gets written out | |
$metadata | array | The collection of metadata for all the documents, indexed by doc id |
Method | Description | |
---|---|---|
__construct ( TextAnalysis\Interfaces\ICollection &$collection ) | Build the index from the collection of documents | |
__destruct ( ) | ||
getIndex ( ) : array | Get the computed index | |
getMetadata ( ) : the |
Method | Description | |
---|---|---|
buildIndex ( ) | Builds the internal index data structure using the provided collection |
public __construct ( TextAnalysis\Interfaces\ICollection &$collection ) | ||
$collection | TextAnalysis\Interfaces\ICollection |
protected buildIndex ( ) |
protected array $metadata | ||
return | array |