Hi,
sorry for the noob question but I am pretty new to firebase.
I am building a website and, since most of the data we store is text, I would like to use firebase. To improve the search system, I decided to use elasticsearch.
So I created my firebase database, installed the flashlight module and elasticsearch (on my local environment for the moment, apart of firebase of course).
When I start the app.js in the flashlight I get this error:
/Library/WebServer/Documents/flashlight/node_modules/firebase/auth-node/auth.js:54
throw new Error('Service account must contain a "private_key" field');
I created the service for elasticsearch and I have the key, but I don't understand where should I add this key in the config.js file.
I put this in the export.FB_SERVICE_ACCOUNT :
exports.FB_SERVICEACCOUNT = {
serviceAccount: {
projectId: "elastic search",
privateKey: "myPrivateKey"
},
};
what am I doing wrong?
Thanks so much and again sorry for the noob question. Just starting now with firebase, it's very easy to work with, I just would like to learn how to set up with elasticsearch to be able to make more advanced queries(like for example when you are typing and so use %like% how the "old sql style)
Cheers!