title: Search Firebase Database using key with search bar
body: <p><a href="https://i.stack.imgur.com/CYmlD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CYmlD.png" alt="enter image description here"></a></p>
  
  <p>I have data in firebase database and the data is structured as shown in the attached image. I am trying to search using search bar to look for the name of recipe(s) when user enter search query in the app. Indexing rules currently set also shown in the attached image. Here is my code:</p>
  
  <pre><code>self.findRecipes(text: "Lemon")
  
  func findRecipes(text: String)-&gt;Void{
  
      ref.child("Categories").queryOrdered(byChild: "recipeName").queryStarting(atValue: text).queryEnding(atValue: text+"\u{f8ff}").observe(.value, with: { snapshot in
  
          print(snapshot)
  
      })
  }
  </code></pre>
  
  <p>The output in the console is </p>
  
  <pre><code>Snap (Categories) &lt;null&gt; 
  </code></pre>
  
  <p>Any help? </p>