add

fun add(id: String, value: T)

Call this after you've successfully added a document to the index, to record what value you just set the field to.