Volltext-Suche: Hintergrund-Job nachts aktivieren
[kivitendo-erp.git] / SL / BackgroundJob / CreateOrUpdateFileFullTexts.pm
index fd28116..055accd 100644 (file)
@@ -22,7 +22,7 @@ my %extractor_by_mime_type = (
 );
 
 sub create_job {
-  $_[0]->create_standard_job('7 * * * *'); # seven minutes after every hour
+  $_[0]->create_standard_job('20 3 * * *'); # # every day at 3:20 am
 }
 
 #
@@ -115,3 +115,30 @@ sub _text_to_strings {
 }
 
 1;
+
+__END__
+
+=pod
+
+=encoding utf8
+
+=head1 NAME
+
+SL::BackgroundJob::CreateOrUpdateFileFullTexts - Extract text strings/words from
+files in the DMS for full text search.
+
+=head1 SYNOPSIS
+
+Search all documents in the files table and try to extract strings from them
+and store the strings in the database.
+
+Duplicate strings/words in one text are removed.
+
+Strings are updated if the change or creation time of the document is newer than
+the old entry.
+
+=head1 AUTHOR
+
+Bernd Bleßmann E<lt>bernd@kivitendo-premium.deE<gt>
+
+=cut