#contributions

Collaborating on Laravel Scout Engine for Typesense

TLDR Jason invited contributors Abdullah and Tim for a collaboration on the Laravel Scout engine for Typesense. They discussed framework intricacies and agreed to collaborate under Typesense's GitHub organization.

Powered by Struct AI
heart2
+11
pray1
22
29mo
Solved
Join the chat
Apr 26, 2021 (29 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:59 PM
Alex David kevin Following up from this, are you already using Typesense with Laravel?
+11
04:01
Jason
04:01 PM
There's this Laravel Scout engine that a contributor has been working on: https://github.com/devloopsnet/laravel-scout-typesense-engine

It has a few open issues: https://github.com/devloopsnet/laravel-scout-typesense-engine/issues/10
04:01
Jason
04:01 PM
Let me see if I can invite the author to the community Slack so we can collaborate
Apr 27, 2021 (29 months ago)
Alex
Photo of md5-bf7414b890b5de8dd9d0bd5bef438a50
Alex
12:23 AM
Yep, I saw this but it doesn’t seem to have had any commits for over half a year. We’re planning on replacing our client side text search in the backend CMS with a global search that’s connected to our TypeSense instance. Its currently a planned as opposed to a WIP project, but we expect to start fleshing out the project in 2-3 months
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:23 AM
Hey everyone, please meet Abdullah, he's the original author of the PHP library which we adopted as the official one and also the typesense laravel scout driver
Abdullah
Photo of md5-34cdef5ee27e6b9cdf46e37972a4de07
Abdullah
09:44 AM
Hello everybody, I’m ready to help in anyway possible
heart1
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:24 PM
Abdullah Would you be open to us adopting your work on the scout driver into the Typesense github org (with attribution of course), so we can all collaborate on it together in one place, and also get more eyes on it?
Abdullah
Photo of md5-34cdef5ee27e6b9cdf46e37972a4de07
Abdullah
06:25 PM
Of course, I’m with whatever makes other developers life easier
pray1
06:25
Abdullah
06:25 PM
After all, I’ve only done it to give back to the community
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:27 PM
Awesome, thank you again for your work! Let's do a similar way as we did with the PHP client... I'll create a new repo in the typesense org and then pull from your repo into that, then I'll send a PR to your repo to add a banner to the README pointing people to the new one, I'll then add you to that repo in the typesense org, so we can continue collaborating
heart1
Apr 28, 2021 (29 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:31 PM
Tim - welcome! Please meet the rest of the crew who have expressed interest in helping with the Laravel scout driver, along with Abdullah who is the original author
Tim
Photo of md5-34bcc5c735ede4258efc71d462d72d28
Tim
03:36 PM
👋 Specifically, I’m from the Craft CMS community, so I was planning on seeing what is happening on the Laravel side and sharing that with what we’re doing in Craft/Yii https://github.com/riasvdv/craft-scout/
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:40 PM
Ah got it! Forgive my noob question, but is Scout a search abstraction library in PHP that both Laravel and CraftCMS use in common, or is it just a coincidence that they share the same terminology?
Tim
Photo of md5-34bcc5c735ede4258efc71d462d72d28
Tim
04:00 PM
coincidence, kind of…it shares the name because it was inspired/ported from the Laravel version
04:00
Tim
04:00 PM
but they dont share any code.
04:01
Tim
04:01 PM
However I think they both use Fractal under the hood https://fractal.thephpleague.com/
04:03
Tim
04:03 PM
So most of the code is: using/connecting to engines (eg algolia, typesense) and integrating it into the actual app (eg Craft CMS elemnets)
04:03
Tim
04:03 PM
it would be great if there were a framework-agnostic SearchProvider interface they could both use… 🤔
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:15 PM
I see, interesting.
04:16
Jason
04:16 PM
Isn't the Scout engine meant to be that framework-agnostic SearchProvider?
Tim
Photo of md5-34bcc5c735ede4258efc71d462d72d28
Tim
04:38 PM
I’d have to look again, but I think everything is specific to Illuminate\Database\Eloquent models, so not really agnostic
04:39
Tim
04:39 PM
but yeah, probably could be