Implementation and Testing of Negative Filtering on Typesense
TLDR 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.
2
1
Apr 27, 2021 (31 months ago)
Stefan
06:33 AMKishore Nallan
06:36 AMIn the mean time, the issues you identified with highlighting and typo correction should be fixed in
0.20.0.rc49
docker image. It will be great if you can give it a spin and let me know if it works!Stefan
06:43 AMAnd I just upgraded and it seems to be fixed! Thank you
Only minor thing: I assume typesense doesn't ignore dashes?
Kishore Nallan
06:43 AMcatch-up
will be indexed as catchup
.Kishore Nallan
06:44 AMStefan
06:44 AMMay 03, 2021 (31 months ago)
Stefan
08:07 AMKishore Nallan
08:26 AM1
Stefan
08:56 AMMay 06, 2021 (31 months ago)
Kishore Nallan
04:09 AMfiltering
right? So, something likeย color:- blue
ย would match records which are not blue.Stefan
04:10 AMKishore Nallan
04:24 AM1
Stefan
05:32 AMMay 07, 2021 (31 months ago)
Kishore Nallan
08:19 AMtypesense/typesense:0.21.0.rc2
Currently supporting the exclusion operator (
-
) on only string facets. Usage:filter_by=author:- JK Rowling
(excludes a single value)filter_by=author:- [JK Rowling, Enid Blyton]
(excludes both authors)
If you want to include some and exclude others you can have two filter_by clauses separated by
&&
e.g.filter_by=author:- [JK Rowling, Enid Blyton] && author: [JRR Tolkien, John Grisham, George Martin]
Kishore Nallan
08:21 AMMay 10, 2021 (31 months ago)
Kishore Nallan
06:18 AMtypesense/typesense:0.21.0.rc4
-- this also has a fix for the other bug you identified Stefan -- the issue of escaping commas in filter value list during filtering. You can now wrap strings in backtick () to achieve that. E.g.
```place: [
London, UK,
Paris, France`] ```Stefan
06:21 AMMay 11, 2021 (31 months ago)
Stefan
02:21 PMJason
02:31 PMStefan
02:32 PM1
Jason
02:33 PMStefan
02:34 PMKishore Nallan
02:56 PMTypesense
Indexed 2779 threads (79% resolved)
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.
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.
Facet Groups Filtering with Typesense and Instantsearch.js
Cristopher was having issues with faceting on Typesense and sought advice. Kishore Nallan and Jason provided recommendations and resources. Cristopher finally resolved the issue by switching to instantsearch.js.
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.
Querying with Typesense-Js and Handling Null Values
michtio was querying using typesense-js and receiving fewer results than expected. Kishore Nallan suggested using different query parameters. Further discussion led to the handling of 'null' values and filtering syntax in the search queries. The thread ended with Jason offering migration support from Algolia to Typesense.