pub struct TextIndexDoc {
pub term: Vec<u8>,
pub predicate: Vec<u8>,
pub lexical: String,
pub language: Option<String>,
}Expand description
One literal to add to the text index.
The partition derives the bounded prefix and suffix fields from lexical;
carrying them would only duplicate bytes on the wire. term is the encoded
EncodedTerm and stays opaque to every layer that does not need to decode
it.
The persistent index keys one document by (predicate, literal), so the
same literal under two predicates is two documents (the predicate dimension
is what lets a query scope its candidate set). predicate is the encoded
predicate term. It is empty only for compute-side scratch documents built
by the direct-evaluation roads, which never enter the persistent index.
Fields§
§term: Vec<u8>Encoded EncodedTerm bytes; the candidate-scan payload.
predicate: Vec<u8>Encoded predicate term bytes; the other half of the document identity.
lexical: StringThe literal’s lexical form.
language: Option<String>Language tag for rdf:langString, None otherwise.
Implementations§
Trait Implementations§
Source§impl Clone for TextIndexDoc
impl Clone for TextIndexDoc
Source§fn clone(&self) -> TextIndexDoc
fn clone(&self) -> TextIndexDoc
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more