algolia / scout-extended

Scout Extended: The Full Power of Algolia in Laravel
https://www.algolia.com/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended/
MIT License
396 stars 84 forks source link

Snippets missing from Scout Meta Data #205

Open tomworks opened 4 years ago

tomworks commented 4 years ago

Hi

There currently doesn't seem to be a way to access snippets in meta data.

"_snippetResult" appears to be missing as an option in the ModelResolver:

final class ModelsResolver
{
    /**
     * @var string[]
     */
    public static $metadata = [
        '_highlightResult',
        '_rankingInfo',
    ];

Thanks

Tom

nunomaduro commented 4 years ago

@tomworks Do you would like to make a pull request with the code for this?

tomworks commented 4 years ago

Sure, what is the process? Can I create branch or do I need to fork?

nunomaduro commented 4 years ago

You need to fork the project, modify the code, and perform a pull request.