Algolia Search in Firebase Cloud Firestore using Android

  Рет қаралды 13,680

Alex Mamo

Alex Mamo

Күн бұрын

These are my new projects: www.firebase-e... and www.firebase-c...
This is a tutorial on how to use Algolia Full-Text Search in Firebase Cloud Firestore using Android.
Wanna support me? Join me: bit.ly/alex-me...
Useful links for this video:
StackOverflow Code: stackoverflow....
---
Firestore Search Solution: firebase.googl...
Algolia Getting Started: www.algolia.co...
Algolia Add Objects: www.algolia.co...
Algolia Search: www.algolia.co...
@Firebase @GoogleDevelopers @Kotlin @AndroidDevelopers
#firebase #FirebaseExpert #LearnFirebase #firebasetutorial #firebasecourse #FirebaseTrainer #FirebaseCoach
Master Class Academy: www.mcacademy.ro/
Personal Website: www.alexmamo.ro
Follow me on:
Medium: / alex.mamo
KZbin: / @alexmamo
LinkedIn: / alex-mamo-98460423
GitHub: github.com/ale...
Twitter: / alex__mamo
Instagram: / alex__mamo
Stackoverflow: stackoverflow....
#BetterTogether 🔥

Пікірлер: 48
@rexrex8664
@rexrex8664 5 жыл бұрын
Wow. Thank you! I wasted my time reading at firestore documents for this function. I am so disappointed that they did not include a function like this one. Damn google.
@AlexMamo
@AlexMamo 5 жыл бұрын
You're welcome Rex! If you think that my video was helpful, give it a try and subscribe to my channel. I'd appreciate it. Thanks!
@mcifci
@mcifci 3 жыл бұрын
🤣🤣
@brandophiri3618
@brandophiri3618 5 жыл бұрын
can you please make a video on how to achieve pagination with algolia search and recyclerview android
@AlexMamo
@AlexMamo 3 жыл бұрын
If I'll find some free time, I will. In the meanwhile check firebase.google.com/products/extensions/firestore-algolia-search
@nosikuminyoi18
@nosikuminyoi18 3 жыл бұрын
Hello, great video. But how do i add a filter to the query, for example get search results with type:Sports
@AlexMamo
@AlexMamo 3 жыл бұрын
I think this article will help: medium.com/firebase-tips-tricks/how-to-filter-firestore-data-cheaper-705f5efec444
@ryanmechery7373
@ryanmechery7373 2 жыл бұрын
I don't have much experience with asynchronous programming and am confused on how to get data from asyncSearch in the new algolia documentation. If I try and access data from the CompletableFuture object, Android returns NetworkOnMainThreadException.
@AlexMamo
@AlexMamo 2 жыл бұрын
Without seeing your code, I cannot be much of a help. So please post a question on StackOverflow, so I or other developers can help you.
@mistermom2847
@mistermom2847 2 жыл бұрын
hi there! could i ask at 9.56 where is the context within the new arrayadapter coming from?
@AlexMamo
@AlexMamo 2 жыл бұрын
It is defined as Context context = getApplicationContext(); in the activity class.
@yilmaztuzen8918
@yilmaztuzen8918 2 жыл бұрын
İf i duplucate my all data another thirty party why i continue using firebase? My all data in algolia. Can i use it for complate database?
@AlexMamo
@AlexMamo 2 жыл бұрын
No, you cannot. Alogia doesn't offer what does Firestore. It only applies to search.
@terlanabaszade9221
@terlanabaszade9221 2 жыл бұрын
Hi Alex. Can you make it with kotlin?
@AlexMamo
@AlexMamo 2 жыл бұрын
If I'll find some free time, perhaps I will do it with Kotlin too.
@mohamedayad70
@mohamedayad70 2 жыл бұрын
what if my firestore document isn't that simple ? I mean if it is a Product (with name , description , image ..etc ) , how can I convert the JSONObject to Product.clas in order to add it in a list then I can pass that list to a recyclerView adapter ? and thank you for your help with your great videos all the time
@AlexMamo
@AlexMamo 2 жыл бұрын
You can use the GSON library as explained here stackoverflow.com/questions/24322776/how-to-convert-a-java-object-to-a-jsonobject
@mohamedayad70
@mohamedayad70 2 жыл бұрын
@@AlexMamo sorry I didn't get it
@AlexMamo
@AlexMamo 2 жыл бұрын
@@mohamedayad70 You can use a library to convert an object of type Product to a JSONObject, if this is what you need.
@mohamedayad70
@mohamedayad70 2 жыл бұрын
@@AlexMamo no , I want to parse the jsonobject to a product Because my Firestore documents are products so I want to get the product and add it to list so I can show it in a recyclerview And again thanks for your interesting ❤️
@AlexMamo
@AlexMamo 2 жыл бұрын
@@mohamedayad70 In that case, there is no need to convert a document to a JSONObject, you can simply use toObject() method. This converts the document to an object of the desired class.
@kennethdelacruz9485
@kennethdelacruz9485 Жыл бұрын
What if I changed the name of my product how can I update my Json file in algolia?
@AlexMamo
@AlexMamo Жыл бұрын
I f you change a name in Firestore you should also change that in Algolia. Check the docs.
@kennethdelacruz9485
@kennethdelacruz9485 Жыл бұрын
@@AlexMamo is it possible to do this without using a 3rd party?
@AlexMamo
@AlexMamo Жыл бұрын
@@kennethdelacruz9485 Good question. The resoponse is yes, only if you're using a workaround as explained here: medium.com/firebase-tips-tricks/how-to-filter-firestore-data-cheaper-705f5efec444
@kennethdelacruz9485
@kennethdelacruz9485 Жыл бұрын
@@AlexMamo I finally solved it. First I query all the items an store it on a List myList then in my EditText TextWatcher on onTextChanged I get the text of the EditText and send it on my method search(String text) then use an if statement for(Item i: myList) if(i.getName.toLowerCase().contains(newText.toLowerCase()) newList(i); adapter.add(newList);
@AlexMamo
@AlexMamo Жыл бұрын
@@kennethdelacruz9485 Good to hear that, Kenneth.
@4212017
@4212017 5 жыл бұрын
can you make an example using algolia kotlin client pls?
@AlexMamo
@AlexMamo 3 жыл бұрын
If I'll get some free time, I'll do it.
@PDc-y3x
@PDc-y3x 2 жыл бұрын
Great tutorial Alex! By the way, if I have an existing documents from my firestore database, how can I import them to Algolia? Thanks
@AlexMamo
@AlexMamo 2 жыл бұрын
Thak you, @Heisenberg. Do you have any problem regarding that operation? If you have a hard time implementing that, please post a question on StackOverflow, using its own MCVE, so I and other Firebase developers can help you.
@neerajaggarwal4689
@neerajaggarwal4689 5 жыл бұрын
Can we do it in option menu search dialog rather than edit text
@AlexMamo
@AlexMamo 3 жыл бұрын
You can do it also there.
@neerajaggarwal4689
@neerajaggarwal4689 3 жыл бұрын
Thanks.
@al-efada9144
@al-efada9144 5 жыл бұрын
how can I do so using Recyclerview ?? please help me
@AlexMamo
@AlexMamo 5 жыл бұрын
stackoverflow.com/questions/49277797/how-to-display-data-from-firestore-in-a-recyclerview-with-android/49277842 is a recommended way in which you can retrieve data from a Cloud Firestore database and display it in a RecyclerView using FirestoreRecyclerAdapter. If you think that my video was helpful, give it a try and subscribe to my channel. I'd appreciate it. Thanks!
@juantry0015
@juantry0015 5 жыл бұрын
me salvaste tio!!
@AlexMamo
@AlexMamo 3 жыл бұрын
Good to hear that ;)
@YashSompura
@YashSompura 5 жыл бұрын
It is data duplication. Share data with other third party.
@AlexMamo
@AlexMamo 3 жыл бұрын
That's the way it works.
@geragera5342
@geragera5342 6 жыл бұрын
thanks
@AlexMamo
@AlexMamo 3 жыл бұрын
You're very welcomee, cheers!
@srinivasaradhya3995
@srinivasaradhya3995 5 жыл бұрын
YOUR CODE PLEASE
@AlexMamo
@AlexMamo 5 жыл бұрын
Check this out stackoverflow.com/questions/49596610/is-it-possible-to-use-algolia-query-in-firestorerecycleroptions/49607796 If you think that my video was helpful, give it a try and subscribe to my channel. I'd appreciate it. Thanks!
Asynchronous Firebase API - Cloud Firestore and Android
7:22
Fullstack Autocomplete Search with Algolia
12:14
Fireship
Рет қаралды 96 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 45 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 5 МЛН
Typesense vs Algolia & Elasticsearch
2:23
Changelog
Рет қаралды 6 М.
Firestore | Sorting and Limiting documents
8:31
Mafia Codes
Рет қаралды 9 М.
Algolia Firestore Instant Search
9:53
Fireship
Рет қаралды 49 М.
Firestore Search
23:59
Lucas Layman
Рет қаралды 8 М.
Getting Started With Cloud Firestore on Android - Firecasts
15:21
React Full Text Search using Algolia and Firestore
20:19
Code Radiance
Рет қаралды 2,8 М.
Firestore Security Rules - How to Hack a Firebase App
10:05
Fireship
Рет қаралды 132 М.