Closed BirdyUK closed 5 years ago
It just returns an array.
/**
* Get CloudSearch document data for the model.
*
* @return array|null
*/
public function getSearchDocument()
{
return [
'id' => $this->id,
'locale' => $this->locale,
'name' => $this->name,
'tags' => $this->getAllTagIds(),
];
}
Is this documented somewhere? It's not in the README
@deevus just what's in the readme
Hey Torann, Just want to say great work you have done with this package, Ive just started to learn cloud search so everything is quite new and looking forward to working with a much more laravel friendly way by using your package. I appreciate the time and effort you have gone to with making this package it is very clean.
I have an issue i face when using search:import. I have tried with and without the Searchable triat being added to the model, The first error i get without the trait is:
With the searchable trait:
I have attempted to add a getSearchDocument method but unsure what the method should return or if it should be present on the model as it does not mention this in the docs?
Any help would be greatly appreciated, Thansk.