Searches over referenced documents, closes #7