algolia / algolia/scout-extended

Can't get the correct results

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
support
Dominant language
PHP
Stars
420
Forks
94
PR merge metrics
No merged PRs in 30d

Description

Hi there,

I can't get scout working properly with algolia.

I added the client relationship to the searchable array:

Schermafbeelding 2019-09-09 om 14 14 04

And want to search for these attributes:

Schermafbeelding 2019-09-09 om 14 15 17

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?

Contributor guide

Open the contributing guide

Research direction

Start from the Project::search(...) query and the model's searchable array, then compare its filters with the Algolia dashboard query. Done means identifying why the Laravel search returns no records and documenting or reproducing the corrected behavior; no project file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.