I am trying to fetch data from firestore. When I type in the editText the RecyclerView doesn't show results. but when I remove the text from
@Override
public boolean onQueryTextChange(String newText) {
mStore.collection("Featured").whereGreaterThanOrEqualTo("name", newText).get().addOnCompleteListener(new OnCompleteListener < QuerySnapshot > () {@Override
public void onComplete(@NonNull Task < QuerySnapshot > task) {
if (task.isSuccessful()) {
for (DocumentSnapshot doc: task.getResult().getDocuments()) {
Items f1 = doc.toObject(Items.class);
mItemList.add(f1);
mAdapter.notifyDataSetChanged();
Log.d("SearchItem", f1.getName());
}
}
}
});
return true;
}