analyserBuilder = $analyserBuilder; $this->debug = $debug; } /** * {@inheritdoc} */ public function build() { $settings = [ 'index.mapping.total_fields.limit' => IndexBuilderInterface::MAX_FIELDS_COUNT, 'max_result_window' => IndexBuilderInterface::MAX_RESULT_COUNT, 'analysis' => $this->analyserBuilder->build($this->storeId) ]; /* * debug code for settings \Amasty\Base\Debug\VarDump::setArrayDepthLevel(5); $this->debug->debug($settings); */ return $settings; } /** * @param int $storeId * @return $this */ public function setStoreId($storeId) { $this->storeId = $storeId; return $this; } }