Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Firebase Cloud Functions support #161

Open
bevbomb opened this issue May 8, 2017 · 6 comments
Open

Firebase Cloud Functions support #161

bevbomb opened this issue May 8, 2017 · 6 comments

Comments

@bevbomb
Copy link

bevbomb commented May 8, 2017

We all know that Google has extended its cloud functions to work quite well in Firebase and at the moment they have a full text search example but it uses a third party service to perform searches called Algolia.

I really like the way elastic search works and i would love to be able to run this project using Firebase cloud functions.

Do you think it's possible to get this working in Firebase cloud functions? And do you think you'll extend the deployment support for it?

Thanks in advance.

@katowulf
Copy link
Contributor

katowulf commented May 9, 2017

The code for the Functions implementation is terribly simple. It would essentially just be switching out the Algolia call for a call to ES.

Unlikely that we'll extend this lib to work with Functions--there's really no need for this if you're using Functions.

@TrashPanda
Copy link

TrashPanda commented May 17, 2017

Hi, I am new to both elasticsearch and firebase function. I have made the flashlight working on my local machine but currently also considering the option of using cloud functions to handle that. I might be wrong here. From what I see in Algolia example, it seems that it indexes the the new object by adding it to the Algolia whenever there is a write. But what about delete and existing records? From what I tested flashlight takes care of the the every aspect data pretty well. There are also tuning options. Is it possible to explain more on how to incorporate it into cloud functions? Sorry for the noobish question if there is an obvious answer. Thanks!

@wonsuc
Copy link

wonsuc commented May 30, 2017

Is there any way to find working example? I think most people who are using firebase would need ES+Cloud functions integration since firebase search query is too incomplete.

@NicholasMKim
Copy link

+1 for firebase functions support

@yasir-netlinks
Copy link

yasir-netlinks commented Dec 10, 2017

@katowulf Hi there, I am building a mobile app using React Native. I have been trying to understand what's really needed to integrate Elasticsearch, I came across some tutorials where they add Elasticsearch certified by bitnami and use Cloud functions. This is not free and requires money later on. Now I'm not sure if Flashlight is the solution, and I'm confused about flashlight too even though I read docs more than once. Do I clone this to my project ? Or do I learn from what has been done in Flashlight and do the same in my project (I'm assuming the files in lib folder) !? I really need help / at least a better explanation to guide me through this. Also you have mentioned : there's really no need for this if you're using Functions What did you mean! If we are using cloud functions, there is no need to use flashlight ?

@bevbomb
Copy link
Author

bevbomb commented Dec 11, 2017

I’ve had a production version of my elasticsearch running for a couple of months now. I deployed an elasticsearch through Google Cloud launcher as a compute engine. I’ve been using HTTPS to make calls to the elasticsearch server using the elasticsearch.js framework and firebase functions. When ever something is triggered in functions it handles the add/update/deletion of any elastic indexes. It’s terribly easy to do and you won’t need this framework.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants