]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/BackgroundJob/CreateOrUpdateFileFullTexts.pm
Merge branch 'b-3.6.1' into mebil
[kivitendo-erp.git] / SL / BackgroundJob / CreateOrUpdateFileFullTexts.pm
index fd281162d9cdfbbc26c80322e245dadd1fa2494f..055accda3d5081fe88d8a1a48d634f41566c83e5 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