Hi there!
Im try to implement Similar for Kirby 3 plugin
and stuck a little with this:
<?php
$similarArticles = $page->similar([
'index' => $page->siblings(false)->visible(),
'fields' => ['category' => 0.3, 'title' => 1],
'threshold' => 0.2,
'delimiter' => ',',
'languageFilter' => true
]);
?>
When im try to load page, I have error
Whoops \ Exception \ ErrorException (E_NOTICE)
Array to string conversion
If I use simple way by one field it works fine:
'fields' => 'tags',
Where I can be wrong?