Laravel Scout Extended

Laravel Scout Extended

Laravel Scout provides a simple, driver based solution for adding full-text search to your Eloquent models. But because Laravel Scout is search engine-agnostic, it keeps things basic. For indexing, this isn't an issue, as Scout will help keep everything in sync and format your data the way you want. But for search, it's limited.

In this talk, we will be using Scout Extended, a library created by Algolia that extends Laravel Scout adding Algolia-specific features.

You'll learn about the ideas behind this library. We'll also cover the most important features of Scout Extended, such as Aggregators, Zero Downtime Deployments, or the optimization of the search experience based on information from the model class.

This talk will include a 20 min live-coding session, where you will learn how to leverage Scout Extended to take the search experience of your website to the next level.

8c6da099bca5cd7c16d8064ca6efaca6?s=128

Nuno Maduro

November 07, 2018
Tweet

Transcript

  1. None
  2. Scout Extended

  3. Search using the Query Builder $query = (string) request('query'); $models

    = Post::query() ->where('title', 'LIKE', "%$query%") ->orWhere('body', 'LIKE', "%$query%") ->get(); return view('index', compact('models'));
  4. None
  5. Scout Released by Laravel in 2016 Driver based solution for

    adding full-text search to your Eloquent models
  6. Search using the Scout $query = (string) request('query'); $models =

    Post::search($query)->get(); return view('index', compact('models'));
  7. None
  8. Why Search Engine? Relevance & Speed

  9. Scout is Engine-agnostic

  10. Introducing Scout Extended It's Laravel Scout with algolia-specific features

  11. DEMO 1. Improve the search experience 2. Reindex your data

    with Zero Downtime 3. Status overview of your indexes 4. Search amongst multiple models with aggregators
  12. DEMO 1. Improve the search experience 2. Reindex your data

    with Zero Downtime 3. Status overview of your indexes 4. Search amongst multiple models with aggregators
  13. DEMO 1. Improve the search experience 2. Reindex your data

    with Zero Downtime 3. Status overview of your indexes 4. Search amongst multiple models with aggregators
  14. DEMO 1. Improve the search experience 2. Reindex your data

    with Zero Downtime 3. Status overview of your indexes 4. Search amongst multiple models with aggregators
  15. DEMO 1. Improve the search experience 2. Reindex your data

    with Zero Downtime 3. Status overview of your indexes 4. Search amongst multiple models with aggregators
  16. macros facades front-end directives and much more!

  17. ! Just released v0.1.0 github.com/algolia/scout-extended

  18. github.com/algolia/scout-extended nunomaduro.com Twitter: @enunomaduro QUESTIONS?