#community-help

Addressing `filterBy` Issues and Using `configure` Widget

TLDR Sean had issues with filterBy and understanding negation. Jason suggested using configure widget and updated the adapter, resolving the issues.

Powered by Struct AI
+12
15
23mo
Solved
Join the chat
Oct 07, 2021 (23 months ago)
Sean
Photo of md5-2d5361393096e40eccbe0d4cfa49f7de
Sean
01:23 AM
Is filterBy not support for additionalSearchParameters?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:25 AM
Sean
Photo of md5-2d5361393096e40eccbe0d4cfa49f7de
Sean
01:27 AM
This works even better!!
01:27
Sean
01:27 AM
Thank you
+11
01:30
Sean
01:30 AM
Would I use the facetFilter option instead of the syntax in the typesense docs?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:30 AM
That's correct
Sean
Photo of md5-2d5361393096e40eccbe0d4cfa49f7de
Sean
01:43 AM
So how does negation work?
I cannot get the syntax right.
01:54
Sean
01:54 AM
Maybe a bug?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:58 AM
Missing feature in the adapter actually. Need to review, clean up and merge this PR: https://github.com/typesense/typesense-instantsearch-adapter/issues/68
01:59
Jason
01:59 AM
Let me take a stab at it and I'll keep you posted
Sean
Photo of md5-2d5361393096e40eccbe0d4cfa49f7de
Sean
02:11 AM
Thank you very much Jason.
+11
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:48 AM
Sean Could you try this version of the adapter: https://www.npmjs.com/package/typesense-instantsearch-adapter/v/2.2.0-0
Sean
Photo of md5-2d5361393096e40eccbe0d4cfa49f7de
Sean
11:37 AM
Yep. Just got up and will take a look very shortly. Thanks Jason
01:11
Sean
01:11 PM
Works like a charm!
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:36 PM
Awesome! 🙌