typesense / firestore-typesense-search

Firebase Extension to automatically push Firestore documents to Typesense for full-text search with typo tolerance, faceting, and more
https://extensions.dev/extensions/typesense/firestore-typesense-search
Apache License 2.0
150 stars 27 forks source link

Filter records which are indexed #72

Open chipndahla opened 5 months ago

chipndahla commented 5 months ago

Description

I have Firestore records with different publishing status (public, private, draft etc) and only want to include the public records in the search results. How can I achieve that today? If not available, it's a very clear feature request

Expected Behavior

Some kind of filter in the Firestore extension I assume?

OS: Typesense Cloud :-)

jasonbosco commented 5 months ago

While the extension does not have a way to filter records that are indexed, you can limit which records show up in the search results using a filter_by clause embedded inside a scoped search API key.