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!
Sessionvariable)searchString{{#each chosenFiles}}wherechosenFilesis your helper name.Create an helper
chosenFileswhere you call your search function and provide it a cursor from your file collection.Create the
filterFilesfunction where, basically, you get back yoursearchStringand use it to filter your results, returning everything if yoursearchStringis empty. Here is an example using reactive-dict:Attach the
searchStringdefinition to, for instance, yourkeyUpevent 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