相关疑难解决方法(0)

是否可以在FirestoreRecyclerOptions中使用Algolia查询?

为了让我的用户执行更复杂的搜索,我正在与Algolia合作。

com.algolia.search.saas.Query algolia_query =
                    new com.algolia.search.saas.Query(mLastQuery)
                    .setAttributesToRetrieve("content")
                    .setAttributesToRetrieve("category")
                    .setHitsPerPage(10);
            index.searchAsync(algolia_query, new CompletionHandler() {
                @Override
                public void requestCompleted(JSONObject jsonObject, AlgoliaException e) {
                    Log.d("algolia", jsonObject.toString());
                }
            });
Run Code Online (Sandbox Code Playgroud)

我想将此jsonObject转换为兼容的东西,FirestoreRecyclerOptions以便能够使用FirestoreRecyclerAdapter

谢谢 !

android google-cloud-firestore

0
推荐指数
1
解决办法
2302
查看次数

标签 统计

android ×1

google-cloud-firestore ×1