I have a pretty large collection of documents in Firestore with random IDs and each one of those documents has two fields, a name and a description. I want my app to allow the user to enter a series of characters and then present to him all the documents which contain that sequence of chars in let's say the name field. Is this feasible using Firebase & its queries and if so, could you give me a code example in Kotlin or Java? I know there are some methods such as hasChild()
or child("child name").exists()
but since i don't yet know which document the user is looking for i can't use them if i'm not mistaken.
For example, if i had a collection of 3 documents which had the following names ("mike","michael","dave") and the user entered "mi", i'd like to be able to retrieve the documents whose names are "mike" & "michael".