public function __construct(ElasticSearcher $searcher) { $this->searcher = $searcher; // Default result parser. $this->parseResultsWith(new ArrayResultParser()); $this->fragmentParser = new FragmentParser(); }