I'm trying to query my firestore like,
db.collection("products").where("price",">=","200").orderBy("relevance")
But it's giving an error that, first orderBy must have the field that's been used in range comparison in my case 'price'. As per the official firebase documentation it's given that
If you include a filter with a range comparison (<, <=, >, >=), your first ordering must be on the same field.
In my scenario it's important to have this kind of query, is there any way to achieve this?