# Accessing Elasticsearch index from flutter mobile app

**URL:** <https://discuss.elastic.co/t/accessing-elasticsearch-index-from-flutter-mobile-app/259567>\
**Category:** Elasticsearch\
**Created:** [December 24, 2020, 8:46am UTC](https://discuss.elastic.co/t/accessing-elasticsearch-index-from-flutter-mobile-app/259567 "2020-12-24T08:46:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aimn\_Blbol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aimn_blbol/32/81366_2.png) [@Aimn\_Blbol](https://discuss.elastic.co/u/Aimn_Blbol)\
**Post date:** [December 24, 2020, 8:46am UTC](https://discuss.elastic.co/t/accessing-elasticsearch-index-from-flutter-mobile-app/259567/1 "2020-12-24T08:46:57Z")

</div>

I have created users Elasticsearch index in the Google Cloud Platform to integrate firestore cloud functions with Elasticsearch so that when a user is created / updated / deleted, the change will be reflected in the Elasticsearch users index. Now I need to search for users in flutter based on their geolocation. I suppose this will required using username and password in the flutter app.

- Is it save to use Elasticsearch username, and password in flutter?
- What is the best way to handle this.
- Which flutter library is suitable for this job.

I was thinking to create a callable function in firebase and place all logic there. Any ideas?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 21, 2021, 8:47am UTC](https://discuss.elastic.co/t/accessing-elasticsearch-index-from-flutter-mobile-app/259567/2 "2021-01-21T08:47:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
