google.appengine.api.search.NumberFacet

A Facet that has a numeric value.

Inherits From: Facet, expected_type

The following example shows a number facet named wine_vintage: NumberFacet(name='wine_vintage', value=2000)

name The name of the facet.
value A numeric value.

TypeError If value is not numeric.
ValueError If value is out of range.

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.