Merge pull request #8 from TravisEvashkevich/master

Approved filtering
Fix crash when searching without a document