Can't get the correct results algolia

I can’t get scout working properly with algolia.

I added the client relationship to the searchable array:

And want to search for these attributes:

when i do Project::search($keyword)->where('user_id', $request->user_id)->where('finished', true)->orderBy('created_at', 'DESC')->paginate(10); i don’t get any result.

But the records are uploaded to algolia en indexed correcty and when i search in the algolia dashboard i get the correct results. Does anyone know what i’m doing wrong?


I’m Chloe, one of the maintainer of the Scout Extended integration and I’m here to help you.

The problem with the query you’re sending is that you are using the where method with a boolean, but this method only accepts comparisons with numeric values. You can check that part of Laravel Scout documentation to get further information.

What I would suggest is to update the finished field to a numeric value, and use 0 and 1 in your condition.

Let me know if it solves your issue.

Have a good day,