Class Document

java.lang.Object
io.fluxcapacitor.common.search.Document

public class Document extends Object
Represents a structured, searchable, and indexable document within a Flux Capacitor collection.

A Document encapsulates metadata (such as ID, type, revision, timestamps) and document content structured as a map of Document.Entry values associated with one or more Document.Paths.

Documents are typically constructed from user-defined data and then serialized via SerializedDocument for indexing, querying, or audit purposes.

Components

  • entries: the core field/value content of the document, including support for multiple path aliases
  • facets: fast lookup values, commonly used in FacetStats
  • indexes: normalized and sortable values (e.g. timestamps, numbers) used for filtering and sorting
See Also: