当我为 firestore 适配器键入 space 时,Searchview 不起作用

Searchview doesn't work when I type space for firestore adapter

我无法使用像 "jack jones" 这样的两个词类型进行搜索,它只适用于单个词 ("jack") 我该如何解决?这是我的代码:

private void searchData(String s) {
        adapter.stopListening();
        query = notebookRef.whereEqualTo("isim", s.toLowerCase()).orderBy("isim", Query.Direction.DESCENDING);
        FirestoreRecyclerOptions<Profiles> options = new FirestoreRecyclerOptions.Builder<Profiles>()
                .setQuery(query, Profiles.class)
                .build();
        adapter = new FirestoreAdapterForProfiles(options);
        recyclerView.setAdapter(adapter);
        adapter.startListening();


    }

好的,我发现这里是我更改的代码:

query = notebookRef.orderBy("isim").startAt(s.toLowerCase()).endAt(s+"\uf8ff");