Loïc
10/19/2021, 2:29 PMKishore Nallan
10/19/2021, 2:36 PMLoïc
10/19/2021, 2:44 PM3. Backfilling data (optional)
This extension only syncs data that was created or changed in Firestore, after it was installed. In order to backfill data that already exists in your Firestore collection to your Typesense Collection:
Create a new Firestore collection called typesense_sync through the Firestore UI.
Create a new document with the ID backfill and contents of {trigger: true}
This will trigger the backfill background Cloud function, which will read data from your Firestore collection and create equivalent documents in your Typesense collection
However, there is no way to retrieve the documents from a Firebase collection NOT named ``typesense_sync`` ?Loïc
10/19/2021, 2:45 PMJason Bosco
10/19/2021, 3:17 PMLoïc
10/19/2021, 3:44 PMresult
object that manipulate the search result Map<String, dynamic>?
Future<Map<String, dynamic>> search(
Map<String, dynamic> searchParameters) async {
return await _apicall.get(
'$_endPoint/search',
queryParams: searchParameters,
shouldCacheResult: true,
);
}
Harpreet Sangar
10/19/2021, 4:19 PMLoïc
10/19/2021, 4:29 PMLoïc
10/19/2021, 4:31 PMJason Bosco
10/19/2021, 4:33 PMLoïc
10/19/2021, 9:15 PM{
"facet": false,
"index": true,
"name": "locationGeoCode",
"optional": false,
"type": "geopoint"
},
Loïc
10/19/2021, 9:16 PMJason Bosco
10/19/2021, 10:24 PMJason Bosco
10/19/2021, 10:25 PMlocationGeoCodeArray: [1, 1]
in Firestore and sync that to Typesense and use that to filter as wellLoïc
10/19/2021, 10:25 PMLoïc
10/19/2021, 10:26 PMJason Bosco
10/19/2021, 10:27 PMLoïc
10/19/2021, 10:27 PM