Anybody can help me out on this? I have a group of PDF documents that I would like to be able to search. I've attempted use matteodem:easy-search and meteorhacks:search-source, but both of them only handle Meteor Collections and not FS. I can get both of these packages working with regular text. I just want to return the results of the search query based off the name field in the FS Collection.
Any help would be greatly appreciated!
Session
variable)searchString
{{#each chosenFiles}}
wherechosenFiles
is your helper name.Create an helper
chosenFiles
where you call your search function and provide it a cursor from your file collection.Create the
filterFiles
function where, basically, you get back yoursearchString
and use it to filter your results, returning everything if yoursearchString
is empty. Here is an example using reactive-dict:Attach the
searchString
definition to, for instance, yourkeyUp
event so that you get a reactive search.I am not 100% sure that "original.name" is the right way to access the name field since I don't use collectionFS but it seems it is, according to the doc