弹性搜索响应到Firebase(手电筒) [英] Elasticsearch response into Firebase (Flashlight)

查看:120
本文介绍了弹性搜索响应到Firebase(手电筒)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Firebase(第一个)设置



但是我没有得到Firebase 的回复。我的app.js日志说



连接到ElasticSearch主机localhost:9200
连接到Firebase https://my-instance.firebaseio .com
使用路径帖子索引firebase /消息
队列启动,IN:search / request,OUT:search / response



...并正在更新我关于基于Firebase活动的不断更新的索引。



我缺少什么?

解决方案

通过更改config.js文件中的以下内容,我设法使其工作:



而不是基本的FB_URL路径和特定 exports.paths ,我必须具有一个特定的FB_URL路径。
这样做:

  exports.FB_URL ='https://my-instance.firebaseio.com/gmail- com公司; 
exports.paths = [
{
路径:帖子,
索引:firebase,
类型:消息,
}
];

这不是:

  exports.FB_URL ='https://my-instance.firebaseio.com'; 
exports.paths = [
{
路径:gmail-com / Posts,
索引:firebase,
类型:message,
}
];

不知道为什么...


I am trying to set up the Flashlight example for Firebase (first locally) but got stuck. I manage to push the search to Firebase:

But I do not get a response post into 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 is updating me about the constantly updating index based on Firebase activity.

What am I missing?

解决方案

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

Instead of a basic FB_URL Path and a specific exports.paths I had to have a specific FB_URL Path. This works:

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

This does not:

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

Not sure why...

这篇关于弹性搜索响应到Firebase(手电筒)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆