Closed jamauro closed 5 years ago
It should still work. On what environment is the code run? Server and / or client?
Cool. I created the Collection, Index, and the collection helper in the lib/collections
folder so those should be running on both server and client. Anything that jumps out at you with the code above or is there any other detail / logs that I can provide that might help diagnose?
okay so now I see it. You can't search for the convertedName (see fields configured as convertedName
), because easy-search uses a mongo selector which does a search on the mongo documents.
I'd recommend having a denormalization process before inserting or updating a doc or some other way to have that field available in the actual document.
I see. Can you help me understand how my use of convertedName
differs from the fullName
in the example in the docs?
I guess I should add docs to explain that the "fullName" is an actual field on the mongodb document and that the transform is only useful for reading the data.
Got it. Thanks for your help!
I'm following the Usage with collection-helpers example in the guide: http://matteodem.github.io/meteor-easy-search/docs/recipes/
Does anyone have an example of how they've gotten easy-search to work with collection-helpers? I can't seem to return any search results when searching on a composite field created with collection-helpers.
Here's what my setup looks like:
Relevant versions
Code in my
/lib/collections folder