#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

2

15
27mo
Solved
Join the chat
Oct 07, 2021 (27 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

1

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.

1

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! 🙌

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3011 threads (79% resolved)

Join Our Community

Similar Threads

Fixing Multiple Document Retrieval in Typesense

Phil needed an efficient way to retrieve multiple documents by id. Kishore Nallan proposed a solution available in a pre-release build. After some bug fixing regarding id matching by Jason and Kishore Nallan, Phil successfully tested the solution.

4

26
26mo
Solved

Typesense Sorting Query and Bug Report

michtio is new to Typesense and is querying sorting implementation. Jason shares resources and suggests use of specific adapters. However, michtio shares a bug found when applying a filter on Typesense. Jason asks for a GitHub issue to be opened for the bug.

14
18mo

Troubleshooting Typesense Setup and Understanding Facets and Keywords

Demitri encountered errors when exploring Typesense for the first time. Jason guided them through troubleshooting and discussed facets, keyword settings, and widget configurations. Helin shared a Python demo app and its source code to help Demitri with their project.

1

56
21mo
Solved

Implementation and Testing of Negative Filtering on Typesense

Stefan needed an ETA on implementing negative filtering on layer of `typesense`. Kishore Nallan provided updates, fixes, and an early build for testing. Further plans on adding it to instantsearch adapter were discussed, with Stefan also offering to contribute.

3

23
33mo
Solved

Implementing State Export Feature Using Typesense InstantSearch.js on Node.js Backend

Kyle needed help passing search state to backend for implementing an "Export" feature, while using Typesense InstantSearch. Jason provided multiple solutions including advice on using Typesense InstantSearch adapter. The issue was resolved after some iteration.

1

10
28mo
Solved