Greetings! I'm working through your example (thank you) however running into problems getting the transform to fire.
The docTransform hits every time. But never the transform.
Any ideas?
`Template.SearchResults.helpers({
offender: function() {
return OffenderSearch.getData({
transform: function (matchText, regExp) {
console.log('hit transform');
return matchText.replace(regExp, "<b>$&</b>");
},
docTransform: function(doc) {
console.log('hit docTransform');
return doc;
}
});
}`
Greetings! I'm working through your example (thank you) however running into problems getting the transform to fire.
The docTransform hits every time. But never the transform.
Any ideas?
`Template.SearchResults.helpers({
offender: function() {
}`