TextAnalysis\Indexes\Builders\CollectionInvertedIndexBuilder::__construct PHP Method

__construct() public method

Build the index from the collection of documents
public __construct ( TextAnalysis\Interfaces\ICollection &$collection )
$collection TextAnalysis\Interfaces\ICollection
    public function __construct(ICollection &$collection)
    {
        $this->collection = $collection;
        $this->buildIndex();
    }