<s> from . base import BaseCommand <EOL> class TermvectorCommand ( BaseCommand ) : <EOL> command_name = "<STR_LIT>" <EOL> def run_request ( self , id = None ) : <EOL> if id is None : <EOL> self . show_input_panel ( "<STR_LIT>" , "<STR_LIT>" , self . run ) <EOL> return <EOL> options = dict ( <EOL> index = self . settings . index , <EOL> doc_type = self . settings . doc_type , <EOL> id = id , <EOL> body = self . get_text ( ) <EOL> ) <EOL> return self . client . termvector ( ** options ) </s>
