Add support for document_type filter

Allow filtering by elasticsearch's _type field. This will be used for finder-frontend.
`documents` would be a better variable name than `attributes`.  (sample_document_attributes would be better named "sample_documents", for that matter, but you didn't introduce that :) )