from .abstract import Field
# Identity meta fields
[docs]class Index(Field):
"""The index to which the document belongs."""
KEY = "_index"
[docs]class Type(Field):
"""The document’s mappings type."""
KEY = "_type"
[docs]class Id(Field):
"""The document’s ID."""
KEY = "_id"
# Document source meta-fields
[docs]class Source(Field):
"""The original JSON representing the body of the document."""
KEY = "_source"
[docs]class Size(Field):
"""The size of the _source field in bytes, provided by the mapper-size plugin."""
KEY = "_size"
# Indexing meta-fields
[docs]class FieldNames(Field):
"""All fields in the document which contain non-null values."""
KEY = "_field_names"
[docs]class Ignored(Field):
"""All fields in the document that have been ignored at index time because of ignore_malformed."""
KEY = "_ignored"
# Routing meta-field
[docs]class Routing(Field):
"""A custom routing value which routes a document to a particular shard."""
KEY = "_routing"
# Other meta-field