Implementing Category-Specific Filters with InstantSearch
TLDR Shadab asked about applying different filters to specific categories in InstantSearch for displaying different types of templates, but received no response.
Jul 24, 2023 (4 months ago)
Shadab
01:00 PMInstantSearch
for displaying some templates. At one page I need to display All Templates and at another only the Trendy ones so I want to apply filter_by: "categories.name:=[
trending]"
Is it possible to do so with one client?const additionalSearchParameters = {
query_by: "store_name",
num_typos: 2,
typo_tokens_threshold: 1,
};
export const searchClient = typesenseAdapter({ config, additionalSearchParameters }).searchClient;
const typesenseAdapter = ({ config, additionalSearchParameters }) => {
return new TypesenseInstantsearchAdapter({
server: config,
additionalSearchParameters,
});
};
If I add
filter_by: "categories.name:=[
trending]"
in additionalSearchParameters
I will get trending no of templates at all places. Pls refer any doc I can use for this purpose. Thanks!Jul 25, 2023 (4 months ago)
Shadab
05:19 AMTypesense
Indexed 3005 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Instantsearch Adapter's 'filters' Property
Carl was unable to use the `filters` property of Typesense Instantsearch adapter for network call. Jason suggested using a scoped API key to combine filters and also recommended experimenting with dynamic filtering rules for multiple product numbers. Carl is satisfied with these solutions.
Issue with Categories Facet in Typesense InstantSearch Adapter
David encountered an issue with not being able to add fields categories to facets. Kishore Nallan assisted in troubleshooting. After some back and forth communication, David finally managed to resolve the issue.
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.