大多數應用程序允許用戶搜索應用程序內容。例如,您可能想要搜索包含某個單詞或您就特定主題撰寫的註釋的帖子。
Cloud Firestore 不支持原生索引或搜索文檔中的文本字段。此外,下載整個集合以在客戶端搜索字段是不切實際的。
要啟用 Cloud Firestore 數據的全文搜索,請使用專用的第三方搜索服務。這些服務提供的高級索引和搜索功能遠遠超出任何簡單的數據庫查詢所能提供的。
在繼續之前,請先進行研究,然後選擇以下搜索提供商之一:
大多數應用程序允許用戶搜索應用程序內容。例如,您可能想要搜索包含某個單詞或您就特定主題撰寫的註釋的帖子。
Cloud Firestore 不支持原生索引或搜索文檔中的文本字段。此外,下載整個集合以在客戶端搜索字段是不切實際的。
要啟用 Cloud Firestore 數據的全文搜索,請使用專用的第三方搜索服務。這些服務提供的高級索引和搜索功能遠遠超出任何簡單的數據庫查詢所能提供的。
在繼續之前,請先進行研究,然後選擇以下搜索提供商之一:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-06-30 UTC.