Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Private Attributes Class Reference
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __repr__

Public Attributes


Static Private Attributes

string __slots__ = 'id'

Detailed Description

A unprocessed document to be passed to the indexer.

This represents an item to be processed and stored in the search engine.
Each document will be processed by the indexer to generate a
ProcessedDocument, which can then be stored in the search engine index.

Note that some information in an UnprocessedDocument will not be
represented in the ProcessedDocument: therefore, it is not possible to
retrieve an UnprocessedDocument from the search engine index.

An unprocessed document is a simple container with two attributes:

 - `fields` is a list of Field objects, or an iterator returning Field
 - `id` is a string holding a unique identifier for the document (or
   None to get the database to allocate a unique identifier automatically
   when the document is added).

Definition at line 40 of file

Constructor & Destructor Documentation

def (   self,
  id = None,
  fields = None 

Definition at line 62 of file

00063     def __init__(self, id=None, fields=None):
00064 = id
00065         if fields is None:
00066             self.fields = []
00067         else:
00068             self.fields = fields

Member Function Documentation

Definition at line 69 of file

00070     def __repr__(self):
00071         return 'UnprocessedDocument(%r, %r)' % (, self.fields)

Member Data Documentation

Definition at line 61 of file

Definition at line 65 of file

Definition at line 63 of file

The documentation for this class was generated from the following file: