Mastering Google App Engine by Mohsin Shafique Hijazee

Mastering Google App Engine by Mohsin Shafique Hijazee

Author:Mohsin Shafique Hijazee [Hijazee, Mohsin Shafique]
Language: eng
Format: azw3, pdf
Publisher: Packt Publishing
Published: 2015-10-08T04:00:00+00:00


Fields

A document can have many fields and each field has a name, a type, and a value. The field name again must be printable in ASCII within a limit of 500 characters but it should start with a letter and might contain digits and underscores afterward. About the type, you can store the following types of data in a document:

Text (more on that later)

Numbers represented by search.NumberField

Dates represented by search.DateField

Geo location represented by search.GeoField

So if you have a number such as price in our Listing class, that's how you will create the field:

price = search.NumberField(name='price', value=listing.price)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.