@@ -190,7 +190,7 @@ Here are a couple quick optimizations you can make to improve scale:
190190 as simple as creating two Flashlight workers, opening ` app.js ` in each,
191191 and commenting out SearchQueue.init() or PathMonitor.process() respectively.
192192 * When your service restarts, all data is re-indexed. To prevent this,
193- you can use pathBuilder as described in the next section.
193+ you can use refBuilder as described in the next section.
194194 * With a bit of work, both PathMonitor and SearchQueue could be adapted
195195 to function as a Service Worker for
196196 [ firebase-queue] ( https://github.com/firebase/firebase-queue ) ,
@@ -199,7 +199,7 @@ Here are a couple quick optimizations you can make to improve scale:
199199
200200Use refBuilder to improve indexing efficiency
201201---------------------------------------------
202- In ` config.js ` , each entry in ` paths ` can be assigned a ` pathBuilder `
202+ In ` config.js ` , each entry in ` paths ` can be assigned a ` refBuilder `
203203function. This can construct a query for determining which records
204204get indexed.
205205
@@ -218,7 +218,7 @@ exports.paths = [
218218 index : "firebase",
219219 type : "message",
220220 fields: ['message_body', 'tags'],
221- pathBuilder : function(ref, path) {
221+ refBuilder : function(ref, path) {
222222 return ref.orderByChild('timestamp').startAt(Date.now());
223223 }
224224 }
0 commit comments