Tim Kelty

Results 323 comments of Tim Kelty

@davist11 weird…I'm using your $indices and it's working for me… As a sanity check, can you go to your plugins page and make sure it looks like: ![Screen Shot 2020-07-09...

> Is every entry (from each site) being passed separately to the transformer? Yes - everything from the criteria gets passed to the transformer, so unless you have a [unique](https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#parameters)...

> That value automatically gets added (per the Scout documentation and what I'm seeing in Algolia records). derp – right you are. If it's possible to share your composer files...

Absolutely! Haven't had the time, but something to keep in mind, @janhenckens

@mgburns Yep, agreed this is annoying. Adding to my list!

For Craft 5, it sounds like [Bulk Operations](https://craftcms.com/docs/5.x/extend/events.html#bulk-operations) is how this should be tackled. - [Feed Me should process import as a bulk op](https://github.com/craftcms/feed-me/issues/1584) - Scout should use `Elements::EVENT_AFTER_BULK_OP` to...

@janhenckens I'll work on the Feed Me side, but you can/should implement the bulk op stuff regardless, as it will come into play, e.g. when someone runs a CLI `resave/elements`....

Feed Me PR for batch jobs, thanks to @i-just https://github.com/craftcms/feed-me/pull/1598

Just noticed that laravel\scout uses a `__call` so you can just call any methods on the algolia client directly: https://github.com/laravel/scout/blob/7.0/src/Engines/AlgoliaEngine.php#L232-L242

…It also might make sense to have a `getIndex` method, since we do this in several places: ``` $index = $this->algolia->initIndex($this->scoutIndex->indexName); ```