After reading the Firebase documentation, I understood that the logical structure in NoSql is totally different than in SQlite. I can do basic searches ordered with:
orderByChild()
, orderByKey()
and orderByValue()
and filtered with
startAt()
, endAt()
and equalTo()
.
I'm building an app similar to the Bible. The app project requires that there be search filters, such as:
- "Starting with": ex: Excelent
- "Containing": ex: Exchent
- "All Words": ex: Jesus is the same
- Exact Phrase: ex: Jesus is the same
The Firebase Realtime Database function is excellent for fixing typing errors or missing text, once the broadcast changes on all devices, this is undoubtedly something phenomenal.
Considering the image:
See the structure of JSON in firebase
- Is it possible to do these search filters with Firebase?
- What is the best way to build these filters using Firebase's own API?
- Would I have to use these same filters with the offline data?