Elasticsearch answer in Firebase (flashlight)

I am trying to set up an example flashlight for Firebase (first locally), but stuck. I managed to click search in Firebase:

enter image description here

But I do not get a response in Firebase . My app.js logs say

Connected to ElasticSearch host localhost:9200 Connecting to Firebase https://my-instance.firebaseio.com Indexing firebase/message using path "Posts" Queue started, IN: "search/request", OUT: "search/response"

... and updates me on a constantly updated index based on Firebase activity.

What am I missing?

0
source share
1 answer

I managed to get it working by changing the following in the config.js file:

Instead of the base path FB_URL and the specific paths export.path, I had to have a specific path FB_URL. It works:

exports.FB_URL   = 'https://my-instance.firebaseio.com/gmail-com';
exports.paths = [
   {
      path:  "Posts",
      index: "firebase",
      type:  "message",
   }
];

It does not mean:

exports.FB_URL   = 'https://my-instance.firebaseio.com';
exports.paths = [
   {
      path:  "gmail-com/Posts",
      index: "firebase",
      type:  "message",
   }
];

I do not know why...

+1
source

Source: https://habr.com/ru/post/1650188/


All Articles