fun index(indexer: (BlockchainIndexWriter) -> Unit): Unit
Provides a function to index elements and committing them. If an exception is thrown in the function, the write is rolled back.
indexer - function indexing data to be committed
indexer