这个问题可能很老,但是有一个文档记录了如何实现这种方法,实现起来很简单。引用:要启用Cloud Firestore数据的全文本搜索,请使用第三方搜索服务(例如Algolia)。考虑一个做笔记的应用程序,其中每个笔记都是一个文档:阿尔戈利亚将成为您的一部分,firebase functions并将进行您想要的所有搜索。// Update the search index every time a blog post is written.exports.onNoteCreated = functions.firestore.document('notes/{noteId}').onCreate(event => { // Get the note document const note = event.data.data(); // Add an 'objectID' field which Algolia requires note.objectID = event.params.noteId; // Write to the algolia index const index = client.initIndex(ALGOLIA_INDEX_NAME); return index.saveObject(note);});要实现搜索,最好的方法是使用即时搜索-Android