Skip to content

Commit 6b411bf

Browse files
committed
Moved configuration index mapping out of the rotator.
1 parent 2aee300 commit 6b411bf

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

src/ConfigurationIndex.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

src/IndexRotator.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)