A pluggable integration with ElasticSearch to provide advanced content searches in Firebase.
This script can:
search/request and reads results from search/result)git clone https://github.com/firebase/flashlightnpm installnode app.js (run the app)Check out the recommended security rules in example/seed/security_rules.json. See example/README.md to seed and run an example client app.
If you experience errors like {"error":"IndexMissingException[[firebase] missing]","status":404}, you may need
to manually create the index referenced in each path:
curl -X POST http://localhost:9200/firebase
Read example/index.html and example/example.js for a client implementation. It works like this:
/search/request which has the following keys: index, type, and query/search/response for the reply from the serverThe query object can be any valid ElasticSearch DSL structure (see More on Queries).
Check out this great tutorial on querying ElasticSearch. And be sure to read the ElasticSearch API Reference.
cd flashlightheroku loginheroku create (add heroku to project)heroku addons:add bonsai (install bonsai)heroku config (check bonsai instance info and copy your new BONSAI_URL - you will need it later)heroku config:set FB_NAME=<instance> FB_TOKEN="<token>" (declare environment variables)git add conig.js (update)git commit -m "configure bonsai"git push heroku master (deploy to heroku)heroku ps:scale worker=1 (start dyno worker)After you've deployed to Heroku, you need to create your initial index name to prevent IndexMissingException error from Bonsai. Create an index called "firebase" via curl using the BONSAI_URL that you copied during Heroku deployment.
curl -X POST <BONSAI_URL>/firebase (ex: https://user:[email protected]/firebase)Submit questions or bugs using the issue tracker.
For Firebase-releated questions, try the mailing list.
MIT LICENSE Copyright © 2013 Firebase [email protected]
Content type
Image
Digest
sha256:9a6f25dc3…
Size
281.2 MB
Last updated
almost 11 years ago
docker pull astopy/flashlight:camallen_stargazing