diff options
author | Andrew Dolgov <[email protected]> | 2023-10-19 15:52:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-19 15:52:40 +0300 |
commit | 9d07d37b6dae01abb080ca2958bcf78054324fe9 (patch) | |
tree | e1485fad171519963f330af0dd43ce154e77dabf | |
parent | 9f72616818daf2b3d01a580f0eda634c08513077 (diff) |
also use html2text when generating index using CLI
-rwxr-xr-x | update.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update.php b/update.php index 5e31c805b..4fd517701 100755 --- a/update.php +++ b/update.php @@ -317,7 +317,7 @@ while (true) { foreach ($entries as $entry) { - $tsvector_combined = mb_substr(strip_tags($entry->title . " " . $entry->content), 0, 1000000); + $tsvector_combined = mb_substr(strip_tags($entry->title) . " " . \Soundasleep\Html2Text::convert($entry->content), 0, 900000); $usth->execute([$tsvector_combined, $entry->id]); $processed++; } |