Module Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore Dict NameLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Dict FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore BoolOpOr NameLoad NameLoad If CompareIn Str NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad NameLoad If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Return Call AttributeLoad NameLoad attr Str Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict For NameStore NameLoad body Assign NameStore Dict Str Dict Str NameLoad If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore TupleLoad Str Str Str body If CompareIn NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad Call NameLoad NameLoad NameLoad Slice Break orelse Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr ListLoad Dict Str NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse If CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index NameLoad attr NameLoad orelse If CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr ListLoad Dict NameLoad BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr ListLoad orelse If BoolOpAnd CompareEq Call NameLoad NameLoad Num Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Dict attr Str Dict body Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str orelse Assign AttributeStore NameLoad attr ListLoad Dict Str Dict Str NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareGt BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Num body Raise Call NameLoad Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr orelse If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore IfExp CompareIn NameLoad NameLoad Str Str Return Dict NameLoad Dict Str NameLoad NameLoad NameLoad Return Dict NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body If CompareEq Call NameLoad NameLoad Num body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass orelse If CompareEq Call NameLoad NameLoad Num body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass orelse If CompareEq Call NameLoad NameLoad Num body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass orelse If Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad Str attr Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body AugAssignAdd NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr keyword TupleLoad Str BinOpAdd Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr keyword TupleLoad Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr keyword TupleLoad Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Str Str Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assert CompareIn NameLoad NameLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad BoolOpOr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Return NameLoad orelse Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad Num Return SubscriptLoad Call NameLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Dict Assign NameStore Dict Assign NameStore NameLoad Assign NameStore Call NameLoad Assign NameStore Dict Assign NameStore Dict Assign NameStore NameLoad Assign NameStore NameStore NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Assign NameStore ListLoad For NameStore NameLoad body If BoolOpAnd Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Slice Num Str orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad orelse AugAssignBitOr NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad orelse AugAssignBitOr NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If CompareEq NameLoad Str body If CompareEq SubscriptLoad NameLoad Index Num TupleLoad NameLoad body Assign NameStore Call NameLoad orelse AugAssignBitOr NameStore Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse If CompareIn NameLoad TupleLoad Str Str Str Str body Pass orelse Raise Call NameLoad NameLoad Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index Str Dict Str NameLoad orelse If NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Dict Str Dict Str Str Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If NameLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str NameLoad orelse If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign NameStore SubscriptStore NameLoad Index Str IfExp NameLoad Call NameLoad NameLoad ListLoad Str orelse If NameLoad body Assign NameStore SubscriptStore NameLoad Index Str IfExp NameLoad Call NameLoad NameLoad ListLoad Str orelse Assign NameStore Call NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd CompareIs Call AttributeLoad NameLoad attr Str Num NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore Call AttributeLoad NameLoad attr Str Dict Index NameLoad Dict Str Str NameLoad Dict Str Call AttributeLoad NameLoad attr Str Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Call NameLoad GeneratorExp TupleLoad NameLoad Dict comprehension NameStore NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Continue orelse If Call NameLoad NameLoad NameLoad body If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num orelse Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad TupleLoad Str Str Str Str body Raise Call NameLoad BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Dict NameLoad Dict Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Dict NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign TupleStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareIn Call AttributeLoad NameLoad attr Str TupleLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Dict NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Dict Str Str NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Dict Str Dict NameLoad NameLoad orelse If CompareIn NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Dict Str Dict NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str Dict NameLoad NameLoad orelse If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Dict NameLoad Dict NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Dict NameLoad Dict Str Str NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Dict Str NameLoad NameLoad ListLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body Return Call Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareIn NameLoad NameLoad body Return Dict SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Return Dict Str Dict Str Str NameLoad NameLoad orelse If CompareIn NameLoad NameLoad body Return Dict Str Dict NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Dict Str Str NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Dict Str Dict NameLoad NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body AugAssignAdd NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr If BoolOpOr CompareGt Call NameLoad NameLoad Num CompareGt BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad Num body Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Dict Str NameLoad If NameLoad body Return SubscriptLoad NameLoad Index Num Return Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return NameLoad orelse If AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str ListLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Return Call NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Return Call NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Dict If AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad AttributeLoad NameLoad attr attr orelse Return SubscriptLoad SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Str Dict decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str If CompareIn Str NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr BoolOpOr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr Return BoolOpOr AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore IfExp AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str ListLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Num Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str Num Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Return Call NameLoad ListComp TupleLoad NameLoad IfExp Call NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list If NameLoad body If CompareIn Str SubscriptLoad NameLoad Index Num body Assign NameStore ListComp TupleLoad SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore NameLoad orelse If CompareIn Str SubscriptLoad NameLoad Index Num body Assign NameStore ListComp TupleLoad SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore NameLoad orelse Assign NameStore ListComp TupleLoad Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore NameLoad orelse Assign NameStore ListLoad Assign AttributeStore NameLoad attr ListComp Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Return ListComp IfExp Call NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad comprehension NameStore NameLoad decorator_list If NameLoad body If CompareIn Str SubscriptLoad NameLoad Index Num body Assign NameStore ListComp TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad comprehension NameStore NameLoad orelse If CompareIn Str SubscriptLoad NameLoad Index Num body Assign NameStore ListComp TupleLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad comprehension NameStore NameLoad orelse Assign NameStore ListComp TupleLoad TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore NameLoad orelse Assign NameStore ListLoad Assign AttributeStore NameLoad attr ListComp Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str Return Dict Str SubscriptLoad NameLoad Index Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListComp Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Call AttributeLoad NameLoad attr Str Num keyword Call AttributeLoad NameLoad attr Str Dict keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str Dict keyword Call AttributeLoad NameLoad attr Str Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Num Return NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Raise Call NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Raise NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore GeneratorExp Call NameLoad NameLoad keyword SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list NameLoad decorator_list
N/A N/A copy N/A logging datetime datetime N/A six six string_types elasticsearch Elasticsearch elasticsearch.helpers bulk_index elasticutils._version __version__ elasticutils monkeypatch N/A N/A N/A monkeypatch monkeypatch_es N/A log N/A N/A logging getLogger elasticutils N/A DEFAULT_URLS N/A localhost N/A DEFAULT_DOCTYPES None N/A DEFAULT_INDEXES None N/A DEFAULT_TIMEOUT 5 N/A FACET_TYPES N/A date_histogram filter histogram query range statistical terms terms_stats N/A QUERY_ACTION_MAP N/A None in term terms prefix match match_phrase wildcard fuzzy term in term terms prefix match match_phrase wildcard fuzzy N/A MATCH_ACTIONS N/A match match_phrase N/A RANGE_ACTIONS N/A gt gte lt lte ElasticUtilsError N/A Exception N/A N/A Base class for ElasticUtils errors. N/A N/A InvalidFieldActionError N/A ElasticUtilsError N/A N/A Raise this when the field action doesn't exist N/A N/A InvalidFlagsError N/A ElasticUtilsError N/A N/A Raise when multiple flags are passed into a query N/A N/A InvalidFacetType N/A ElasticUtilsError N/A N/A Raise when _type is unrecognized. N/A N/A BadSearch N/A ElasticUtilsError N/A N/A Raise when there is something wrong with the search. N/A N/A _build_key N/A N/A urls timeout N/A settings N/A N/A settings N/A sorted N/A N/A settings items key N/A N/A N/A item N/A N/A item N/A 0 N/A settings N/A repr N/A N/A k v N/A N/A k v settings N/A N/A isinstance urls string_types N/A N/A urls N/A urls N/A N/A urls N/A tuple urls N/A key N/A urls timeout settings N/A key N/A N/A _cached_elasticsearch N/A get_es N/A N/A urls timeout force_new N/A None DEFAULT_TIMEOUT False settings N/A N/A Create an elasticsearch `Elasticsearch` object and return it.

    This will aggressively re-use `Elasticsearch` objects with the
    following rules:

    1. if you pass the same argument values to `get_es()`, then it
       will return the same `Elasticsearch` object
    2. if you pass different argument values to `get_es()`, then it
       will return different `Elasticsearch` object
    3. it caches each `Elasticsearch` object that gets created
    4. if you pass in `force_new=True`, then you are guaranteed to get
       a fresh `Elasticsearch` object AND that object will not be
       cached

    :arg urls: list of uris; Elasticsearch hosts to connect to,
        defaults to ``['http://localhost:9200']``
    :arg timeout: int; the timeout in seconds, defaults to 5
    :arg force_new: Forces get_es() to generate a new Elasticsearch
        object rather than pulling it from cache.
    :arg settings: other settings to pass into Elasticsearch
        constructor; See
        `<http://elasticsearch-py.readthedocs.org/>`_ for more details.

    Examples::

        # Returns cached Elasticsearch object
        es = get_es()

        # Returns a new Elasticsearch object
        es = get_es(force_new=True)

        es = get_es(urls=['localhost'])

        es = get_es(urls=['localhost:9200'], timeout=10,
                    max_retries=3)

     N/A urls N/A urls DEFAULT_URLS N/A N/A hosts settings N/A N/A N/A DeprecationWarning "hosts" is deprecated in favor of "urls". N/A N/A force_new N/A N/A key N/A _build_key urls timeout settings N/A N/A key _cached_elasticsearch N/A N/A N/A _cached_elasticsearch N/A key N/A es N/A Elasticsearch urls timeout timeout settings N/A N/A force_new N/A N/A N/A _cached_elasticsearch N/A key es N/A es N/A split_field_action N/A N/A s N/A N/A N/A Takes a string and splits it into field and action

    Example::

    >>> split_field_action('foo__bar')
    'foo', 'bar'
    >>> split_field_action('foo')
    'foo', None

     N/A N/A __ s N/A N/A N/A N/A s rsplit __ 1 N/A N/A s None N/A _process_facets N/A N/A facets flags N/A N/A N/A rv N/A N/A fieldname facets N/A N/A facet_type N/A terms N/A field fieldname N/A N/A N/A flags get size N/A N/A N/A N/A facet_type N/A terms N/A size N/A flags N/A size N/A N/A N/A flags get global_ N/A N/A N/A facet_type N/A global N/A flags N/A global_ N/A N/A N/A N/A flags get filtered N/A N/A N/A facet_type N/A facet_filter None N/A N/A rv N/A fieldname facet_type N/A rv N/A _facet_counts N/A N/A items N/A N/A N/A Returns facet counts as dict.

    Given the `items()` on the raw dictionary from Elasticsearch this processes
    it and returns the counts keyed on the facet name provided in the original
    query.

     N/A facets N/A N/A N/A name data items N/A N/A N/A facets N/A name N/A FacetResult name data N/A facets N/A FacetResult N/A object N/A __init__ N/A N/A self name data N/A args kwargs N/A N/A N/A N/A data N/A _type FACET_TYPES N/A N/A N/A InvalidFacetType N/A N/A Facet _type "{0}". key "{1}" val "{2}" format N/A data N/A _type name data N/A N/A self _data data N/A N/A N/A N/A self __dict__ update data N/A attr N/A entries ranges terms N/A N/A N/A attr data N/A N/A N/A self data N/A N/A getattr self attr N/A N/A N/A N/A N/A self data N/A N/A __repr__ N/A N/A self N/A N/A N/A N/A repr N/A self _data N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self data N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A getattr self key N/A N/A N/A AttributeError N/A exc N/A N/A N/A KeyError N/A exc message N/A N/A F N/A object N/A N/A 
    Filter objects.

    Makes it easier to create filters cumulatively using ``&`` (and),
    ``|`` (or) and ``~`` (not) operations.

    For example::

        f = F()
        f &= F(price='Free')
        f |= F(style='Mexican')

    creates a filter "price = 'Free' or style = 'Mexican'".

     __init__ N/A N/A self N/A filters N/A N/A Creates an F N/A filters N/A N/A filters items N/A N/A six PY3 N/A N/A filters N/A list filters N/A N/A N/A len filters 1 N/A N/A N/A self filters N/A N/A and filters N/A N/A N/A self filters filters N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A <F {0}> format N/A self filters N/A _combine N/A N/A self other conn N/A and N/A N/A 
        OR and AND will create a new F, with the filters from both F
        objects combined with the connector `conn`.
         N/A f N/A F N/A self_filters N/A N/A copy deepcopy N/A self filters N/A other_filters N/A N/A copy deepcopy N/A other filters N/A N/A N/A self filters N/A N/A N/A f filters other_filters N/A N/A N/A N/A other filters N/A N/A N/A f filters self_filters N/A N/A N/A conn N/A N/A self filters N/A 0 N/A N/A N/A f filters self_filters N/A N/A N/A N/A N/A N/A f filters N/A 0 N/A conn extend other_filters N/A N/A N/A conn N/A N/A other filters N/A 0 N/A N/A N/A f filters other_filters N/A N/A N/A N/A N/A N/A f filters N/A 0 N/A conn extend self_filters N/A N/A N/A f filters N/A N/A conn N/A self_filters other_filters N/A f N/A __or__ N/A N/A self other N/A N/A N/A N/A N/A self _combine other or N/A __and__ N/A N/A self other N/A N/A N/A N/A N/A self _combine other and N/A __invert__ N/A N/A self N/A N/A N/A f N/A F N/A self_filters N/A N/A copy deepcopy N/A self filters N/A N/A N/A len self_filters 0 N/A N/A N/A f filters N/A N/A N/A N/A N/A N/A len self_filters 1 N/A isinstance N/A self_filters N/A 0 dict N/A N/A N/A N/A N/A self_filters N/A 0 get not N/A get filter N/A N/A N/A N/A f filters N/A N/A N/A self_filters N/A 0 N/A not N/A filter N/A N/A N/A f filters N/A N/A not N/A filter self_filters N/A f N/A N/A Q N/A object N/A N/A 
    Query objects.

    Makes it easier to create queries cumulatively.

    If there's more than one query part, they're combined under a
    BooleanQuery. By default, they're combined in the `must` clause.

    You can combine two Q classes using the ``+`` operator. For
    example::

        q = Q()
        q += Q(title__match='shoes')
        q += Q(summary__match='shoes')

    creates a BooleanQuery with two `must` clauses.

    Example 2::

        q = Q()
        q += Q(title__match='shoes', should=True)
        q += Q(summary__match='shoes')
        q += Q(description__match='shoes', must=True)

    creates a BooleanQuery with one `should` clause (title) and two
    `must` clauses (summary and description).

     __init__ N/A N/A self N/A queries N/A N/A Creates a Q N/A N/A self should_q N/A N/A N/A self must_q N/A N/A N/A self must_not_q N/A N/A should_flag N/A N/A queries pop should False N/A must_flag N/A N/A queries pop must False N/A must_not_flag N/A N/A queries pop must_not False N/A N/A N/A N/A should_flag must_flag must_not_flag 1 N/A N/A N/A InvalidFlagsError Either should, must or must_not can be True, but not more than one. N/A should_flag N/A N/A N/A N/A N/A self should_q extend N/A N/A queries items N/A N/A must_not_flag N/A N/A N/A N/A N/A self must_not_q extend N/A N/A queries items N/A N/A N/A N/A N/A self must_q extend N/A N/A queries items N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A <Q should={0} must={1} must_not={2}> format N/A self should_q N/A self must_q N/A self must_not_q N/A __add__ N/A N/A self other N/A N/A N/A q N/A Q N/A N/A q should_q N/A list N/A self should_q N/A N/A q must_q N/A list N/A self must_q N/A N/A q must_not_q N/A list N/A self must_not_q N/A N/A N/A N/A q should_q extend N/A other should_q N/A N/A N/A N/A q must_q extend N/A other must_q N/A N/A N/A N/A q must_not_q extend N/A other must_not_q N/A q N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A sorted N/A self should_q N/A sorted N/A other should_q N/A N/A sorted N/A self must_q N/A sorted N/A other must_q N/A N/A sorted N/A self must_not_q N/A sorted N/A other must_not_q N/A N/A _boosted_value N/A N/A name action key value boost N/A N/A N/A Boost a value if we should in _process_queries N/A N/A boost None N/A N/A value_key N/A N/A action MATCH_ACTIONS query value N/A N/A name N/A boost value_key boost value N/A N/A name value N/A PythonMixin N/A object N/A N/A Mixin that provides ES results fixing to_python N/A N/A self obj N/A N/A N/A Converts strings in a data structure to Python types

        It converts datetime-ish things to Python datetimes.

        Override if you want something different.

        :arg obj: Python datastructure

        :returns: Python datastructure with strings converted to
            Python types

        .. Note::

           This does the conversion in-place!

         N/A N/A isinstance obj string_types N/A N/A N/A N/A len obj 26 N/A N/A N/A N/A N/A N/A datetime strptime obj %Y-%m-%dT%H:%M:%S.%f N/A N/A N/A N/A TypeError ValueError N/A N/A N/A N/A N/A N/A len obj 19 N/A N/A N/A N/A N/A N/A datetime strptime obj %Y-%m-%dT%H:%M:%S N/A N/A N/A N/A TypeError ValueError N/A N/A N/A N/A N/A N/A len obj 10 N/A N/A N/A N/A N/A N/A datetime strptime obj %Y-%m-%d N/A N/A N/A N/A TypeError ValueError N/A N/A N/A N/A N/A isinstance obj dict N/A N/A N/A key val N/A N/A obj items N/A N/A N/A obj N/A key N/A N/A self to_python val N/A N/A N/A isinstance obj list N/A N/A N/A N/A N/A self to_python item N/A item obj N/A obj N/A N/A S N/A PythonMixin N/A N/A Represents a lazy Elasticsearch Search API request.

    The API for `S` takes inspiration from Django's QuerySet.

    `S` can be either typed or untyped. An untyped `S` returns results
    as an iterable of :py:class:`elasticutils.DefaultMappingType`
    instances.

    An `S` is lazy in the sense that it doesn't do an Elasticsearch
    search request until it's forced to evaluate by:

    1. use the :py:class:`elasticutils.S` in an iterable context
    2. call :py:func:`len` on a :py:class:`elasticutils.S`
    3. call the :py:meth:`elasticutils.S.execute`,
       :py:meth:`elasticutils.S.everything`,
       :py:meth:`elasticutils.S.count`,
       :py:meth:`elasticutils.S.suggestions` or
       :py:meth:`elasticutils.S.facet_counts` methods


    **Adding support for other queries**

    You can add support for queries that S doesn't have support for by
    subclassing S with a method called ``process_query_<ACTION>``.
    This method takes a key, value and an action.

    For example::

        claass FunkyS(S):
            def process_query_funkyquery(self, key, val, action):
                return {'funkyquery': {'field': key, 'value': val}}


    Then you can use that just like other actions::

        s = FunkyS().query(Q(foo__funkyquery='bar'))
        s = FunkyS().query(foo__funkyquery='bar')


    Many Elasticsearch queries take other arguments. This is a good
    way of using different arguments. For example, if you wanted
    to write a handler for fuzzy for dates, you could do::

        claass FunkyS(S):
            def process_query_fuzzy(self, key, val, action):
                # val here is a (value, min_similarity) tuple
                return {
                    'funkyquery': {
                        key: {
                            'value': val[0],
                            'min_similarity': val[1]
                        }
                    }
                }

    Used::

        s = FunkyS().query(created__fuzzy=(created_dte, '1d'))


    **Adding support for other filters**

    You can add support for filters that S doesn't have support for by
    subclassing S with a method called ``process_filter_<ACTION>``.
    This method takes a key, value and an action.

    For example::

        claass FunkyS(S):
            def process_filter_funkyfilter(self, key, val, action):
                return {'funkyfilter': {'field': key, 'value': val}}


    Then you can use that just like other actions::

        s = FunkyS().filter(F(foo__funkyfilter='bar'))
        s = FunkyS().filter(foo__funkyfilter='bar')

     __init__ N/A N/A self type_ N/A None N/A N/A Create and return an S.

        :arg type_: class; the MappingType for this S

         N/A N/A self type type_ N/A N/A self steps N/A N/A N/A self start 0 N/A N/A self stop None N/A N/A self as_list N/A self as_dict False N/A N/A self field_boosts N/A N/A N/A self _results_cache None N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A N/A N/A <S {0}> format N/A repr N/A N/A self build_search N/A N/A N/A RuntimeError N/A N/A N/A repr N/A self steps N/A _clone N/A N/A self next_step N/A None N/A N/A new N/A N/A self __class__ N/A self type N/A N/A new steps N/A list N/A self steps N/A next_step N/A N/A N/A N/A N/A new steps append next_step N/A N/A new start N/A self start N/A N/A new stop N/A self stop N/A N/A new field_boosts N/A N/A N/A self field_boosts copy N/A new N/A es N/A N/A self N/A settings N/A N/A Return a new S with specified Elasticsearch settings.

        This allows you to configure the Elasticsearch object that gets
        used to execute the search.

        :arg settings: the settings you'd use to build the
            Elasticsearch---same as what you'd pass to
            :py:func:`get_es`.

         N/A N/A N/A self _clone next_step N/A es settings N/A indexes N/A N/A self N/A indexes N/A N/A 
        Return a new S instance that will search specified indexes.
         N/A N/A N/A self _clone next_step N/A indexes indexes N/A doctypes N/A N/A self N/A doctypes N/A N/A 
        Return a new S instance that will search specified doctypes.

        .. Note::

           Elasticsearch calls these "mapping types". It's the name
           associated with a mapping.
         N/A N/A N/A self _clone next_step N/A doctypes doctypes N/A explain N/A N/A self value N/A True N/A N/A 
        Return a new S instance with explain set.
         N/A N/A N/A self _clone next_step N/A explain value N/A values_list N/A N/A self N/A fields N/A N/A Return a new S instance that returns ListSearchResults.

        :arg fields: the list of fields to have in the results.

            With no arguments, passes ``fields=*`` and returns values
            for any fields you have marked as "stored = True" for that
            mapping.

            With arguments, passes those field arguments via
            ``fields`` and returns a list of tuples with values in the
            order specified.

        For example (assume id, name and age are stored fields):

        >>> list(S().values_list())
        [([1], ['fred'], [40]), ([2], ['brian'], [30]), ...]
        >>> list(S().values_list('id', 'name'))
        [([1], ['fred']), ([2], ['brian']), ([3], ['james'])]
        >>> list(S().values_list('name', 'id'))
        [(['fred'], [1]), (['brian'], [2]), (['james'], [3])]

        .. Note::

            If you do not specify any fields and you have no fields
            marked as stored, then you will get back the ``_id`` and
            ``_type`` of each result and that's it.

         N/A N/A N/A self _clone next_step N/A values_list fields N/A values_dict N/A N/A self N/A fields N/A N/A Return a new S instance that returns DictSearchResults.

        :arg fields: the list of fields to have in the results.

            With no arguments, passes ``fields=*`` and returns values
            for any fields you have marked as "stored = True" for that
            mapping.

            With arguments, passes those field arguments via
            ``fields`` and returns a list of dicts with the specified
            fields.

        For example (assuming id, name and age are stored):

        >>> list(S().values_dict())
        [{'id': [1], 'name': ['fred'], 'age': [40]}, ...]
        >>> list(S().values_dict('id', 'name'))
        [{'id': [1], 'name': ['fred']}, ...]

        .. Note::

            If you do not specify any fields and you have no fields
            marked as stored, then you will get back the ``_id`` and
            ``_type`` of each result and that's it.

         N/A N/A N/A self _clone next_step N/A values_dict fields N/A order_by N/A N/A self N/A fields N/A N/A 
        Return a new S instance with results ordered as specified

        You can change the order search results by specified fields::

            q = (S().query(title='trucks')
                    .order_by('title')


        This orders search results by the `title` field in ascending
        order.

        If you want to sort by descending order, prepend a ``-``::

            q = (S().query(title='trucks')
                    .order_by('-title')


        You can also sort by the computed field ``_score`` or pass a dict as
        a sort field in order to use more advanced sort options.  Read the
        Elasticsearch documentation for details.

        .. Note::

           Calling this again will overwrite previous ``.order_by()``
           calls.

         N/A N/A N/A self _clone next_step N/A order_by fields N/A query N/A N/A self N/A queries kw N/A N/A 
        Return a new S instance with query args combined with existing
        set in a must boolean query.

        :arg queries: instances of Q
        :arg kw: queries in the form of ``field__action=value``

        There are three special flags you can use:

        * ``must=True``: Specifies that the queries and kw queries
          **must match** in order for a document to be in the result.

          If you don't specify a special flag, this is the default.

        * ``should=True``: Specifies that the queries and kw queries
          **should match** in order for a document to be in the result.

        * ``must_not=True``: Specifies the queries and kw queries
          **must not match** in order for a document to be in the result.

        These flags work by putting those queries in the appropriate
        clause of an Elasticsearch boolean query.

        Examples:

        >>> s = S().query(foo='bar')
        >>> s = S().query(Q(foo='bar'))
        >>> s = S().query(foo='bar', bat__match='baz')
        >>> s = S().query(foo='bar', should=True)
        >>> s = S().query(foo='bar', should=True).query(baz='bat', must=True)

        Notes:

        1. Don't specify multiple special flags, but if you did, `should`
           takes precedence.
        2. If you don't specify any, it defaults to `must`.
        3. You can specify special flags in the
           :py:class:`elasticutils.Q`, too. If you're building your
           query incrementally, using :py:class:`elasticutils.Q` helps
           a lot.

        See the documentation on :py:class:`elasticutils.Q` for more
        details on composing queries with Q.

        See the documentation on :py:class:`elasticutils.S` for more
        details on adding support for more query types.

         N/A q N/A Q N/A query queries N/A N/A q query N/A N/A or_ kw N/A N/A or_query N/A N/A kw pop or_ N/A N/A or_query N/A should True N/A q N/A Q or_query N/A q N/A Q kw N/A N/A N/A self _clone next_step N/A query q N/A query_raw N/A N/A self query N/A N/A N/A 
        Return a new S instance with a query_raw.

        :arg query: Python dict specifying the complete query to send
            to Elasticsearch

        Example::

            S().query_raw({'match': {'title': 'example'}})


        .. Note::

           If there's a query_raw in your S, then that's your
           query. All ``.query()``, ``.demote()``, ``.boost()`` and
           anything else that affects the query clause is ignored.

         N/A N/A N/A self _clone next_step N/A query_raw query N/A filter N/A N/A self N/A filters kw N/A N/A 
        Return a new S instance with filter args combined with
        existing set with AND.

        :arg filters: this will be instances of F
        :arg kw: this will be in the form of ``field__action=value``

        Examples:

        >>> s = S().filter(foo='bar')
        >>> s = S().filter(F(foo='bar'))
        >>> s = S().filter(foo='bar', bat='baz')
        >>> s = S().filter(foo='bar').filter(bat='baz')

        By default, everything is combined using AND. If you provide
        multiple filters in a single filter call, those are ANDed
        together. If you provide multiple filters in multiple filter
        calls, those are ANDed together.

        If you want something different, use the F class which supports
        ``&`` (and), ``|`` (or) and ``~`` (not) operators. Then call
        filter once with the resulting F instance.

        See the documentation on :py:class:`elasticutils.F` for more
        details on composing filters with F.

        See the documentation on :py:class:`elasticutils.S` for more
        details on adding support for new filter types.

         N/A items N/A N/A kw items N/A N/A six PY3 N/A N/A items N/A list items N/A N/A N/A self _clone next_step N/A filter N/A N/A list filters items N/A filter_raw N/A N/A self filter_ N/A N/A N/A 
        Return a new S instance with a filter_raw.

        :arg filter_: Python dict specifying the complete filter to send
            to Elasticsearch

        Example::

            S().filter_raw({'term': {'title': 'example'}})


        .. Note::

           If there's a filter_raw in your S, then that's your
           filter. All ``.filter()`` and anything else that affects the
           filter clause is ignored.
         N/A N/A N/A self _clone next_step N/A filter_raw filter_ N/A boost N/A N/A self N/A kw N/A N/A 
        Return a new S instance with field boosts.

        ElasticUtils allows you to specify query-time field boosts
        with ``.boost()``. It takes a set of arguments where the keys
        are either field names or field name + ``__`` + field action.

        Examples::

            q = (S().query(title='taco trucks',
                           description__match='awesome')
                    .boost(title=4.0, description__match=2.0))


        If the key is a field name, then the boost will apply to all
        query bits that have that field name. For example::

            q = (S().query(title='trucks',
                           title__prefix='trucks',
                           title__fuzzy='trucks')
                    .boost(title=4.0))


        applies a 4.0 boost to all three query bits because all three
        query bits are for the title field name.

        If the key is a field name and field action, then the boost
        will apply only to that field name and field action. For
        example::

            q = (S().query(title='trucks',
                           title__prefix='trucks',
                           title__fuzzy='trucks')
                    .boost(title__prefix=4.0))


        will only apply the 4.0 boost to title__prefix.

        Boosts are relative to one another and all boosts default to
        1.0.

        For example, if you had::

            qs = (S().boost(title=4.0, summary=2.0)
                     .query(title__match=value,
                            summary__match=value,
                            content__match=value,
                            should=True))


        ``title__match`` would be boosted twice as much as
        ``summary__match`` and ``summary__match`` twice as much as
        ``content__match``.

         N/A new N/A N/A self _clone N/A N/A N/A N/A new field_boosts update kw N/A new N/A demote N/A N/A self amount_ N/A queries kw N/A N/A 
        Returns a new S instance with boosting query and demotion.

        You can demote documents that match query criteria::

            q = (S().query(title='trucks')
                    .demote(0.5, description__match='gross'))

            q = (S().query(title='trucks')
                    .demote(0.5, Q(description__match='gross')))

        This is implemented using the boosting query in
        Elasticsearch. Anything you specify with ``.query()`` goes
        into the positive section. The negative query and negative
        boost portions are specified as the first and second arguments
        to ``.demote()``.

        .. Note::

           Calling this again will overwrite previous ``.demote()``
           calls.

         N/A q N/A Q N/A query queries N/A N/A q query N/A q N/A Q kw N/A N/A N/A self _clone next_step N/A demote N/A amount_ q N/A facet N/A N/A self N/A args kw N/A N/A 
        Return a new S instance with facet args combined with existing
        set.

        :arg args: The list of facets to return.

        Additional keyword options:

        * ``size`` -- Maximum number of terms to return for each facet.

         N/A N/A N/A self _clone next_step N/A facet N/A args kw N/A facet_raw N/A N/A self N/A kw N/A N/A 
        Return a new S instance with raw facet args combined with
        existing set.
         N/A items N/A N/A kw items N/A N/A six PY3 N/A N/A items N/A list items N/A N/A N/A self _clone next_step N/A facet_raw items N/A highlight N/A N/A self N/A fields kwargs N/A N/A Set highlight/excerpting with specified options.

        :arg fields: The list of fields to highlight. If the field is
            None, then the highlight is cleared.

        Additional keyword options:

        * ``pre_tags`` -- List of tags before highlighted portion
        * ``post_tags`` -- List of tags after highlighted portion

        Results will have a ``highlight`` attribute on the ``es_meta``
        object which contains the highlighted field excerpts.

        For example::

            q = (S().query(title__match='crash', content__match='crash')
                    .highlight('title', 'content'))

            for result in q:
                print result.es_meta.highlight['title']
                print result.es_meta.highlight['content']


        If you pass in ``None``, it will clear the highlight.

        For example, this search won't highlight anything::

            q = (S().query(title__match='crash')
                    .highlight('title')          # highlights 'title' field
                    .highlight(None))            # clears highlight


        .. Note::

           Calling this again will overwrite previous ``.highlight()``
           calls.

        .. Note::

           Make sure the fields you're highlighting are indexed
           correctly.  Read the Elasticsearch documentation for
           details.

         N/A N/A N/A self _clone next_step N/A highlight N/A fields kwargs N/A search_type N/A N/A self search_type N/A N/A N/A Set Elasticsearch search type for distributed search behaviour.

        :arg search_type: The search type to set.

        The search type affects how much results are fetched from each shard,
        and how are they then merged back. This can affect the accuracy of the
        results and the execution speed.

        For the list of possible values and additional documentation,
        consult the Elasticsearch reference:
        http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-search-type.html

        If called multiple times, the last search type will be in effect.

         N/A N/A N/A self _clone next_step N/A search_type search_type N/A suggest N/A N/A self name term N/A kwargs N/A N/A Set suggestion options.

        :arg name: The name to use for the suggestions.
        :arg term: The term to suggest similar looking terms for.

        Additional keyword options:

        * ``field`` -- The field to base suggestions upon, defaults to _all

        Results will have a ``_suggestions`` property containing the
        suggestions for all terms.

        .. Note::

           Suggestions are only supported since Elasticsearch 0.90.

           Calling this multiple times will add multiple suggest clauses to
           the query.
         N/A N/A N/A self _clone next_step N/A suggest N/A name term kwargs N/A extra N/A N/A self N/A kw N/A N/A 
        Return a new S instance with extra args combined with existing
        set.
         N/A new N/A N/A self _clone N/A actions N/A values_list values_dict order_by query filter facet N/A N/A key vals N/A N/A kw items N/A N/A N/A key actions N/A N/A hasattr vals items N/A N/A N/A N/A N/A new steps append N/A key N/A N/A vals items N/A N/A N/A N/A N/A new steps append N/A key vals N/A new N/A __getitem__ N/A N/A self k N/A N/A N/A Handles slice and indexes for Elasticsearch results N/A new N/A N/A self _clone N/A N/A isinstance k slice N/A N/A N/A N/A new start N/A new stop N/A N/A N/A k start 0 N/A k stop N/A new N/A N/A N/A N/A new start N/A new stop N/A k N/A k 1 N/A N/A N/A list new N/A 0 N/A build_search N/A N/A self N/A N/A N/A Builds the Elasticsearch search body represented by this S.

        Loop over self.steps to build the search body that will be
        sent to Elasticsearch. This returns a Python dict.

        If you want the JSON that actually gets sent, then pass the return
        value through :py:func:`elasticutils.utils.to_json`.

        :returns: a Python dict

         N/A filters N/A N/A filters_raw None N/A queries N/A N/A query_raw None N/A sort N/A N/A dict_fields N/A set N/A list_fields N/A set N/A facets N/A N/A facets_raw N/A N/A demote None N/A highlight_fields N/A set N/A highlight_options N/A N/A suggestions N/A N/A explain False N/A as_list as_dict False N/A search_type None N/A N/A action value N/A self steps N/A N/A N/A action order_by N/A N/A sort N/A N/A key value N/A N/A N/A N/A isinstance key string_types N/A N/A key startswith - N/A N/A N/A N/A sort append N/A N/A key N/A 1 desc N/A N/A N/A N/A sort append key N/A N/A N/A action values_list N/A N/A N/A value N/A N/A list_fields N/A set N/A N/A list_fields N/A set value N/A N/A as_list as_dict N/A True False N/A N/A N/A action values_dict N/A N/A N/A value N/A N/A dict_fields N/A set N/A N/A dict_fields N/A set value N/A N/A as_list as_dict N/A False True N/A N/A N/A action explain N/A N/A explain value N/A N/A N/A action query N/A N/A N/A N/A queries append value N/A N/A N/A action query_raw N/A N/A query_raw value N/A N/A N/A action demote N/A N/A demote value N/A N/A N/A action filter N/A N/A N/A N/A filters extend N/A N/A self _process_filters value N/A N/A N/A action filter_raw N/A N/A filters_raw value N/A N/A N/A action facet N/A N/A N/A N/A facets update N/A _process_facets value N/A N/A N/A action facet_raw N/A N/A N/A N/A facets_raw update N/A dict value N/A N/A N/A action highlight N/A N/A N/A N/A value N/A 0 N/A None N/A N/A highlight_fields N/A set N/A N/A highlight_fields N/A set N/A value N/A 0 N/A N/A N/A highlight_options update N/A value N/A 1 N/A N/A N/A action search_type N/A N/A search_type value N/A N/A N/A action suggest N/A N/A N/A suggestions N/A N/A value N/A 0 N/A N/A value N/A 1 N/A value N/A 2 N/A N/A N/A action N/A es indexes doctypes boost N/A N/A N/A N/A N/A NotImplementedError action N/A qs N/A N/A filters_raw N/A N/A N/A qs N/A filter filters_raw N/A N/A N/A N/A len filters 1 N/A N/A N/A qs N/A filter N/A and filters N/A N/A filters N/A N/A N/A qs N/A filter N/A filters N/A 0 N/A query_raw N/A N/A N/A qs N/A query query_raw N/A N/A pq N/A N/A self _process_queries queries N/A N/A demote None N/A N/A N/A qs N/A query N/A boosting N/A negative negative_boost N/A N/A self _process_queries N/A N/A demote N/A 1 N/A demote N/A 0 N/A pq N/A N/A N/A N/A N/A qs N/A query N/A boosting N/A positive pq N/A N/A pq N/A N/A N/A qs N/A query pq N/A as_list N/A N/A fields N/A qs N/A fields N/A list_fields N/A list list_fields N/A * N/A N/A as_dict N/A N/A fields N/A qs N/A fields N/A dict_fields N/A list dict_fields N/A * N/A N/A fields N/A set N/A facets N/A N/A N/A qs N/A facets facets N/A facet N/A N/A facets values N/A N/A N/A N/A N/A N/A facet get facet_filter 1 None N/A filter qs N/A N/A N/A facet N/A facet_filter N/A qs N/A filter N/A facets_raw N/A N/A N/A N/A N/A N/A qs setdefault facets N/A update facets_raw N/A sort N/A N/A N/A qs N/A sort sort N/A N/A self start N/A N/A N/A qs N/A from N/A self start N/A N/A N/A self stop None N/A N/A N/A qs N/A size N/A N/A self stop N/A self start N/A highlight_fields N/A N/A N/A qs N/A highlight N/A N/A self _build_highlight highlight_fields highlight_options N/A explain N/A N/A N/A qs N/A explain True N/A N/A suggestion N/A term kwargs N/A N/A six iteritems suggestions N/A N/A N/A N/A N/A qs setdefault suggest N/A N/A suggestion N/A text term term N/A field N/A N/A kwargs get field _all N/A N/A N/A self fields N/A self as_list N/A self as_dict N/A fields as_list as_dict N/A N/A self search_type search_type N/A qs N/A _build_highlight N/A N/A self fields options N/A N/A N/A Return the portion of the query that controls highlighting. N/A ret N/A fields order N/A dict N/A N/A f N/A N/A f fields score N/A N/A N/A ret update options N/A ret N/A _process_filters N/A N/A self filters N/A N/A N/A Takes a list of filters and returns ES JSON API

        :arg filters: list of F, (key, val) tuples, or dicts

        :returns: list of ES JSON API filters

         N/A rv N/A N/A f filters N/A N/A N/A isinstance f F N/A N/A N/A f filters N/A N/A N/A N/A rv extend N/A N/A self _process_filters N/A f filters N/A N/A N/A N/A isinstance f dict N/A N/A N/A six PY3 N/A N/A key N/A N/A list N/A N/A f keys N/A 0 N/A N/A key N/A N/A N/A f keys N/A 0 N/A val N/A f N/A key N/A key N/A N/A key strip _ N/A N/A key N/A or and not filter N/A N/A N/A InvalidFieldActionError N/A %s is not a valid connector N/A N/A N/A f keys N/A 0 N/A N/A filter val N/A N/A filter_filters N/A N/A self _process_filters N/A val N/A filter N/A N/A N/A len filter_filters 1 N/A N/A filter_filters N/A filter_filters N/A 0 N/A N/A N/A rv append N/A key N/A filter filter_filters N/A N/A N/A N/A rv append N/A key N/A N/A self _process_filters val N/A N/A N/A key val f N/A N/A key field_action N/A split_field_action key N/A handler_name N/A N/A process_filter_{0} format field_action N/A N/A field_action N/A hasattr self handler_name N/A N/A N/A N/A rv append N/A N/A getattr self handler_name key val field_action N/A N/A N/A N/A N/A key strip _ N/A or and not N/A N/A connector N/A N/A key strip _ N/A N/A N/A rv append N/A connector N/A N/A self _process_filters N/A N/A val items N/A N/A N/A field_action None N/A N/A N/A val None N/A N/A N/A N/A rv append N/A missing N/A field null_value key True N/A N/A N/A N/A rv append N/A term N/A key val N/A N/A N/A field_action N/A startswith prefix N/A N/A N/A N/A rv append N/A prefix N/A key val N/A N/A N/A field_action in N/A N/A N/A N/A rv append N/A in N/A key val N/A N/A N/A field_action RANGE_ACTIONS N/A N/A N/A N/A rv append N/A range N/A key N/A field_action val N/A N/A N/A field_action range N/A N/A N/A lower upper val N/A N/A N/A rv append N/A range N/A key N/A gte lte lower upper N/A N/A N/A field_action distance N/A N/A N/A distance latitude longitude val N/A N/A N/A rv append N/A geo_distance N/A distance key distance N/A longitude latitude N/A N/A N/A InvalidFieldActionError N/A %s is not a valid field action field_action N/A rv N/A _process_query N/A N/A self query N/A N/A N/A Takes a key/val pair and returns the Elasticsearch code for it N/A N/A key val query N/A N/A field_name field_action N/A split_field_action key N/A boost N/A N/A N/A self field_boosts get key N/A N/A boost None N/A N/A boost N/A N/A N/A self field_boosts get field_name N/A handler_name N/A N/A process_query_{0} format field_action N/A N/A field_action N/A hasattr self handler_name N/A N/A N/A N/A getattr self handler_name field_name val field_action N/A N/A N/A field_action QUERY_ACTION_MAP N/A N/A N/A N/A QUERY_ACTION_MAP N/A field_action N/A _boosted_value field_name field_action key val boost N/A N/A N/A field_action query_string N/A N/A N/A query_string N/A default_field query field_name val N/A N/A N/A field_action RANGE_ACTIONS N/A N/A N/A range N/A field_name N/A _boosted_value field_action field_action key val boost N/A N/A N/A field_action range N/A N/A N/A lower upper val N/A value N/A gte lte lower upper N/A boost N/A N/A N/A value N/A boost boost N/A N/A range N/A field_name value N/A N/A InvalidFieldActionError N/A %s is not a valid field action field_action N/A _process_queries N/A N/A self queries N/A N/A N/A Takes a list of queries and returns query clause value

        :arg queries: list of Q instances

        :returns: dict which is the query clause value

         N/A new_q N/A Q N/A query queries N/A N/A new_q query N/A should_q N/A N/A N/A self _process_query query N/A query N/A new_q should_q N/A must_q N/A N/A N/A self _process_query query N/A query N/A new_q must_q N/A must_not_q N/A N/A N/A self _process_query query N/A query N/A new_q must_not_q N/A N/A N/A N/A len must_q 1 N/A N/A N/A len should_q N/A len must_not_q 0 N/A N/A bool_query N/A N/A must_q N/A N/A N/A bool_query N/A must must_q N/A should_q N/A N/A N/A bool_query N/A should should_q N/A must_not_q N/A N/A N/A bool_query N/A must_not must_not_q N/A N/A bool bool_query N/A must_q N/A N/A N/A must_q N/A 0 N/A N/A N/A get_results_class N/A N/A self N/A N/A N/A Returns the results class to use

        The results class should be a subclass of SearchResults.

         N/A N/A self as_list N/A N/A ListSearchResults N/A N/A N/A self as_dict N/A N/A DictSearchResults N/A N/A ObjectSearchResults N/A _do_search N/A N/A self N/A N/A N/A 
        Perform the search, then convert that raw format into a
        SearchResults instance and return it.
         N/A N/A N/A self _results_cache None N/A N/A response N/A N/A self raw N/A ResultsClass N/A N/A self get_results_class N/A results N/A N/A self to_python N/A N/A N/A N/A response get hits N/A get hits N/A N/A N/A self _results_cache N/A ResultsClass N/A self type response results N/A self fields N/A N/A self _results_cache N/A get_es N/A N/A self default_builder N/A get_es N/A N/A Returns the Elasticsearch object to use.

        :arg default_builder: The function that takes a bunch of
            arguments and generates a elasticsearch Elasticsearch
            object.

        .. Note::

           If you desire special behavior regarding building the
           Elasticsearch object for this S, subclass S and override
           this method.

         N/A args N/A N/A N/A action value N/A self steps N/A N/A N/A action es N/A N/A N/A N/A args update value N/A N/A default_builder args N/A get_indexes N/A N/A self default_indexes N/A DEFAULT_INDEXES N/A N/A Returns the list of indexes to act on. N/A N/A action value N/A reversed N/A self steps N/A N/A N/A action indexes N/A N/A N/A list value N/A N/A N/A self type None N/A N/A indexes N/A N/A N/A self type get_index N/A N/A isinstance indexes string_types N/A N/A indexes N/A indexes N/A indexes N/A default_indexes N/A get_doctypes N/A N/A self default_doctypes N/A DEFAULT_DOCTYPES N/A N/A Returns the list of doctypes to use. N/A N/A action value N/A reversed N/A self steps N/A N/A N/A action doctypes N/A N/A N/A list value N/A N/A N/A self type None N/A N/A N/A N/A N/A N/A self type get_mapping_type_name N/A default_doctypes N/A raw N/A N/A self N/A N/A N/A 
        Build query and passes to Elasticsearch, then returns the raw
        format returned.
         N/A qs N/A N/A self build_search N/A es N/A N/A self get_es N/A index N/A N/A self get_indexes N/A doc_type N/A N/A self get_doctypes N/A N/A doc_type N/A index N/A N/A N/A BadSearch You must specify an index if you are specifying doctypes. N/A extra_search_kwargs N/A N/A N/A self search_type N/A N/A N/A extra_search_kwargs N/A search_type N/A self search_type N/A hits N/A N/A es search body qs index N/A N/A self get_indexes doc_type N/A N/A self get_doctypes extra_search_kwargs N/A N/A N/A log debug N/A [%s] %s N/A N/A hits N/A took qs N/A hits N/A count N/A N/A self N/A N/A N/A 
        Returns the total number of results Elasticsearch thinks will
        match this search.

        :returns: integer

        For example:

        >>> all_jimmies = S().query(name__prefix='Jimmy').count()

         N/A N/A N/A self _results_cache None N/A N/A N/A N/A self _results_cache count N/A N/A N/A N/A N/A N/A N/A self N/A 0 raw N/A hits N/A total N/A __len__ N/A N/A self N/A N/A N/A Executes search and returns the number of results you'd get.

        Executes search and returns number of results returned as an
        integer.

        :returns: integer

        For example:

        >>> some_s = S().query(name__prefix='Jimmy')
        >>> length = len(some_s)

        This is very different than calling
        :py:meth:`elasticutils.S.count`. If you call
        :py:meth:`elasticutils.S.count` you get the total number of
        results that Elasticsearch thinks matches your search. If you
        call ``len()``, then you get the number of results you got
        from the search which factors in slices and default from and
        size values.

         N/A N/A len N/A N/A self _do_search N/A all N/A N/A self N/A N/A N/A No-op that returns a clone of self

        This is here to make it more Django QuerySet-like and work
        with better with things that accept QuerySets.

         N/A N/A N/A self _clone N/A everything N/A N/A self N/A N/A N/A Executes search and returns ALL search results.

        :returns: `SearchResults` instance

        For example:

        >>> s = S().query(name__prefix='Jimmy')
        >>> all_results = s.everything()

        .. Warning::

           This returns ALL possible search results. The way it does
           this is by calling ``.count()`` first to figure out how
           many to return, then by slicing by that size and returning
           ALL possible search results.

           Don't use this if you've got 1000s of results!

         N/A count N/A N/A self count N/A N/A N/A N/A self N/A count execute N/A execute N/A N/A self N/A N/A N/A 
        Executes search and returns a `SearchResults` object.

        :returns: `SearchResults` instance

        For example:

        >>> s = S().query(name__prefix='Jimmy')
        >>> results = s.execute()
         N/A N/A N/A self _do_search N/A __iter__ N/A N/A self N/A N/A N/A 
        Executes search and returns an iterator of results.

        :returns: iterator of results

        For example:

        >>> s = S().query(name__prefix='Jimmy')
        >>> for obj in s.execute():
        ...     print obj['id']
        ...

         N/A N/A iter N/A N/A self _do_search N/A _raw_facets N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self _do_search response get facets N/A N/A facet_counts N/A N/A self N/A N/A N/A 
        Executes search and returns facet counts.

        Example:

        >>> s = S().query(name__prefix='Jimmy')
        >>> facet_counts = s.facet_counts()

         N/A N/A _facet_counts N/A N/A N/A N/A self _raw_facets items N/A suggestions N/A N/A self N/A N/A N/A 
        Executes search and returns suggestions.

        >>> s = S().query(name='Aice').suggest(name='Aice')
        >>> suggestions = s.suggestions()['name']

        .. Note::

           Suggestions are only supported since Elasticsearch 0.90.

         N/A N/A N/A N/A N/A N/A self _do_search response get suggest N/A N/A N/A MLT N/A PythonMixin N/A N/A Represents a lazy Elasticsearch More Like This API request.

    This is lazy in the sense that it doesn't evaluate and execute the
    Elasticsearch request unless you force it to by iterating over it
    or getting the length of the search results.

    For example:

    >>> mlt = MLT(2034, index='addons_index', doctype='addon')
    >>> num_related_documents = len(mlt)
    >>> num_related_documents = list(mlt)

     __init__ N/A N/A self id_ s mlt_fields index doctype es N/A None None None None None query_params N/A N/A 
        When the MLT is evaluated, it generates a list of dict results.

        :arg id_: The id of the document we want to find more like.
        :arg s: An instance of an S. Allows you to pass in a query which
            will be used as the body of the more-like-this request.
        :arg mlt_fields: A list of fields to look at for more like this.
        :arg index: The index to use. Falls back to the first index
            listed in s.get_indexes().
        :arg doctype: The doctype to use. Falls back to the first
            doctype listed in s.get_doctypes().
        :arg es: The `Elasticsearch` object to use. If you don't
            provide one, then it will create one for you.
        :arg query_params: Any additional query parameters for the
            more like this call.

        .. Note::

           You must specify either an `s` or the `index` and `doctype`
           arguments. Omitting them will result in a `ValueError`.

         N/A N/A N/A s None N/A N/A index None N/A doctype None N/A N/A N/A ValueError Either you must provide a valid s or index and doc_type N/A N/A fields query_params N/A N/A N/A DeprecationWarning "fields" argument is deprecated for "mlt_fields" N/A N/A self s s N/A N/A s None N/A N/A N/A self index N/A index N/A N/A N/A s get_indexes N/A 0 N/A N/A self doctype N/A doctype N/A N/A N/A s get_doctypes N/A 0 N/A N/A self type N/A s type N/A N/A N/A self index index N/A N/A self doctype doctype N/A N/A self type None N/A N/A self id id_ N/A N/A self mlt_fields mlt_fields N/A N/A self es es N/A N/A self query_params query_params N/A N/A self _results_cache None N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A N/A self _do_search N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A N/A self _do_search N/A get_es N/A N/A self N/A N/A N/A Returns an `Elasticsearch`.

        * If there's an s, then it returns that `Elasticsearch`.
        * If the es was provided in the constructor, then it returns
          that `Elasticsearch`.
        * Otherwise, it creates a new `Elasticsearch` and returns
          that.

        Override this if that behavior isn't correct for you.

         N/A N/A self s N/A N/A N/A N/A N/A self s get_es N/A N/A N/A self es N/A get_es N/A raw N/A N/A self N/A N/A N/A 
        Build query and passes to `Elasticsearch`, then returns the raw
        format returned.
         N/A es N/A N/A self get_es N/A params N/A dict N/A self query_params N/A mlt_fields N/A N/A self mlt_fields N/A N/A params pop mlt_fields N/A N/A body N/A N/A self s N/A N/A N/A self s build_search N/A hits N/A N/A es mlt index N/A self index doc_type N/A self doctype id N/A self id mlt_fields mlt_fields body body params N/A N/A N/A log debug hits N/A hits N/A _do_search N/A N/A self N/A N/A N/A 
        Perform the mlt call, then convert that raw format into a
        SearchResults instance and return it.
         N/A N/A N/A self _results_cache None N/A N/A response N/A N/A self raw N/A results N/A N/A self to_python N/A N/A N/A N/A response get hits N/A get hits N/A N/A N/A self _results_cache N/A DictSearchResults N/A self type response results None N/A N/A self _results_cache N/A N/A SearchResults N/A object N/A N/A 
    After executing a search, this is the class that manages the
    results.

    :property type: the mapping type of the S that created this
        SearchResults instance
    :property took: the amount of time the search took
    :property count: the total results
    :property response: the raw Elasticsearch search response
    :property results: the search results from the response if any
    :property fields: the list of fields specified by values_list
        or values_dict

    When you iterate over this object, it returns the individual
    search results in the shape you asked for (object, tuple, dict,
    etc) in the order returned by Elasticsearch.

    Example::

        s = S().query(bio__match='archaeologist')
        results = s.execute()

        # Shows how long the search took
        print results.took

        # Shows the raw Elasticsearch response
        print results.results

     __init__ N/A N/A self type response results fields N/A N/A N/A N/A self type type N/A N/A self response response N/A N/A self took N/A N/A response get took 0 N/A N/A self count N/A N/A N/A N/A response get hits N/A get total 0 N/A N/A self facets N/A _facet_counts N/A N/A N/A N/A response get facets N/A items N/A N/A self results results N/A N/A self fields fields N/A N/A N/A self set_objects N/A self results N/A set_objects N/A N/A self hits N/A N/A N/A N/A NotImplementedError N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self objects N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self objects N/A N/A DictResult N/A dict N/A N/A N/A TupleResult N/A tuple N/A N/A N/A DictSearchResults N/A SearchResults N/A N/A 
    SearchResults subclass that returns a results in the form of a
    dict.
     set_objects N/A N/A self results N/A N/A listify N/A N/A d N/A N/A N/A N/A dict N/A N/A key N/A N/A isinstance val list val N/A val N/A N/A key val N/A N/A d items N/A N/A results N/A N/A N/A fields N/A results N/A 0 N/A N/A objs N/A N/A N/A r N/A fields r N/A r results N/A N/A N/A _source N/A results N/A 0 N/A N/A objs N/A N/A N/A r N/A _source r N/A r results N/A N/A objs N/A N/A N/A _id _type N/A r N/A _id N/A r N/A _type r N/A r results N/A N/A objs N/A N/A N/A self objects N/A N/A decorate_with_metadata N/A DictResult N/A listify obj r N/A N/A obj r objs N/A N/A ListSearchResults N/A SearchResults N/A N/A 
    SearchResults subclass that returns a results in the form of a
    tuple.
     set_objects N/A N/A self results N/A N/A listify N/A N/A values N/A N/A N/A N/A N/A N/A isinstance val list val N/A val N/A val values N/A N/A results N/A N/A N/A fields N/A results N/A 0 N/A N/A objs N/A N/A N/A N/A N/A r N/A fields values r N/A r results N/A N/A N/A _source N/A results N/A 0 N/A N/A objs N/A N/A N/A N/A N/A r N/A _source values r N/A r results N/A N/A objs N/A N/A N/A N/A r N/A _id N/A r N/A _type r N/A r results N/A N/A objs N/A N/A N/A self objects N/A N/A decorate_with_metadata N/A TupleResult N/A listify obj r N/A N/A obj r objs N/A N/A _convert_results_to_dict N/A N/A r N/A N/A N/A Takes a results from Elasticsearch and returns fields. N/A N/A fields r N/A N/A N/A r N/A fields N/A N/A _source r N/A N/A N/A r N/A _source N/A N/A id N/A r N/A _id N/A ObjectSearchResults N/A SearchResults N/A set_objects N/A N/A self results N/A N/A N/A mapping_type N/A N/A N/A self type None N/A self type DefaultMappingType N/A N/A self objects N/A N/A decorate_with_metadata N/A N/A mapping_type from_results N/A _convert_results_to_dict r r N/A r results N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A N/A self objects __iter__ N/A N/A Metadata N/A object N/A __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A self __dict__ update kwargs N/A N/A decorate_with_metadata N/A N/A obj result N/A N/A N/A Return obj decorated with es_meta object N/A N/A obj es_meta N/A Metadata id N/A N/A result get _id 0 source N/A N/A result get _source N/A score N/A N/A result get _score None type N/A N/A result get _type None explanation N/A N/A result get _explanation N/A highlight N/A N/A result get highlight N/A N/A N/A obj _id N/A N/A result get _id 0 N/A obj N/A NoModelError N/A Exception N/A N/A N/A MappingType N/A object N/A N/A Base class for mapping types.

    To extend this class:

    1. implement ``get_index()``.
    2. implement ``get_mapping_type_name()``.
    3. if this ties back to a model, implement ``get_model()`` and
       possibly also ``get_object()``.

    For example::

        class ContactType(MappingType):
            @classmethod
            def get_index(cls):
                return 'contacts_index'

            @classmethod
            def get_mapping_type_name(cls):
                return 'contact_type'

            @classmethod
            def get_model(cls):
                return ContactModel

            def get_object(self):
                return self.get_model().get(id=self._id)

     __init__ N/A N/A self N/A N/A N/A N/A self _results_dict N/A N/A N/A self _object None N/A from_results N/A N/A cls results_dict N/A N/A N/A mt N/A cls N/A N/A mt _results_dict results_dict N/A mt N/A classmethod _get_object_lazy N/A N/A self N/A N/A N/A N/A self _object N/A N/A N/A self _object N/A N/A self _object N/A N/A self get_object N/A N/A self _object N/A get_index N/A N/A cls N/A N/A N/A Returns the index to use for this mapping type.

        You can specify the index to use for this mapping type.  This
        affects ``S`` built with this type.

        By default, raises NotImplementedError.

        Override this to return the index this mapping type should
        be indexed and searched in.

         N/A N/A NotImplementedError N/A classmethod get_mapping_type_name N/A N/A cls N/A N/A N/A Returns the mapping type name.

        You can specify the mapping type name (also sometimes called the
        document type) with this method.

        By default, raises NotImplementedError.

        Override this to return the mapping type name.

         N/A N/A NotImplementedError N/A classmethod get_object N/A N/A self N/A N/A N/A Returns the model instance

        This gets called when someone uses the ``.object`` attribute
        which triggers lazy-loading of the object this document is
        based on.

        By default, this calls::

            self.get_model().get(id=self._id)


        where ``self._id`` is the Elasticsearch document id.

        Override it to do something different.

         N/A N/A N/A N/A N/A self get_model get id N/A self _id N/A get_model N/A N/A cls N/A N/A N/A Return the model class related to this MappingType.

        This can be any class that has an instance related to this
        MappingType by id.

        For example, if you're using Django and your MappingType is
        related to a Django model--this should return the Django
        model.

        By default, raises NoModelError.

        Override this to return a class that works with
        ``.get_object()`` to return the instance of the model that is
        related to this document.

         N/A NoModelError N/A classmethod __getattr__ N/A N/A self name N/A N/A N/A N/A name N/A self __dict__ N/A N/A N/A AttributeError name N/A N/A name object N/A N/A N/A N/A self get_object N/A N/A name _results_dict N/A N/A N/A AttributeError name N/A N/A name N/A self _results_dict N/A N/A N/A N/A self _results_dict N/A name N/A N/A AttributeError name N/A __len__ N/A N/A self N/A N/A N/A N/A N/A N/A self _results_dict __len__ N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self _results_dict __getitem__ key N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A N/A self _results_dict __iter__ N/A __reversed__ N/A N/A self N/A N/A N/A N/A N/A N/A self _results_dict __reversed__ N/A __contains__ N/A N/A self item N/A N/A N/A N/A N/A N/A self _results_dict __contains__ item N/A N/A DefaultMappingType N/A MappingType N/A N/A This is the default mapping type for S. N/A Indexable N/A object N/A N/A Mixin for mapping types with all the indexing hoo-hah.

    Add this mixin to your DjangoMappingType subclass and it gives you
    super indexing power.

     get_es N/A N/A cls N/A N/A N/A Returns an Elasticsearch object

        Override this if you need special functionality.

        :returns: a elasticsearch `Elasticsearch` instance

         N/A N/A get_es N/A classmethod get_mapping N/A N/A cls N/A N/A N/A Returns the mapping for this mapping type.

        Example::

            @classmethod
            def get_mapping(cls):
                return {
                    'properties': {
                        'id': {'type': 'integer'},
                        'name': {'type': 'string'}
                    }
                }


        See the docs for more details on how to specify a mapping.

        Override this to return a mapping for this doctype.

        :returns: dict representing the Elasticsearch mapping or None
            if you want Elasticsearch to infer it. defaults to None.

         N/A None N/A classmethod extract_document N/A N/A cls obj_id obj N/A None N/A N/A Extracts the Elasticsearch index document for this instance

        **This must be implemented.**

        .. Note::

           The resulting dict must be JSON serializable.

        :arg obj_id: the object id for the object to extract from
        :arg obj: if this is not None, use this as the object to
            extract from; this allows you to fetch a bunch of items
            at once and extract them one at a time

        :returns: dict of key/value pairs representing the document

         N/A NotImplementedError N/A classmethod get_indexable N/A N/A cls N/A N/A N/A Returns an iterable of things to index.

        :returns: iterable of things to index

         N/A NotImplemented N/A classmethod index N/A N/A cls document id_ overwrite_existing es index N/A None True None None N/A N/A Adds or updates a document to the index

        :arg document: Python dict of key/value pairs representing
            the document

            .. Note::

               This must be serializable into JSON.

        :arg id_: the id of the document

            .. Note::

               If you don't provide an ``id_``, then Elasticsearch
               will make up an id for your document and it'll look
               like a character name from a Lovecraft novel.

        :arg overwrite_existing: if ``True`` overwrites existing documents
             of the same ID and doctype

        :arg es: The `Elasticsearch` to use. If you don't specify an
            `Elasticsearch`, it'll use `cls.get_es()`.

        :arg index: The name of the index to use. If you don't specify one
            it'll use `cls.get_index()`.

        .. Note::

           If you need the documents available for searches
           immediately, make sure to refresh the index by calling
           ``refresh_index()``.

         N/A N/A es None N/A N/A es N/A N/A cls get_es N/A N/A index None N/A N/A index N/A N/A cls get_index N/A kw N/A N/A N/A overwrite_existing N/A N/A N/A kw N/A op_type create N/A N/A N/A es index index index doc_type N/A N/A cls get_mapping_type_name body document id id_ kw N/A classmethod bulk_index N/A N/A cls documents id_field es index N/A id None None N/A N/A Adds or updates a batch of documents.

        :arg documents: List of Python dicts representing individual
            documents to be added to the index

            .. Note::

               This must be serializable into JSON.

        :arg id_field: The name of the field to use as the document
            id. This defaults to 'id'.

        :arg es: The `Elasticsearch` to use. If you don't specify an
            `Elasticsearch`, it'll use `cls.get_es()`.

        :arg index: The name of the index to use. If you don't specify one
            it'll use `cls.get_index()`.

        .. Note::

           If you need the documents available for searches
           immediately, make sure to refresh the index by calling
           ``refresh_index()``.

         N/A N/A es None N/A N/A es N/A N/A cls get_es N/A N/A index None N/A N/A index N/A N/A cls get_index N/A documents N/A N/A dict d _id N/A d N/A id_field N/A d documents N/A N/A bulk_index es documents index index doc_type N/A N/A cls get_mapping_type_name raise_on_error True N/A classmethod unindex N/A N/A cls id_ es index N/A None None N/A N/A Removes a particular item from the search index.

        :arg id_: The Elasticsearch id for the document to remove from
            the index.

        :arg es: The `Elasticsearch` to use. If you don't specify an
            `Elasticsearch`, it'll use `cls.get_es()`.

        :arg index: The name of the index to use. If you don't specify one
            it'll use `cls.get_index()`.

         N/A N/A es None N/A N/A es N/A N/A cls get_es N/A N/A index None N/A N/A index N/A N/A cls get_index N/A N/A N/A es delete index index doc_type N/A N/A cls get_mapping_type_name id id_ N/A classmethod refresh_index N/A N/A cls es index N/A None None N/A N/A Refreshes the index.

        Elasticsearch will update the index periodically
        automatically. If you need to see the documents you just
        indexed in your search results right now, you should call
        `refresh_index` as soon as you're done indexing. This is
        particularly helpful for unit tests.

        :arg es: The `Elasticsearch` to use. If you don't specify an
            `Elasticsearch`, it'll use `cls.get_es()`.

        :arg index: The name of the index to use. If you don't specify one
            it'll use `cls.get_index()`.

         N/A N/A es None N/A N/A es N/A N/A cls get_es N/A N/A index None N/A N/A index N/A N/A cls get_index N/A N/A N/A N/A es indices refresh index index N/A classmethod N/A