![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | chars |
def | position |
def | RestrictField |
def | __repr__ |
def | __eq__ |
def | __hash__ |
Represents a token, usually a word, extracted from some document field.
def google.appengine.api.search.stub.tokens.Token.__init__ | ( | self, | |
chars = None , |
|||
position = None , |
|||
field_name = None |
|||
) |
Initializer. Args: chars: The string representation of the token. position: The position of the token in the sequence from the document field. field_name: The name of the field the token occured in. Raises: TypeError: If an unknown argument is passed.
def google.appengine.api.search.stub.tokens.Token.chars | ( | self | ) |
Returns a list of fields of the document.
def google.appengine.api.search.stub.tokens.Token.position | ( | self | ) |
Returns a list of fields of the document.
def google.appengine.api.search.stub.tokens.Token.RestrictField | ( | self, | |
field_name | |||
) |
Creates a copy of this Token and sets field_name.