Property | Type | Description | |
---|---|---|---|
$counter | |||
$createdOn | time doc was created defaults to now | ||
$id | mixed | ||
$metadata | array | Stores an array of metadata about the document | |
$tokens | type | An array of tokens that all Documents have |
Method | Description | |
---|---|---|
__construct ( array $tokens, mixed $id = null, DateTim\DateTime $createdOn = null, array $metadata = [] ) | ||
applyExtract ( TextAnalysis\Interfaces\IExtractStrategy $extract ) : array | Apply an extract filter and return the results after filter all the documents in the collection | |
applyStemmer ( TextAnalysis\Interfaces\IStemmer $stemmer, boolean $removeNulls = true ) : |
Apply a stemmer | |
applyTransformation ( TextAnalysis\Interfaces\ITokenTransformation $transformer, $removeNulls = true ) : |
Apply the transformation | |
getCreatedOn ( ) : DateTim\DateTime | ||
getDocumentData ( ) : array | Return an array of tokens | |
getId ( ) : mixed | ||
getMetadata ( ) : array | ||
setCreatedOn ( DateTim\DateTime $createdOn ) : |
||
setMetadata ( array $metadata ) : |
||
toArray ( ) : array | Return the tokens |
public applyExtract ( TextAnalysis\Interfaces\IExtractStrategy $extract ) : array | ||
$extract | TextAnalysis\Interfaces\IExtractStrategy | |
return | array |
public applyStemmer ( TextAnalysis\Interfaces\IStemmer $stemmer, boolean $removeNulls = true ) : |
||
$stemmer | TextAnalysis\Interfaces\IStemmer | |
$removeNulls | boolean | |
return |
public applyTransformation ( TextAnalysis\Interfaces\ITokenTransformation $transformer, $removeNulls = true ) : |
||
$transformer | TextAnalysis\Interfaces\ITokenTransformation | |
return |
public getDocumentData ( ) : array | ||
return | array |
public setCreatedOn ( DateTim\DateTime $createdOn ) : |
||
$createdOn | DateTim\DateTime | |
return |
public setMetadata ( array $metadata ) : |
||
$metadata | array | |
return |
protected array $metadata | ||
return | array |