Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

The FacetRange Class

Stay organized with collections Save and categorize content based on your preferences.

Class FacetRange represents a numeric range with inclusive start and exclusive end values.

Caution: **This solution is no longer recommended:** Apps that use this API can only run in the Python 2 runtime and will need to upgrade to a [recommended solution](/appengine/docs/legacy/standard/python/migrate-to-python3/migrating-services#migration_paths_for_bundled_services) before migrating to the Python 3 runtime.

FacetRange is defined in the module


The constructor for class FacetRange is defined as follows:

class FacetRange(start=None, end=None)

Construct an instance of class FacetRefinement.


Sets the start property
Sets the end property

Result value

A new instance of class FacetRange.



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


If any of the parameters have invalid values.


An instance of class FacetRange has the following properties:


Inclusive start of the range.


Exclusive end of the range.