Entonces tengo una consulta como esta.
firestore() .collection('posts') .where('category', '==', category) .orderBy('price', 'asc') .startAt(minPrice) .endAt(maxPrice) .orderBy('title', 'asc') .startAt(searchString) .endAt(`${searchString}\uf8ff`) .limit(10) .get() .then(res => { console.log(res.docs); setPosts(res.docs); })Donde filtro primero por categoría y luego quiero filtrar por precio en y entre el precio mínimo y máximo
Después de eso, también quiero ejecutar este filtro.
.orderBy('title', 'asc') .startAt(searchString) .endAt(`${searchString}\uf8ff`)Para obtener la coincidencia de cadena parcial en el título
La consulta se ejecuta sin ningún error, pero siempre devuelve una matriz vacía. Hay alguien que me puede ayudar con este problema.