private void WriteIndexDefinition(IndexDefinition indexDefinition)
{
if (configuration.RunInMemory)
return;
var fixedName = FixupIndexName(indexDefinition.Name);
var indexName = Path.Combine(path, MonoHttpUtility.UrlEncode(fixedName) + ".index");
// Hash the name if it's too long (as a path)
File.WriteAllText(indexName, JsonConvert.SerializeObject(indexDefinition, Formatting.Indented, Default.Converters));
}