For example:
import static org.compass.core.mapping.rsem.builder.RSEM.*;
conf.addResourceMapping(
resource("c")
.add(id("id"))
.add(property("value1"))
.add(property("value2").store(Property.Store.YES).index(Property.Index.ANALYZED))
.add(property("value3").store(Property.Store.COMPRESS).index(Property.Index.ANALYZED))
.add(property("value4").store(Property.Store.YES).index(Property.Index.NOT_ANALYZED))
.add(property("value5").store(Property.Store.YES).index(Property.Index.ANALYZED).converter("mydate"))
.add(property("value6"))
);