fix: remove unused content_partial field from seeders

content_partial was introduced alongside a partialMatch() query that
targeted it. That query was later switched to use the content field
instead, but content_partial was never removed from the seeders,
causing every document to store and index its content twice.
This commit is contained in:
Bart van Bragt 2026-04-09 08:39:58 +02:00
parent eeb091273d
commit 369ee504f3
2 changed files with 0 additions and 2 deletions

View File

@ -76,7 +76,6 @@ class CommentSeeder extends Seeder
'id' => $this->type().':'.$model->id,
'rawId' => $model->id,
'content' => $model->content,
'content_partial' => $model->content,
'created_at' => $model->created_at?->toAtomString(),
'updated_at' => $model->edited_at?->toAtomString(),
'is_private' => $model->is_private,

View File

@ -80,7 +80,6 @@ class DiscussionSeeder extends Seeder
'id' => $this->type().':'.$model->id,
'rawId' => $model->id,
'content' => $model->title,
'content_partial' => $model->title,
'created_at' => $model->created_at?->toAtomString(),
'updated_at' => $model->last_posted_at?->toAtomString(),
'is_private' => $model->is_private,