Table of Contents

Namespace LMKit.Document.Search

Classes

BetweenOptions

Options for extracting text between two textual anchors.

FuzzySearchOptions

Options for fuzzy search using Levenshtein distance.

HighlightAppearance

Controls the visual appearance of search result highlights.

LayoutSearchEngine

Provides advanced, layout-aware search capabilities over PageElement instances and their TextElement children. Supports exact, regex, fuzzy, region-based, proximity, block-level queries, and cross-page overloads. Returns bounding boxes and contributing elements for each match.

LayoutSearchOptions

Global options for LayoutSearchEngine controlling normalization and coordinate handling.

ProximityOptions

Options for proximity-based search relative to an anchor region.

RegexSearchOptions

Options for regular expression search.

RegionSearchOptions

Options for region-based search.

SearchHighlightEngine

Searches text in a paginated document and produces a highlighted copy. For PDF input, adds highlight annotations and saves incrementally for maximum performance. For image input, draws semi-transparent rectangles over matches and outputs PNG.

SearchHighlightOptions

Configuration for a search-and-highlight operation performed by SearchHighlightEngine. Combines search mode selection, text normalization, per-mode search parameters, highlight appearance, and page range filtering into a single options object.

SearchHighlightResult

Contains the output of a search-and-highlight operation performed by SearchHighlightEngine. Includes both the highlighted document bytes and metadata about the matches found.

TextMatch

Represents a matched text span with layout information.

TextSearchOptions

Options for exact text search.

Enums

SearchMode

Specifies the type of text search to perform.

Share