algolia / scout-extended

Scout Extended: The Full Power of Algolia in Laravel
https://www.algolia.com/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended/
MIT License
393 stars 85 forks source link

Customize the ObjectID in algolia #336

Open oscarmorrison opened 5 months ago

oscarmorrison commented 5 months ago

Related to:

293

297

Description

Currently (before using the scout-extended) library, our scout id / algolia object id looks like this: modelname_id such as page_123 user_12 etc.

Now using the scout-extended our scoutids / object id look like:

"App\Models\Page::page_94312::99" "App\Models\User::user_94312"

Ideally we would like to keep our models object id:

page_122 page_123::2 (with splits)