Я пытаюсь использовать babenkoivan/scout-elasticsearch-driver с astrotomic/laravel-translatable, но я не понимаю, как я могу индексировать переведенные слова.
Моя модель выглядит так:
namespace App\Models;
use Astrotomic\Translatable\Translatable;
use App\Models\Search\ShowIndexConfigurator;
use ScoutElastic\Searchable;
...
class Show extends BaseModel
{
...
use Translatable;
use Searchable;
protected $indexConfigurator = ShowIndexConfigurator::class;
protected $searchRules = [
//
];
protected $mapping = [
'properties' => [
// How to index localized translations ???
'title' => [
'type' => 'string'
],
]
];
....
public $translatedAttributes = [
...,
'title'
...
];
С наилучшими пожеланиями