title: Implement Searchbar to firebase recyclerview to search for nodes android studio
body: <p>I'm trying to implement a search bar which will search the nodes and not the child. I've been able to achieve search if a node has a child then performing query and searching the value of the particular child. I'm not able to implement the same to search for the node value. Could anyone please help me know if this is possible an if yes how to go about it? </p>
  
  <p>The code I'm using for implementing a search bar based on child value is</p>
  
  <pre><code>FirebaseRecyclerOptions&lt;Contacts&gt; options = new FirebaseRecyclerOptions.Builder&lt;Contacts&gt;()
              .setQuery(UsersRef.orderByChild("username").startAt(search).endAt(search + "\uf8ff"), Contacts.class)
              .build();
  </code></pre>
  
  <p>With this code I'm able to search the database by entering the usernames in the search bar. </p>
  
  <p>I woold like to achieve the search function based on node, i.e. when I enter the value of node in the searchbar, the query should return that particular node. Is that possible?</p>