Required fields

Is it possible to define required fields in the mapping for a document type? So if you try to index a document and it's missing the required fields, you would get an error message?