google.appengine.api.search.Facet

An abstract base class which represents a facet of a document.

Inherits From: expected_type

This class should not be directly instantiated.

name The name of the facet. Facet names must have maximum length MAXIMUM_FIELD_NAME_LENGTH and match pattern "[A-Za-z][A-Za-z0-9_]*".
value The value of the facet which can be a str, unicode or number.

TypeError If any of the parameters have invalid types, or an unknown attribute is passed.
ValueError If any of the parameters have invalid values.

name Returns the name of the facet.
value Returns the value of the facet.

Methods

__eq__

View source

Return self==value.

__ne__

View source

Return self!=value.