(#4)  Add filter function option

Add an option to filter out documents from the search index.  
This is for issue #4.
Ah sorry, I understand what you mean now.  No, map/reduce does not export the `tryCode` function.