pointer to the hibon instance
The index to put the Document at
pointer to the document buffer
length of the buffer
auto sub_hibon = new HiBON; sub_hibon["sub_doc"] = "test"; const doc = Document(sub_hibon); HiBONT h; int rt = tagion_hibon_create(&h); assert(rt == ErrorCode.none, "could not create hibon"); const key = 0; rt = tagion_hibon_add_index_document(&h, key, &doc.data[0], doc.data.length); HiBON string_hibon = cast(HiBON) h.hibon; assert(string_hibon[key].get!Document == doc);
Add document to hibon by index