i was planning to have a full text search feature for the String
name field of my document, but from the research i have done , it seems like searching text with firestore is not possible, then i come up with solution which is creating a new array field to store keyword in document, like this
and then i called it using arracVontains, with searchedKeyword as the inputted text from user
_firestore
.collection(itemOrderPath)
.where("keyword", arrayContains:searchedKeyword)
Now, i'm quite hesitant on wether it is okay to do it like this(will there be huge impact on my app)? or is there any better way to do this? Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…