KnowledgeBundleSearch class final

A search of one bundle, with its context unranked against other bundles.

Constructors

KnowledgeBundleSearch(ProjectBundle bundle, KnowledgeSearchResponse response, {KnowledgeSearchFreshness freshness = const KnowledgeSearchFreshness()})

Properties

bundle → ProjectBundle
The bundle searched.
final
context → List<KnowledgeCitation>
The context policy selected, matches included.
final
freshness → KnowledgeSearchFreshness
What the search found out about the bundle's index.
final
hashCode → int
The hash code for this object.
no setterinherited
matches → List<KnowledgeCitation>
Query-ranked matches, one best passage per concept.
final
notices → List<KnowledgeNotice>
Unresolved links and excluded context, and while a refresh runs, the freshness of the served index; KnowledgeNotice.bundle is null.
no setter
response → KnowledgeSearchResponse
The underlying response, with the graph edges each context passage was reached through.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The JSON of wayfinder search <bundle> --output=json.
toMarkdown({String prefix = ''}) → String
## Matches and ## Related Context with citations of the form prefix + source-path:lines, then the notices. prefix is how the reader reaches the bundle, such as knowledge/. Control characters are escaped.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited