Class
Document
represents a document containing searchable content.
Document
is defined in the module
google.appengine.api.search
.
- Constructor
- Properties:
Constructor
The constructor for class
Document
is defined as follows:
- class Document ( doc_id = None , fields = None , language = 'en' , rank = None )
-
Construct an instance of class
Document
.The following example shows how to create a document consisting of a set of fields, some plain text and one in HTML:
from google.appengine.api import search search.Document( doc_id='documentId', fields=[search.TextField(name='subject', value='going for dinner'), search.HtmlField(name='body', value='<html>I found a place.</html>'), search.TextField(name='signature', value='brzydka pogoda', language='pl')], language='en')