Skip to main content

ingest_git_schema

Function ingest_git_schema 

Source
pub fn ingest_git_schema() -> Schema
Expand description

The schema a store ingest-git creates is declared with: the structure and concept_sources rules, the text fields the repository graph carries, and the memory defaults on top — a repository-as-entities store is an ordinary memory store in 0.7 and recall has to work on it.

A Schema rather than a sequence of enable_fulltext calls because enable_fulltext is not idempotent — Err(RuleInvalid) on a pair already declared — while apply_schema applies full-text idempotently. It is applied once, to a store ingest-git is creating; an existing store is never re-declared on.