I'm trying to search the 'author_name' field in my firestore database that 'CONTAINS' any of the keywords For example,
fields": {
"Title": {
"stringValue": "Fire in the gate"
},
"author_name": {
"stringValue": "Stacey"
},
"story": {
"stringValue": "fire was in the gate run run run"
}
}
in the given entry, if the term "Stace"`` or ``"Sta"`` or "cey"
is entered it, should return the data that has the author_name
field which CONTAINS
the given word.
I'm trying to implement this using the where()
clause in firebase which helps in building complex queries.
Is there any other way to implement this?
Note: I'm using a low-code tool which mandates usage of REST API. I can't use any custom code in the app to implement this search. So, the search should be done on the firestore itself