View source on GitHub |
A Facet that has a numeric value.
Inherits From: Facet
, expected_type
google.appengine.api.search.NumberFacet(
name, value=None
)
The following example shows a number facet named wine_vintage: NumberFacet(name='wine_vintage', value=2000)
Args | |
---|---|
name
|
The name of the facet. |
value
|
A numeric value. |
Raises | |
---|---|
TypeError
|
If value is not numeric. |
ValueError
|
If value is out of range. |
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.