Skip to content

Commit 2c85df5

Browse files
author
katowulf
authored
Merge pull request googlearchive#103 from hyperbrave/master
refBuilder documentation
2 parents 439571a + 53f54be commit 2c85df5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

200200
Use 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`
203203
function. This can construct a query for determining which records
204204
get 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

Comments
 (0)