title: Setting up Flashlight on Heroku for ElasticSearch with new Firebase
body: <p>My goal is to connect Firebase with ElasticSearch for indexing so that I can implement "like" queries when searching usernames in my iOS app. From what I've read this is the best solution, and I want to tackle it this way early in order to be scalable instead of brute-forcing it.</p>
  
  <p>To achieve this, I'm trying to deploy the <a href="https://github.com/firebase/flashlight" rel="noreferrer">flashlight</a> app that Firebase developers have provided for us onto a Heroku, but I'm confused on how to go about doing it. Please correct me where I'm wrong, I'm fairly new to the Heroku ecosystem, ElasticSearch, and nodejs.</p>
  
  <p>I currently have a Heroku account, and have the toolbelt and nodejs/npm installed on my computer (Mac).  I've run the following commands:</p>
  
  <pre><code>git clone https://github.com/firebase/flashlight
  cd flashlight
  heroku login
  heroku create
  heroku addons:add bonsai
  heroku config
  </code></pre>
  
  <p>(I was able to get my bonsai url successfully with the heroku config command)</p>
  
  <p>The next step is</p>
  
  <pre><code>heroku config:set FB_NAME=&lt;instance&gt; FB_TOKEN="&lt;token&gt;"
  </code></pre>
  
  <p>But I don't really understand what FB_NAME (my guess is Firebase app name, but is that the name of my app? or with the letters/numbers following it due to the new Firebase setup where it's no longer <code>app_name.firebaseio.com</code> but <code>app_name-abc123.firebaseio.com</code>) and what is FB_TOKEN? (is it a key or something in my plist I download?)</p>