I'm trying to fetch a document from cloud firestore collection and display them in recycler view but here I'm unable to fetch the document with specific string. for ex- if my string is rice then all document items containing rice as name should be fetched.
I tried using this query:-
query = db.collection("Items").whereEqualTo(txt,true);
but it doesn't work I'm really confused any help will be appreciated.
Here's the screenshot of my database: