Method |
Description |
|
__construct ( TextAnalysis\Interfaces\IDataReader $reader ) |
Pass in the pre-built indexes for doing lookups |
|
__destruct ( ) |
clean up |
|
addDocument ( TokensDocument $document ) : void |
Add a document |
|
getDocumentIdsByTerm ( string $term ) : array |
|
|
getIndex ( ) : array |
Return the internal index data structure |
|
getTermsByDocumentId ( mixed $docId ) : array |
Returns the key value array with the terms found in the document for the
given doc id |
|
query ( string $queryStr ) : array |
Accepts a string a query and returns the set of documents relevant
to the query |
|
removeDocument ( mixed $docId ) : boolean |
True if the doc was removed |
|