Document
A document is a discrete information-bearing item or structured representation of content, often including text, fields, or associated metadata.
Elasticsearch in Action, Second Edition
An Elasticsearch document is a JSON record stored in an index with fields and associated metadata.
- How it is used
- Stores business records as JSON units that can be indexed, searched, retrieved, updated, or deleted.
- How deep it goes
- Explains JSON fields, nested objects, parsing, analysis, and mapping application; defers mapping detail and text analysis depth.
- Examples
- Uses book, news article, and student JSON records, plus ID-based retrieval requests.
- What you can do after
- Operate/configure it through REST APIs to index, fetch, update, delete, batch-import, and reindex JSON records.
Read how Elasticsearch in Action, Second Edition explains Document →
AI Agents and Applications
A document is a LangChain container holding content together with metadata such as source, page number, author, or timestamp.
- How it is used
- Packages source text and provenance for retrieval and multi-document summarization pipelines.
- How deep it goes
- Defines the container and traces its interactions with loaders, splitters, embeddings, and vector stores, including a concrete loader example.
- Examples
- Loads Paestum Wikipedia content with a two-document limit and summarizes content from Wikipedia and local TXT, DOCX, and PDF files.
- What you can do after
- Apply it via LangChain loaders to prepare source content for summarization and retrieval.
MongoDB 8.0 in Action, Third Edition
A document is a JSON-like data structure containing named fields and their values, potentially including arrays and nested documents.
- How it is used
- Stores application records as field–value structures within MongoDB collections.
- How deep it goes
- Defines BSON fields, arrays, nesting, identifiers, and the 16 MB limit, then demonstrates inspection with findOne().
- Examples
- Shows a grades record with embedded scores and a book record with arrays and nested details.
- What you can do after
- Apply it via mongosh to inspect a document with findOne() and plan fields around application queries.
Read how MongoDB 8.0 in Action, Third Edition explains Document →
Build Python Web Apps with Streamlit
A Document is a LangChain data structure containing source text and associated metadata.
- How it is used
- Supports document loading, chunking, indexing, and retrieval in a LangChain RAG application.
- How deep it goes
- Explains the structure and pipeline role, then demonstrates loading, splitting, storing, and retrieving without detailing metadata fields.
- Examples
- Uses text files, support articles, chunked excerpts, and fountain-pen care instructions as ingestible source material.
- What you can do after
- Apply it via LangChain loaders and splitters to prepare source material for vector-store retrieval.
Read how Build Python Web Apps with Streamlit explains Document →
Building Web APIs with ASP.NET Core
A database document is a self-contained record represented as structured fields, commonly including nested related information.
- How it is used
- Models NoSQL records as flexible documents containing fields and commonly related information.
- How deep it goes
- Defines document structure and relationship handling, but stops short of implementation syntax or database-specific operations.
- Examples
- Uses users, roles, board games, and comments to illustrate embedded and separately referenced information.
- What you can do after
- Evaluate whether related data should be embedded or referenced in a flexible NoSQL schema.
Read how Building Web APIs with ASP.NET Core explains Document →
Build AI-Enhanced Web Apps
A Document is a structured LangChain object representing retrieved content and associated document information.
- How it is used
- Represents parsed content and metadata as the handoff object for summarization, retrieval, embeddings, and vector storage.
- How deep it goes
- Defines content and metadata, then explains loader output and recursive chunking; it stops short of Document class internals.
- Examples
- Uses PDF and DOCX uploads, Aesop's fables, pageContent and metadata output, and overlapping chunks for summarization.
- What you can do after
- Build document-ingestion pipelines with PDFLoader, DocxLoader, and RecursiveCharacterTextSplitter.
Spring in Action, Sixth Edition
A document is a self-contained record in a document database that stores data as structured fields and values.
- How it is used
- Maps application domain types to MongoDB documents for persistence and retrieval.
- How deep it goes
- Explains core mapping annotations and collection naming, but does not descend into MongoDB storage internals.
- Examples
- Uses Ingredient, Taco, and TacoOrder classes, including embedded tacos and annotated identifiers.
- What you can do after
- Apply it via Spring Data MongoDB by annotating domain classes and choosing document identifiers, fields, and collection names.
Read how Spring in Action, Sixth Edition explains Document →
Fabulous Adventures in Data Structures and Algorithms
A document is an intermediate data structure that represents source-code layout rules and program text for pretty printing.
- How it is used
- Represents formatting decisions between parsing source code and rendering pretty-printed text.
- How deep it goes
- Defines the document’s role and encoded layout concepts, while deferring detailed node definitions and rendering implementation.
- Examples
- Uses an expression tree for Foo.Bar((x + y.z) * q, A.B.C) as a parse-tree-to-document example.
- What you can do after
- Build a pretty-printing pipeline by transforming parse trees into documents and rendering documents as text.
Read how Fabulous Adventures in Data Structures and Algorithms explains Document →
Also covered in
- Natural Language Processing in Action, Second Edition
- Spring AI in Action
- Microsoft Azure in Action
- Advanced Algorithms and Data Structures
- Authorization in Action
- The Design of Web APIs, Second Edition
- Data Analysis with LLMs
- Hugging Face in Action
- Think Like a CTO
What to know first
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- context windowA context window is a bounded span of sequence elements or contextual information that a model or processing operation can consider together.
- similarity searchSimilarity search is a retrieval technique that finds or ranks items by their similarity to a query, often by comparing feature or vector representations under a similarity or distance measure.
Related concepts
- match_all queryproduced by · A match_all query is an Elasticsearch query that matches every document eligible for the search.
- columnequivalent to · A column is a vertical sequence or region of cells or entries in a table, grid, or matrix; in tabular data, it represents one attribute across records.
- CRUDused by · CRUD is the set of data-management operations for creating, reading, updating, and deleting records or resources.
- document loaderproduced by · A document loader is a software component that reads content from a source and converts it into a standardized document representation for downstream processing.
Questions about Document
What is Document?
A document is a discrete information-bearing item or structured representation of content, often including text, fields, or associated metadata.
Which Manning books explain Document?
Elasticsearch in Action, Second Edition, AI Agents and Applications, MongoDB 8.0 in Action, Third Edition, Build Python Web Apps with Streamlit, Building Web APIs with ASP.NET Core, Build AI-Enhanced Web Apps, Spring in Action, Sixth Edition and Fabulous Adventures in Data Structures and Algorithms.
What should I know before learning Document?
Manning books that teach Document usually introduce JSON, language model, context window and similarity search first.
What kinds of Document are there?
Kinds of Document include Microsoft Word document and policy document.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.







