Add support for document_type filter

Allow filtering by elasticsearch's _type field. This will be used for finder-frontend.
Why is the commit moved to after adding each document?  Calling it for every document will slow indexing down.