ScoredChunk class final

A search result: a stored document and its similarity to the query.

Like Document, this has no value equality: it wraps a document, so it can only be as comparable as the document inside it. Results come back ranked, so compare document.id when you need to check which document a result points at.

Constructors

ScoredChunk({required Document document, required double score})
Creates a scored result.

Properties

document Document
The matched document.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
Similarity between the query and document.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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