{{{#!python

# FieldActions description http://code.google.com/p/xappy/source/browse/trunk/xappy/fieldactions.py#379
connection.add_field_action('itemid', xappy.FieldActions.INDEX_EXACT)
connection.add_field_action('wikiname', xappy.FieldActions.INDEX_EXACT)
connection.add_field_action('wikiname', xappy.FieldActions.SORTABLE)
# 'language' is the language to use when processing the field.  This can
# be expressed as an ISO 2-letter language code.  The supported languages
# are those supported by the xapian core in use.
connection.add_field_action('title', xappy.FieldActions.INDEX_FREETEXT, weight=5, language=language)
connection.add_field_action('title', xappy.FieldActions.SORTABLE)
# 'spell' is a boolean flag - if true, the contents of the field will be used for spelling correction.
connection.add_field_action('content', xappy.FieldActions.INDEX_FREETEXT, language=language, spell=True)
}}}