also use html2text when generating index using CLI

This commit is contained in:
Andrew Dolgov 2023-10-19 15:52:40 +03:00
parent 9f72616818
commit 9d07d37b6d
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}