#community-help

Filter Specifications and Workarounds in Typesense Curation Feature

TLDR Gabe asked about specifying filters in Typesense's curation feature. Jason confirmed its current limitations, proposed the use of pinned_hits as a workaround, and asked for a Github feature request.

Powered by Struct AI
2
28mo
Solved
Join the chat
Jul 29, 2021 (28 months ago)
Gabe
Photo of md5-7aff1bf99393eb318e36513504a16e85
Gabe
12:05 AM
I've been checking out the Curation feature of typesense which is awesome!

I'm wondering if this is possible to achieve to specify filters for a Curation:

when query=* with no filters exclude specific records, but when any filters (or specific filters) are applied no longer exclude those records.

From the docs it looks like the curation is based solely on the query & there is no way to specify filters under which to apply the exclusion.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:02 AM
Gabe That's correct, currently curation only works for queries and not filters! I was thinking about this in the back of my head and was just waiting for someone to have a use-case for it. Could you put this in a Github issue feature request?

In the meantime, one workaround would be to use the pinned_hits search parameter. So when you apply a filter_by, you can also add a pinned_hits parameter to specify which records to pin (essentially curate).