Issues with React InstantSearch Refinement List Search

TLDR alex is having trouble with react instantsearch refinement list search not showing all results. Kishore Nallan suggests using a higher max_candidates value and a later 0.24 RC build and offered to help with diagnosing the issue in detail.

Photo of alex
alex
Wed, 23 Nov 2022 09:10:01 UTC

Hi all, was wondering if anyone faced this and solved this issue before. Related to react instantsearch refinement list search, when searching let's say first alphabet, it doesnt show all result, just show top 3 or less only, how shall i fix this?

Photo of Kishore Nallan
Kishore Nallan
Wed, 23 Nov 2022 09:13:00 UTC

Try setting max_candidates=100 or some large value. Use a recent 0.24 RC build where we have made more improvements on this as well.

Photo of alex
alex
Wed, 23 Nov 2022 09:25:03 UTC

thanks so much!

Photo of alex
alex
Tue, 21 Feb 2023 04:45:37 UTC

Hello Kishore Nallan <@4L6c7> , wanted to ask more on this, tried to add these in the schema (backend) • 'max_candidates':'1000000' • 'max_facet_values':'1000000' and also in the Typesense Instantsearch Adapter (with/using react-instantsearch) • maxFacetValues: 1000000 • maxCandidates: 1000000 But it still doesnt show, wondering if im implementing them wrongly or the wrong amount in a way Let me know, thanks :smile:

Photo of Kishore Nallan
Kishore Nallan
Tue, 21 Feb 2023 04:57:10 UTC

What version are you using?

Photo of alex
alex
Mon, 13 Mar 2023 03:18:25 UTC

Using 0.24 RC build but still cant work, kindly advise, thanks Kishore Nallan :pray:

Photo of Kishore Nallan
Kishore Nallan
Mon, 13 Mar 2023 03:27:31 UTC

I'll need access to the app/api to check what's happening. Please DM me the details.

Photo of alex
alex
Mon, 13 Mar 2023 03:50:39 UTC

sure, ill try to get from my team, but meantime, do u happen to have any comments about the implementation here of if there's any advices or tips to debug or fix this? tried to add these in the schema (backend) • 'max_candidates':'1000000' • 'max_facet_values':'1000000' and also in the Typesense Instantsearch Adapter (with/using react-instantsearch) • maxFacetValues: 1000000 • maxCandidates: 1000000

Photo of Kishore Nallan
Kishore Nallan
Mon, 13 Mar 2023 03:54:55 UTC

That looks fine to me.