Skip to content

Texts

Text type properties are used for long, textual documentation attached to entities, such as the Document:bodyText of a Document or the Thing:notes describing a Thing.

Backends should use full search text indexing to handle text fields.

Attribute Value Detail
name text Used in schema definitions
label Text plural: Texts
max_length 65000 Space to be allocated in fixed-length database definitions
matchable Suitable for use in entity matching
pivot Suitable for use as a pivot point for connecting to other entities

Python API

followthemoney.types.TextType

Bases: StringType

Longer text fragments, such as descriptions or document text. Unlike string properties, it might make sense to treat properties of this type as full-text search material.

Source code in followthemoney/types/string.py
class TextType(StringType):
    """Longer text fragments, such as descriptions or document text. Unlike
    string properties, it might make sense to treat properties of this type as
    full-text search material."""

    name = const("text")
    label = _("Text")
    plural = _("Texts")
    total_size = 30 * MEGABYTE
    max_length = 65000