search fix to new architecture3

This commit is contained in:
Priec
2026-08-13 22:21:31 +02:00
parent 09b4d5097a
commit 2b68560359
3 changed files with 347 additions and 123 deletions

View File

@@ -23,7 +23,7 @@ pub const F_DATA_NGRAM: &str = "data_ngram";
pub const F_DATA_EXACT: &str = "data_exact";
pub const JOURNAL_TABLE_NAME: &str = "general_ledger";
pub const ARCHIVED_ROW_KEY_PREFIX: &str = "__archive__:";
pub const SEARCH_INDEX_FORMAT_DIRECTORY: &str = "v3";
pub const SEARCH_INDEX_FORMAT_DIRECTORY: &str = "v4";
/// Root for the current on-disk index format. The format component prevents
/// an executable with new projection semantics from opening old documents.
@@ -134,7 +134,7 @@ pub fn create_search_schema() -> Schema {
schema_builder.add_u64_field(F_IS_ARCHIVED, INDEXED | STORED | FAST);
schema_builder.add_u64_field(F_TABLE_DEFINITION_ID, STORED | FAST);
schema_builder.add_u64_field(F_VERSION_NUMBER, STORED | FAST);
schema_builder.add_text_field(F_TABLE_NAME, STRING | STORED);
schema_builder.add_text_field(F_TABLE_NAME, STRING | STORED | FAST);
schema_builder.add_text_field(F_ROW_KEY, STRING | STORED);
schema_builder.add_text_field(F_ALL_TEXT, text_options(TOK_WORD));