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.

google.appengine.api.search.search_util module

Summary

Provides utility methods used by modules in the FTS API stub.

Contents

google.appengine.api.search.search_util.AddFieldsToDocumentPb(doc_id, fields, document)source

Add the id and fields to document.

Parameters
  • doc_id – The document id.

  • fields – List of tuples of field name, value and optionally type.

  • document – The document to add the fields to.

google.appengine.api.search.search_util.ConvertToNfkd(text)source
google.appengine.api.search.search_util.DeserializeDate(date_str)source
google.appengine.api.search.search_util.EpochTime(date)source

Returns millisecond epoch time for a date or datetime.

google.appengine.api.search.search_util.GetAllFieldInDocument(document, field_name)source

Find and return all fields with the provided name in the document.

google.appengine.api.search.search_util.GetFieldCountInDocument(document, field_name)source
google.appengine.api.search.search_util.GetFieldInDocument(document, field_name, return_type=None)source

Find and return the field with the provided name and type.

google.appengine.api.search.search_util.RemoveAccents(text)source
google.appengine.api.search.search_util.RemoveAccentsNfkd(text)source
google.appengine.api.search.search_util.Repr(class_instance, ordered_dictionary)source

Generates an unambiguous representation for instance and ordered dict.

google.appengine.api.search.search_util.SerializeDate(date)source
google.appengine.api.search.search_util.TreeRepr(tree, depth=0)source

Generate a string representation of an ANTLR parse tree for debugging.

exception google.appengine.api.search.search_util.UnsupportedOnDevErrorsource

Bases: exceptions.Exception

Indicates attempt to perform an action unsupported on the dev server.

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年06月16日 UTC.