Search documents by types