Skip to content

Commit

Permalink
Make it clearer that you should specify field with custom matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
dandv committed Aug 2, 2014
1 parent dfdf9c9 commit 2a5766c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Default matcher arguments: the default behavior is to create a regex against the
- `options`: `'i'` (default) to specify the regex matching options.
- `matchAll`: `false` (default) to match only fields starting with the matched string. (see below)

Custom matcher: if this is specified, the default matcher arguments will be ignored.
Custom matcher: if this is specified, the *default* matcher arguments will be ignored. (Note that you should still specify `field`.)

- `selector`: a one argument `function(match)` that takes the currently matched token suffix and returns the selector that should be added to the argument to `collection.find` to filter the autocomplete results. (**NOTE**: if you are using `$where`, the selector cannot be serialized to the server).

Expand Down

0 comments on commit 2a5766c

Please sign in to comment.