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 internal name of the index. May not be the same as the name used in ElasticSearch, |
||
29 | * especially if aliases are enabled. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $name; |
||
34 | |||
35 | /** |
||
36 | * An array of settings sent to ElasticSearch when creating the index. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | private $settings; |
||
41 | |||
42 | /** |
||
43 | * All types that belong to this index. |
||
44 | * |
||
45 | * @var TypeConfig[] |
||
46 | */ |
||
47 | private $types; |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | 11 | public function getElasticSearchName() |
|
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | 3 | public function getName() |
|
64 | |||
65 | /** |
||
66 | * @return array |
||
67 | */ |
||
68 | 12 | public function getSettings() |
|
72 | |||
73 | /** |
||
74 | * @param string $typeName |
||
75 | * |
||
76 | * @return TypeConfig |
||
77 | * |
||
78 | * @throws \InvalidArgumentException |
||
79 | */ |
||
80 | 4 | public function getType($typeName) |
|
88 | |||
89 | /** |
||
90 | * @return \FOS\ElasticaBundle\Configuration\TypeConfig[] |
||
91 | */ |
||
92 | 11 | public function getTypes() |
|
96 | } |
||
97 |