about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index e3d65f4a..c13d4834 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -226,6 +226,11 @@ sub done {
                 waitpid($pid, 0) == $pid or
                         die 'update-server-info did not finish';
                 $? == 0 or die "failed to update-server-info: $?\n";
+
+                eval {
+                        require PublicInbox::SearchIdx;
+                        PublicInbox::SearchIdx->new($git_dir, 2)->index_sync;
+                };
         }
 
         my $lockfh = delete $self->{lockfh} or die "BUG: not locked: $!";