googlearchive / flashlight

A pluggable integration with ElasticSearch to provide advanced content searches in Firebase.
http://firebase.github.io/flashlight/
756 stars 144 forks source link

Get the record fields #138

Open MohamedHatemAbdu opened 7 years ago

MohamedHatemAbdu commented 7 years ago

I have a database consists of posts where any post consists of :- { title : "", Body :"" TimeStamp :"" Author :"" }

and in the config.js, I defined my paths as follow

exports.paths = [ { path : "posts", index: "firebase", type : "thing", fields: ['title'] }}

the result of the search contains:-

_source { title : "" }

How do i make the ES to return all the post document fields not only the "title" field?