title: Advanced search with Firebase on Android
body: <p>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:</p>
  
  <p><code>orderByChild()</code>, <code>orderByKey()</code> and <code>orderByValue()</code> and filtered with <code>
  startAt()</code>, <code>endAt()</code> and <code>equalTo()</code>.</p>
  
  <p>I'm building an app similar to the Bible. The app project requires that there be search filters, such as:</p>
  
  <ul>
  <li>"Starting with": ex: <strong>Exce</strong>lent</li>
  <li>"Containing": ex: Ex<strong>che</strong>nt<br></li>
  <li>"All Words": ex: <strong>Jesus</strong> is the <strong>same</strong><br></li>
  <li>Exact Phrase: ex: <strong>Jesus is the same</strong><br></li>
  </ul>
  
  <p>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.</p>
  
  <p>Considering the image:</p>
  
  <p><a href="https://i.stack.imgur.com/1DkDu.jpg" rel="nofollow noreferrer">See the structure of JSON in firebase</a></p>
  
  <ol>
  <li>Is it possible to do these search filters with Firebase?</li>
  <li>What is the best way to build these filters using Firebase's own API?</li>
  <li>Would I have to use these same filters with the offline data?</li>
  </ol>