Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::SearchOptions Struct Reference

Configurable finite source, index, query and result budgets. More...

#include <search.hpp>

Public Attributes

std::size_t maxSourceRows {100000}
 Maximum immutable source rows.
std::size_t maxProjectedBytes {33554432}
 Maximum original projected UTF-8 bytes per index.
std::size_t maxRowBytes {4096}
 Maximum bytes in one suggestion label.
std::size_t maxRowGraphemes {1024}
 Maximum source graphemes per label.
std::size_t maxQueryBytes {4096}
 Maximum owning query bytes, independently editor-limited.
std::size_t maxQueryGraphemes {64}
 Maximum normalized query graphemes.
std::size_t maxTermsPerRow {64}
 Complete label plus nonempty whitespace tokens.
std::size_t maxIndexBytes {268435456}
 Resident/transient resident allocation-capacity ceiling.
std::size_t maxBuildScratchBytes {268435456}
 Independent build scratch ceiling.
std::size_t topK {32}
 Exact output count bound, configurable from one to256.
std::size_t maxHighlightRangesPerItem {64}
 Maximum merged whole-grapheme highlight ranges.
std::size_t maxQuerySteps {2000000}
 Grapheme DP cells, heap pushes/pops and postings examined.
std::size_t maxQueryScratchBytes {8388608}
 Query frontier/DP/dedup allocation-capacity ceiling.
SearchStrategy strategy {SearchStrategy::FUZZY_PREFIX}
 Prefix or one-edit prefix matching.

Detailed Description

Configurable finite source, index, query and result budgets.


The documentation for this struct was generated from the following file: