#NEWLINE# @ classmethod #NEWLINE# def script( cls , script ) : #NEWLINE# #INDENT# '\n        http://www.elasticsearch.org/guide/reference/query-dsl/script-filter.html\n        A filter allowing to define scripts as filters.\n\n        > script = \'doc["num1"].value > 1\'\n        > filter = ElasticFilter().script(script)\n        ' #NEWLINE# return cls ( script = cls )