@@ -107,9 +107,9 @@ use crate::{
107107 finish_bootstrap_update,
108108 } ,
109109 reads:: ReadSet ,
110- search_and_vector_bootstrap :: {
110+ search_index_bootstrap :: {
111111 stream_revision_pairs_for_indexes,
112- BootstrappedSearchAndVectorIndexes ,
112+ BootstrappedSearchIndexes ,
113113 } ,
114114 snapshot_manager:: SnapshotManager ,
115115 transaction:: FinalTransaction ,
@@ -285,7 +285,7 @@ impl<RT: Runtime> Committer<RT> {
285285 Some ( CommitterMessage :: BumpMaxRepeatableTs { result } ) => {
286286 self . bump_max_repeatable_ts( result) ;
287287 } ,
288- Some ( CommitterMessage :: FinishSearchAndVectorBootstrap {
288+ Some ( CommitterMessage :: FinishTextAndVectorBootstrap {
289289 bootstrapped_indexes,
290290 bootstrap_ts,
291291 result,
@@ -309,18 +309,18 @@ impl<RT: Runtime> Committer<RT> {
309309 }
310310
311311 async fn update_indexes_since_bootstrap (
312- BootstrappedSearchAndVectorIndexes {
313- search_index_manager ,
312+ BootstrappedSearchIndexes {
313+ text_index_manager ,
314314 vector_index_manager,
315315 tables_with_indexes,
316- } : & mut BootstrappedSearchAndVectorIndexes < RT > ,
316+ } : & mut BootstrappedSearchIndexes < RT > ,
317317 bootstrap_ts : Timestamp ,
318318 persistence : RepeatablePersistence ,
319319 registry : & IndexRegistry ,
320320 ) -> anyhow:: Result < ( ) > {
321321 let _timer = bootstrap_update_timer ( ) ;
322322 anyhow:: ensure!(
323- !search_index_manager . is_bootstrapping( ) ,
323+ !text_index_manager . is_bootstrapping( ) ,
324324 "Trying to update search index while it's still bootstrapping"
325325 ) ;
326326 anyhow:: ensure!(
@@ -338,7 +338,7 @@ impl<RT: Runtime> Committer<RT> {
338338 while let Some ( revision_pair) = revision_stream. try_next ( ) . await ? {
339339 num_revisions += 1 ;
340340 total_size += revision_pair. document ( ) . map ( |d| d. size ( ) ) . unwrap_or ( 0 ) ;
341- search_index_manager . update (
341+ text_index_manager . update (
342342 registry,
343343 revision_pair. prev_document ( ) ,
344344 revision_pair. document ( ) ,
@@ -357,7 +357,7 @@ impl<RT: Runtime> Committer<RT> {
357357
358358 async fn finish_search_and_vector_bootstrap (
359359 & mut self ,
360- mut bootstrapped_indexes : BootstrappedSearchAndVectorIndexes < RT > ,
360+ mut bootstrapped_indexes : BootstrappedSearchIndexes < RT > ,
361361 bootstrap_ts : RepeatableTimestamp ,
362362 result : oneshot:: Sender < anyhow:: Result < ( ) > > ,
363363 ) {
@@ -393,8 +393,8 @@ impl<RT: Runtime> Committer<RT> {
393393 if latest_ts != snapshot_manager. latest_ts ( ) {
394394 panic ! ( "Snapshots were changed concurrently during commit?" ) ;
395395 }
396- snapshot_manager. overwrite_last_snapshot_search_and_vector_indexes (
397- bootstrapped_indexes. search_index_manager ,
396+ snapshot_manager. overwrite_last_snapshot_text_and_vector_indexes (
397+ bootstrapped_indexes. text_index_manager ,
398398 bootstrapped_indexes. vector_index_manager ,
399399 ) ;
400400 tracing:: info!( "Committed backfilled vector indexes" ) ;
@@ -849,11 +849,11 @@ impl<RT: Runtime> Clone for CommitterClient<RT> {
849849impl < RT : Runtime > CommitterClient < RT > {
850850 pub async fn finish_search_and_vector_bootstrap (
851851 & self ,
852- bootstrapped_indexes : BootstrappedSearchAndVectorIndexes < RT > ,
852+ bootstrapped_indexes : BootstrappedSearchIndexes < RT > ,
853853 bootstrap_ts : RepeatableTimestamp ,
854854 ) -> anyhow:: Result < ( ) > {
855855 let ( tx, rx) = oneshot:: channel ( ) ;
856- let message = CommitterMessage :: FinishSearchAndVectorBootstrap {
856+ let message = CommitterMessage :: FinishTextAndVectorBootstrap {
857857 bootstrapped_indexes,
858858 bootstrap_ts,
859859 result : tx,
@@ -1012,8 +1012,8 @@ enum CommitterMessage<RT: Runtime> {
10121012 tables : BTreeSet < TableName > ,
10131013 result : oneshot:: Sender < anyhow:: Result < ( ) > > ,
10141014 } ,
1015- FinishSearchAndVectorBootstrap {
1016- bootstrapped_indexes : BootstrappedSearchAndVectorIndexes < RT > ,
1015+ FinishTextAndVectorBootstrap {
1016+ bootstrapped_indexes : BootstrappedSearchIndexes < RT > ,
10171017 bootstrap_ts : RepeatableTimestamp ,
10181018 result : oneshot:: Sender < anyhow:: Result < ( ) > > ,
10191019 } ,
0 commit comments