Rebuilds the index store wholesale from the record store: every family from the stored
sentexes, and the mint family from the stored justifications. core/reindex runs
recover after it, since the TMS and taxonomy rebuild reads the index (docs/storage.md,
"A derived index over durable records"; docs/indexing.md §7 for a layout change).
Rebuilds the index store wholesale from the record store: every family from the stored sentexes, and the mint family from the stored justifications. `core/reindex` runs `recover` after it, since the TMS and taxonomy rebuild reads the index (docs/storage.md, "A derived index over durable records"; docs/indexing.md §7 for a layout change).
(index-one! index sx h)Index one stored sentex sx at handle h into index: its index-sentex entries,
plus, when sx is a rule, its rule index entries (rules/index-rule). The re-check
index is posted once every record is in (special/post-taxonomy-supporters!), since a
rule's keys read the taxonomy. reindex and the importer's inline bulk load call it.
Returns true iff sx is a rule (the caller's rule tally).
Index one stored sentex `sx` at handle `h` into `index`: its `index-sentex` entries, plus, when `sx` is a rule, its rule index entries (`rules/index-rule`). The re-check index is posted once every record is in (`special/post-taxonomy-supporters!`), since a rule's keys read the taxonomy. `reindex` and the importer's inline bulk load call it. Returns true iff `sx` is a rule (the caller's rule tally).
(reindex kb)Flush the index store and rebuild every entry from the stored sentexes: each record's
own entries (index-one!) and its mint family entry, then the taxonomy's supporter
families and the re-check index (special/post-taxonomy-supporters!). The mint
family is read from the stored justifications, walked first, so each mint is posted
from the record the sentex walk holds. Returns {:sentexes n :rules n}.
Flush the index store and rebuild every entry from the stored sentexes: each record's
own entries (`index-one!`) and its mint family entry, then the taxonomy's supporter
families and the re-check index (`special/post-taxonomy-supporters!`). The mint
family is read from the stored justifications, walked first, so each mint is posted
from the record the sentex walk holds. Returns {:sentexes n :rules n}.(unindex-one! index records tx sx h)Take stored sentex sx at handle h out of index: the mirror of index-one! for a
record or a rule, plus its mint family entry and the taxonomy supporters it posted. A
rule leaves the re-check index through special/retire-rule-recheck-keys!, which reads
records and the taxonomy tx (or a delay of one). Reads no belief, so a KB whose
network is not built can take a record out (vaelii.impl.record-edit). An exceptWhen
meta-sentex is not handled: its departure re-posts the predicates its rule's other
exceptions still watch.
Take stored sentex `sx` at handle `h` out of `index`: the mirror of `index-one!` for a record or a rule, plus its mint family entry and the taxonomy supporters it posted. A rule leaves the re-check index through `special/retire-rule-recheck-keys!`, which reads `records` and the taxonomy `tx` (or a delay of one). Reads no belief, so a KB whose network is not built can take a record out (`vaelii.impl.record-edit`). An `exceptWhen` meta-sentex is not handled: its departure re-posts the predicates its rule's other exceptions still watch.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |