How it Works: Laravel Search
The Laravel SearchJet package works through a simple three-step process that keeps your Laravel app fast while delivering intelligent search results.
Architecture Overview
Step 1: Your Laravel application sends search requests to the SearchJet package. This happens through a facade call or service injection in your controller or Blade template.
Step 2: The package communicates with your WordPress site REST API endpoints, which are provided by the SearchJet WordPress plugin. The package handles authentication, request formatting, and response parsing.
Step 3: SearchJet processes the query using AI-powered ranking and returns results in under 200ms. The package formats the response and returns it to your Laravel application as a clean, usable array.
Data Flow
The data flows from your Laravel app through the package to the SearchJet API and back. Your WordPress site serves as the content source, while SearchJet handles indexing and search processing. This architecture means your Laravel app stays fast and your WordPress site handles content management.
Performance
Search queries are processed on SearchJet dedicated infrastructure, not your servers. The package adds minimal overhead, typically under 10ms per request. Built-in caching further reduces latency for repeated queries.