Skip to main content
Version: 2.0.0

Type alias: FirestoreTextSearchController

Ƭ FirestoreTextSearchController: (props: { path: string ; searchString: string }) => Promise<readonly string[]> | undefined

Type declaration

▸ (props): Promise<readonly string[]> | undefined

Use this controller to return a list of ids from a search index, given a path and a searchString. Firestore does not support text search directly so we need to rely on an external index, such as Algolia. Note that you will get text search requests for collections that have the textSearchEnabled flag set to true.

See

performAlgoliaTextSearch

Parameters
NameType
propsObject
props.pathstring
props.searchStringstring
Returns

Promise<readonly string[]> | undefined

Defined in

lib/src/firebase_app/types/text_search.ts:13

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!