def collection_set_options(collection_name, options, **kwargs):
 for option in list(options.keys()):
  if (option not in CREATION_ONLY_OPTION):
   raise ValueError((('Option ' + option) + " can't be modified after collection creation."))
 options_string = _validate_collection_options(options)
 _query((('admin/collections?action=MODIFYCOLLECTION&wt=json&collection=' + collection_name) + options_string), **kwargs)

def collection_set_options ( collection_name , options , ** kwargs ) : for option in list ( options . keys ( ) ) : if ( option not in CREATION_ONLY_OPTION ) : raise ValueError ( ( ( 'Option ' + option ) + " can't be modified after collection creation." ) ) options_string = _validate_collection_options ( options ) _query ( ( ( 'admin/collections?action=MODIFYCOLLECTION&wt=json&collection=' + collection_name ) + options_string ) , ** kwargs )
change collection options additional parameters may be passed .