I've read this link Firestore: How to get random documents in a collection but it looks like my problem is different. Because these solutions are not good for queries with where conditions.
My collection looks like this:
I have 140K documents in this collection. I want to get random X amount of documents filtered by any category.
My code looks like this (Swift):
Firestore.firestore().collection("quotes")
.whereField("categories", arrayContainsAny: ['change'])
.limit(to: 25)
This code always returns the same documents. How can I get random documents filtered by category?