meteorhacks / search-source

Reactive Data Source for Search
MIT License
146 stars 33 forks source link

docTransform option + return cursor from getData #12

Closed Sewdn closed 9 years ago

Sewdn commented 9 years ago

Add optional configuration setting (docTransform) to transform search results documents. The current transform option adds the possibility to transform the fields of the found documents, but there is now way to add document helpers (model helpers) to the documents.

Also add the ability to return a cursor (getData) instead of a hydrated array.

Sewdn commented 9 years ago

Sorry, I also changed the package info in this pullrequest...

arunoda commented 9 years ago

Try to add the changes to the README as well.

Sewdn commented 9 years ago

Ok, all done!

arunoda commented 9 years ago

@Sewdn if(options.docTransform) also needs a curly brace :)

Sewdn commented 9 years ago

Sorry. Old habits die hard ;)

arunoda commented 9 years ago

Great. Thanks.