View source on GitHub |
An abstract base class which represents a facet of a document.
Inherits From: expected_type
google.appengine.api.search.Facet(
name, value
)
This class should not be directly instantiated.
Args | |
---|---|
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. |
Raises | |
---|---|
TypeError
|
If any of the parameters have invalid types, or an unknown attribute is passed. |
ValueError
|
If any of the parameters have invalid values. |
Attributes | |
---|---|
name
|
Returns the name of the facet. |
value
|
Returns the value of the facet. |
Methods
__eq__
__eq__(
other
)
Return self==value.
__ne__
__ne__(
other
)
Return self!=value.