la-haute-societe / craft-elasticsearch

Bring the power of Elasticsearch to your Craft CMS projects
Other
18 stars 14 forks source link

Example config.php has wrong structure #18

Closed floatingbits closed 2 years ago

floatingbits commented 2 years ago

The example config file has got three keys on the wrong level: 'resultFormatterCallback' => function (array $formattedResult, $result) { ... }, 'elementContentCallback' => function (\craft\base\ElementInterface $element) { return '<span>Some HTML element content to index</span>'; }, 'extraFields' => [...]

These keys look like they belong under elasticsearchComponentConfig, but they need to be one level higher!

nstCactus commented 2 years ago

Thank you for the heads up!