Create a new indexer instance
where to store the indexer instance
to the directory where the packfile should be stored
the options to create the indexer with
0 or an error code.