Book Image

Integrating Elasticsearch with PHP and Laravel [Video]

By : Kyle Nicodemus
Book Image

Integrating Elasticsearch with PHP and Laravel [Video]

By: Kyle Nicodemus

Overview of this book

<p><span id="description" class="sugar_field">Integrating Elasticsearch with PHP and Laravel will help you to achieve just what the title suggests. This video series will walk you through everything required to integrate Elasticsearch with your PHP / Laravel web application. The sections in the course will build from the ground up, starting with setting up your development environment all the way through creating a functional, searchable web application.</span></p> <p><span id="description" class="sugar_field">First you’ll set up your dev environment using Laravel Homestead, which provides a pre-packaged vagrant environment in which we’ll install Elasticsearch and set up our Laravel PHP application. Using this environment, we’ll start working through Elasticsearch basics, moving on to using two different Elasticsearch PHP clients before integrating Elasticsearch with our Laravel model using Laravel Scout.</span></p> <p><span id="description" class="sugar_field">This video series will not only leave you with the skills required to build a functional Elasticsearch integration in your PHP / Laravel web application, but will give you the knowledge required to extend this integration and solve real problems with real world applications.</span></p> <h1>Style and Approach</h1> <p><span id="trade_selling_points_c" class="sugar_field">We will start by learning the fundamentals of Elasticsearch through the use of the Elasticsearch REST API, the Sense tool, and two different Elasticsearch PHP libraries. We’ll use those fundamentals to integrate Elasticsearch with our PHP / Laravel application, starting with the PHP libraries and expanding to the Laravel Scout package.</span></p> <p><span id="trade_selling_points_c" class="sugar_field">As we progress through sections we’ll create a database of information, adding more data types and performing more advanced queries and data analysis all while gaining knowledge that can be applied to solve real problems.</span></p>
Table of Contents (5 chapters)
Chapter 5
Searching Models with Laravel Scout
Content Locked
Section 3
Building a Simple Search Page
In this video we will set up some routes that will be used to receive search terms from our view and display the results. We will then write code to perform different types of searches on our data indexed in Elasticsearch using functionality provided by Laravel Scout. - Accept search terms from a view - Perform different queries on our models - Return the results to our view