public void UpdateIndexDefinitionWithoutUpdatingCompiledIndex(IndexDefinition definition) { var fixedName = FixupIndexName(definition.Name); indexDefinitions.AddOrUpdate(fixedName, s => { throw new InvalidOperationException("Cannot find index named: " + definition.Name); }, (s, indexDefinition) => definition); WriteIndexDefinition(definition); }