Class ShardInfo (2.4.0)

ShardInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.

Attributes

NameDescription
shard_index int
The 0-based index of this shard.
shard_count int
Total number of shards.
text_offset int
The index of the first character in Document.text in the overall document global text.