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.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

App Engine standard environment for Python