Nuno Maduro
Nuno Maduro
@JayBizzle Sorry for the late response. Try like this: ```php App\Order::search('Star Trek', function (SearchIndex $algolia, string $query, array $options) { $options['X-Forwarded-For'] = $ip; return $algolia->search($query, $options); })->get(); ```
I am not sure buddy, can you try to debug it?
In your example, the `$options` is being ignored: ```php $options = [ 'X-Forwarded-For' => $ip, 'hitsPerPage' => 80, ]; ```
Hey @MadaniTech, what issues are caused in your side about having the model path on the objectID?
Yeah - at the moment, moving the model from directory will force you to reimport all records. Maybe we can improve this in the future.
@wisoot Do you think that you are able to do a pull request with tests on this?
@sarabisohrab Thanks for trying to help! Let's wait for @dniccum feedback. Let me know if you need any help!
Normally, we just send a delete if there is something that needs to be deleted: https://github.com/algolia/scout-extended/blob/db5bd4135c66738b79450d20fc6368a97fc8175e/src/Jobs/DeleteJob.php#L49. Do you have a use case where you are being impacted by this? If...
@finalgamer You described perfectly the implementation. Is exactly that. We don't have nothing in place to `reduce this to one operation`. Any ideas?
> My workaround would be to store the amount of records it generates in the database with the model and when updating the record the new count and last count...