【问题标题】:Elasticsearch response into Firebase (Flashlight)Elasticsearch 对 Firebase 的响应(手电筒)
【发布时间】:2016-02-10 02:44:23
【问题描述】:

我正在尝试为 Firebase 设置 Flashlight example(首先在本地)但被卡住了。我设法将搜索推送到 Firebase:

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

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"

...并且正在根据 Firebase 活动向我更新关于不断更新的索引。

我错过了什么?

【问题讨论】:

  • 快速检查一下,在您的日志输出中显示 my-instance,您有 Firebase 数据库的实际名称吗?
  • 正确,它是我的实际 Firebase 名称。搜索查询的推送有效:)

标签: elasticsearch firebase


【解决方案1】:

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

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

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

这不是:

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

不知道为什么……

【讨论】:

    猜你喜欢
    • 2017-05-05
    • 1970-01-01
    • 1970-01-01
    • 2016-11-11
    • 2018-01-13
    • 2014-06-17
    • 1970-01-01
    • 1970-01-01
    • 2021-08-28
    相关资源
    最近更新 更多