public function __construct(ConfigBuilder $builder) { $this->stopWords = $builder->getStopWords(); $this->index = $builder->getIndex(); $this->store = $builder->getStore(); $this->tokenizer = $builder->getTokenizer(); $this->ranker = $builder->getRanker(); }