Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Laravel Scout Extended

Nuno Maduro
November 07, 2018

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.

Nuno Maduro

November 07, 2018
Tweet

More Decks by Nuno Maduro

Other Decks in Programming

Transcript

  1. 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'));
  2. Scout Released by Laravel in 2016 Driver based solution for

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

    Post::search($query)->get(); return view('index', compact('models'));
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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