File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed
Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,22 @@ class ConfigurationIndex
1111 const TYPE_CONFIGURATION = 'configuration ' ;
1212 const PRIMARY_ID = 'primary ' ;
1313
14+ /**
15+ * Mapping for configuration index.
16+ *
17+ * @var array
18+ */
19+ public static $ elasticSearchConfigurationMapping = [
20+ 'mappings ' => [
21+ 'configuration ' => [
22+ 'properties ' => [
23+ 'name ' => ['type ' => 'string ' , 'index ' => 'not_analyzed ' ],
24+ 'timestamp ' => ['type ' => 'date ' ]
25+ ]
26+ ]
27+ ]
28+ ];
29+
1430 /**
1531 * Constructor.
1632 *
Original file line number Diff line number Diff line change @@ -38,21 +38,6 @@ class IndexRotator
3838 */
3939 private $ primaryIndexStrategy ;
4040
41- /**
42- * Mapping for configuration index.
43- *
44- * @var array
45- */
46- public static $ elasticSearchConfigurationMapping = [
47- 'mappings ' => [
48- 'configuration ' => [
49- 'properties ' => [
50- 'name ' => ['type ' => 'string ' , 'index ' => 'not_analyzed ' ],
51- 'timestamp ' => ['type ' => 'date ' ]
52- ]
53- ]
54- ]
55- ];
5641 /**
5742 * Constructor.
5843 *
You can’t perform that action at this time.
0 commit comments