Skip to content

Commit 66633e1

Browse files
committed
Added STI flag to index settings
1 parent 845aa3c commit 66633e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Mapping/Settings.php

100755100644
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Settings implements \Spameri\ElasticQuery\Entity\ArrayInterface
1616

1717
public function __construct(
1818
private string $indexName,
19+
private bool $hasSti = false,
1920
\Spameri\ElasticQuery\Mapping\Settings\Analysis|null $analysis = null,
2021
\Spameri\ElasticQuery\Mapping\Settings\Mapping|null $mapping = null,
2122
\Spameri\ElasticQuery\Mapping\Settings\AliasCollection|null $alias = null,
@@ -42,6 +43,10 @@ public function indexName(): string
4243
return $this->indexName;
4344
}
4445

46+
public function hasSti(): bool
47+
{
48+
return $this->hasSti;
49+
}
4550

4651
public function changeIndexName(string $index): void
4752
{

0 commit comments

Comments
 (0)