Python 2.7 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Python.
The FacetResult Class
Stay organized with collections
Save and categorize content based on your preferences.
Class FacetResult
Represents a facet result returned from a search with faceted search.
FacetResult
is defined in the module google.appengine.api.search
.
Constructor
The constructor for class FacetResult
is defined as follows:
class FacetResult(name, values=None)
Construct an instance of class FacetRefinement
.
Arguments
- name
- Sets the name property
- values
- Sets the values property
Result value
A new instance of class FacetResult
.
Exceptions
- TypeError
If any of the parameters have invalid types, or an unknown
attribute is passed.
- ValueError
If any of the parameters have invalid values.
Properties
An instance of class FacetResult
has the following properties:
- name
The name of this facet result.
- values
The values for this facet result.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eFacetResult\u003c/code\u003e represents a facet result from a faceted search, used in first-generation runtimes but relevant for migration to second-generation runtimes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFacetResult\u003c/code\u003e class is located in the \u003ccode\u003egoogle.appengine.api.search\u003c/code\u003e module.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor \u003ccode\u003eFacetResult(name, values=None)\u003c/code\u003e creates a new instance, accepting name and values arguments to set respective properties.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFacetResult\u003c/code\u003e instances have \u003ccode\u003ename\u003c/code\u003e and \u003ccode\u003evalues\u003c/code\u003e properties that correspond to the facet result's name and its associated values.\u003c/p\u003e\n"]]],[],null,["# The FacetResult Class\n\nClass `FacetResult` Represents a facet result returned from a search with faceted search.\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n| python3\n|\n| /services/access). If you are updating to the App Engine Python 3 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/python-differences) to learn about your migration options for legacy bundled services.\n\n`FacetResult` is defined in the module `google.appengine.api.search`.\n\nConstructor\n-----------\n\nThe constructor for class `FacetResult` is defined as follows:\n\nclass FacetResult(name, values=None)\n\n: Construct an instance of class `FacetRefinement`.\n\n:\n\n Arguments\n\n name\n : Sets the name property\n\n values\n : Sets the values property\n\n Result value\n\n : A new instance of class `FacetResult`.\n\n Exceptions\n\n TypeError\n\n : If any of the parameters have invalid types, or an unknown\n attribute is passed.\n\n ValueError\n\n : If any of the parameters have invalid values.\n\n \u003cbr /\u003e\n\n\u003cbr /\u003e\n\nProperties\n----------\n\nAn instance of class `FacetResult` has the following properties:\n\nname\n\n: The name of this facet result.\n\nvalues\n\n: The values for this facet result."]]