title: How do I search in Firebase Database
body: <p>How do I search for a user in unity using Firebase Database without using Elastic Search?</p>
  
  <p>So I found this <a href="https://www.youtube.com/watch?v=b_tz8kbFUsU" rel="nofollow noreferrer">Tutorial</a> which helped me out on Android Studio And I would like to know how can I replicate this for Unity?</p>
  
  <p>(My Terrible Attempt)</p>
  
  <pre><code>public void SearchUser()
  {
      FirebaseDatabase.DefaultInstance.RootReference.Child("user_id").OrderByChild("username").StartAt(searchField.text).EndAt(searchField.text + "\uf8ff")
            .GetValueAsync().ContinueWith(task =&gt; {
      if (task.IsFaulted) {
        // Handle the error...
      }
      else if (task.IsCompleted) {
        DataSnapshot snapshot = task.Result;
                    // Do something with snapshot...
                    Debug.Log("Found " +snapshot.Value.ToString());
      }
    });
  
  }
  </code></pre>