Create an in-memory index object.
the pointer for the new index
the options for opening the index, or NULL
0 or an error code