1 | <?php |
||
18 | trait IndexConfigTrait |
||
19 | { |
||
20 | /** |
||
21 | * The name of the index for ElasticSearch. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | private $elasticSearchName; |
||
26 | |||
27 | /** |
||
28 | * The model of the index |
||
29 | * |
||
30 | * @var string|null |
||
31 | */ |
||
32 | private $model; |
||
33 | |||
34 | /** |
||
35 | * The internal name of the index. May not be the same as the name used in ElasticSearch, |
||
36 | * especially if aliases are enabled. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $name; |
||
41 | |||
42 | /** |
||
43 | * An array of settings sent to ElasticSearch when creating the index. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | private $settings; |
||
48 | |||
49 | /** |
||
50 | * @var array |
||
51 | */ |
||
52 | private $config; |
||
53 | |||
54 | /** |
||
55 | * @var array |
||
56 | */ |
||
57 | private $mapping; |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | 11 | public function getElasticSearchName(): string |
|
66 | |||
67 | 8 | public function getModel(): ?string |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | 3 | public function getName(): string |
|
79 | |||
80 | /** |
||
81 | * @return array |
||
82 | */ |
||
83 | 10 | public function getSettings(): array |
|
87 | |||
88 | 10 | public function getDateDetection(): ?bool |
|
92 | |||
93 | 9 | public function getDynamicDateFormats(): ?array |
|
97 | |||
98 | 9 | public function getAnalyzer(): ?string |
|
102 | |||
103 | 10 | public function getMapping(): array |
|
107 | |||
108 | 9 | public function getNumericDetection(): ?bool |
|
112 | |||
113 | 9 | public function getDynamic() |
|
117 | } |
||
118 |