Closed DylanKojiCheslin closed 7 years ago
:+1: facing similar issue. I think there's engine.fields method just like engine.sort, but not sure how to use it. Anyone?
http://matteodem.github.io/meteor-easy-search/docs/engines/ Here's the docs. Can you let me know what is unclear to you?
@matteodem I checked the docs, but it's unclear how the return value of fields method in MongoDB engine configuration should look like.
Appreciate your reply!
It should be the same as here http://docs.meteor.com/api/collections.html#fieldspecifiers. does that work?
Great! I was confused because the fields property in Index expects an array. Thanx @matteodem, I think that resolves the issue!
Cool, I'll add docs to clarify that.
Hi I'm trying to only return the portions of the data needed from a collection. But I can't figure out how to do this in easy search.
This is a comparable Collection find. note that data is only return data for some fields, using the options fields property to limit
here is the index I have now. it works fine other than returning all the fields