UNPKG

firestore-search-engine

Version:

Firestore Search Engine is a powerful helper library for enhancing search functionality in Firestore. Designed to handle misspellings, prefixes, and phonetic matching, this package generates multiple search variations for optimized approximate search resu

10 lines (9 loc) 531 B
import { FirestoreSearchEngineIndexesProps } from ".."; /** * Function to rank the results of a search engine index. * @param {FirestoreSearchEngineIndexesProps} props - Props for the search engine index. * @param {FirestoreSearchEngineIndexesProps["returnedFields"][]} results - Results to be ranked. * @param {string} query - The search query. * @returns {any[]} - An array of ranked results. */ export declare function fse_rankResults(results: FirestoreSearchEngineIndexesProps["returnedFields"][], query: string): any[];