Clarification on Configurable Filters in typesense v.0.22
TLDR gab asked for document clarification of auto-apply filters feature in typesense v0.22. Kishore Nallan provided a link and Jason confirmed gab's understanding ensuring proper syntax.
Dec 21, 2021 (25 months ago)
gab
04:22 PMCould you please tell me more or give me the relevant document part about this new feature of v.0.22 "Configurable rules to auto-apply filters. Eg: "Best-rated restaurants" can automatically trigger the filter "rating > 4.5""
Kishore Nallan
04:25 PMCheck the dynamic filtering section
gab
04:43 PMCould you please confirm I well understood the parallel?
lets say I have configured this rule
override = {
"rule": {
"query": "Best-rated restaurants",
"match": "exact"
},
"filter_by": "rating > 4.5",
}
And I make this query
let searchParameters = {
'q': 'Best-rated restaurants',
}
client.collections('restaurants').documents().search(searchParameters)
It will apply the filer
"rating > 4.5"
Jason
05:06 PM"filter_by": "rating:>4.5"
(colon after rating)gab
05:06 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.
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.
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.