1 | <?php |
||
19 | trait IndexConfigTrait |
||
20 | { |
||
21 | /** |
||
22 | * The name of the index for ElasticSearch. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $elasticSearchName; |
||
27 | |||
28 | /** |
||
29 | * The model of the index. |
||
30 | * |
||
31 | * @var string|null |
||
32 | */ |
||
33 | private $model; |
||
34 | |||
35 | /** |
||
36 | * The internal name of the index. May not be the same as the name used in ElasticSearch, |
||
37 | * especially if aliases are enabled. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $name; |
||
42 | |||
43 | /** |
||
44 | * An array of settings sent to ElasticSearch when creating the index. |
||
45 | * |
||
46 | * @var array |
||
47 | */ |
||
48 | private $settings; |
||
49 | |||
50 | /** |
||
51 | * @var array |
||
52 | */ |
||
53 | private $config; |
||
54 | |||
55 | /** |
||
56 | * @var array |
||
57 | */ |
||
58 | private $mapping; |
||
59 | |||
60 | 12 | public function getElasticSearchName(): string |
|
64 | |||
65 | 8 | public function getModel(): ?string |
|
69 | |||
70 | 3 | public function getName(): string |
|
74 | |||
75 | 10 | public function getSettings(): array |
|
79 | |||
80 | 10 | public function getDateDetection(): ?bool |
|
84 | |||
85 | 9 | public function getDynamicDateFormats(): ?array |
|
89 | |||
90 | 9 | public function getAnalyzer(): ?string |
|
94 | |||
95 | 10 | public function getMapping(): array |
|
99 | |||
100 | 9 | public function getNumericDetection(): ?bool |
|
104 | |||
105 | 9 | public function getDynamic() |
|
109 | } |
||
110 |