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.
        
 
     
  
  
  
  
  
    
      Facet Classes
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
Class Facet is an abstract base class representing a facet of a document. This class should not be directly instantiated.
Facet is defined in the module google.appengine.api.search.
Properties
An instance of class Facet has the following properties:
  
    - 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. 
Subclasses
Class Facet has the following subclasses:
  
    - 
      class AtomFacet
- A Facet that has content to be treated as a single token for indexing. - The facet's value is a str or unicode object to be treated as an indivisible text value. The following example shows an atom facet named wine_type: - AtomFacet(name='wine_type', value='Red') 
- 
      Exceptions 
              - TypeError
- Value supplied is not a text string. 
- ValueError
- Value exceeds maximum allowable length. 
 
- 
      class NumberFacet
- A Facet that has a numeric value. - The following example shows a number facet named wine_vintage: - NumberFacet(name='wine_vintage', value=2000) 
- 
      Exceptions 
              - TypeError
- Value supplied is not numeric. 
- ValueError
- Value is out of range. 
 
 
  
    
    
      
       
    
    
  
  
  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-10-24 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-10-24 UTC."],[],[]]