App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.api.search.stub.tokens.Token Class Reference
Inheritance diagram for google.appengine.api.search.stub.tokens.Token:
google.appengine.api.search.stub.tokens.GeoPoint google.appengine.api.search.stub.tokens.Number google.appengine.api.search.stub.tokens.Quote

Public Member Functions

def __init__
 
def chars
 
def position
 
def RestrictField
 
def __repr__
 
def __eq__
 
def __hash__
 

Detailed Description

Represents a token, usually a word, extracted from some document field.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

The documentation for this class was generated from the following file: