#NEWLINE# def create_search_schema( self , schema , content ) : #NEWLINE# #INDENT# '\n        Create a new Solr schema for Yokozuna.\n\n        :param schema: name of Solr schema\n        :type schema: string\n        :param content: actual defintion of schema (XML)\n        :type content: string\n\n        :rtype boolean\n        ' #NEWLINE# if ( not self . yz_wm_schema ) : #NEWLINE# #INDENT# raise NotImplementedError ( 'Search 2.0 administration is not supported for this version' ) #NEWLINE# #UNINDENT# url = self . search_schema_path ( schema ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/xml' , #NEWLINE# #UNINDENT# } #NEWLINE# ( status , header , body ) = self . _request ( 'PUT' , url , self , content ) #NEWLINE# if ( status != 204 ) : #NEWLINE# #INDENT# raise RiakError ( 'Error creating Search 2.0 schema.' ) #NEWLINE# #UNINDENT# return True