elitexp/opensearch

Custom Laravel Scout OpenSearch Engine

v1.0.3 2022-09-05 01:48 UTC

This package is auto-updated.

Last update: 2024-12-05 07:00:54 UTC


README

Installation

composer require elitexp/opensearch

<?php

namespace App\Providers;

// ...

use Elitexp\OpenSearch\OpenSearchEngine;
use Laravel\Scout\EngineManager;

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        // ...

        resolve(EngineManager::class)->extend(config('scout.driver'), function () {
            return new OpenSearchEngine;
        });

    }
}