Closes #1212 Search by Document type in production does not actually filter by document type (Rebuild of CouchDB indexes must be done along with syncdb)