diff --git a/Classes/Domain/Model/Document.php b/Classes/Domain/Model/Document.php
index 330aac6..9fea1b1 100644
--- a/Classes/Domain/Model/Document.php
+++ b/Classes/Domain/Model/Document.php
@@ -20,6 +20,7 @@ class Document extends AbstractDomainObject
protected string $content = '';
protected string $type = '';
protected array $_formatted = [];
+ protected int $languageId = 0;
public function getId(): string
{
@@ -91,6 +92,16 @@ public function setType(string $type): void
$this->type = strtolower($type);
}
+ public function getLanguageId(): int
+ {
+ return $this->languageId;
+ }
+
+ public function setLanguageId(int $languageId): void
+ {
+ $this->languageId = $languageId;
+ }
+
public function setFormatted(array $_formatted): void
{
if ($_formatted['content']) {
@@ -107,6 +118,12 @@ public static function createFromTSFE(TypoScriptFrontendController $tsfe): Docum
preg_match('/
(.*?)<\/body>/s', $tsfe->content, $content);
}
+ // Remove code that shouldn't be indexed
+ $content = preg_replace('/