}
}
}
// Add the hibernate history entities programmatically:
final SearchMapping mapping = new SearchMapping();
mapping.entity(HistoryEntry.class).indexed() //
.property("id", ElementType.METHOD).documentId().name("id")//
.property("userName", ElementType.METHOD).field().index(Index.UN_TOKENIZED).store(Store.NO) //
// Must be tokenized for using lower case (MultiFieldQueryParser uses lower case strings):
.property("className", ElementType.METHOD).field().index(Index.TOKENIZED).store(Store.NO) //
.property("timestamp", ElementType.METHOD).field().store(Store.NO).dateBridge(Resolution.MINUTE) //