There are also packages that set up laravel scout with elasticsearch.
Fast Autocomplete API, possible to Skip laravel?
Hello,
I'm in a situation where my back-end runs on Laravel, which is fine for most ajax requests, but since recently I have a search request with autocomplete functions that must go fast.
I use https://github.com/VictorSigma/RedCard-Autocomplete for it so the only thing I need to do is send a request to Redis and get the response back. But for every request of autocompletion it needs to bootstrap Laravel and it doesn't run as smooth as I hoped since that takes some time.
I was looking for alternatives to do the redis call without having to go through the whole framework. The solutions I came up with are either request it to a nodejs server, but I've read that breaks the same origin policy since that runs on a different port. The other solution was to use a subdomain that runs something lightweight, but that also breaks the same origin policy.
The last solution was to put a .php file inside the public folder and do the ajax request on that file, skipping Laravel entirely. But that feels like a bad solution.
Kind regards
Please or to participate in this conversation.