Skip to content

Commit cac1f8e

Browse files
committed
[TASK] Adapt to YAML parser change in Flow
Makes the yaml files comply fully to the yaml syntax so that they can be parsed by the YAML parser of the PECL extension.
1 parent 473b700 commit cac1f8e

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

Configuration/NodeTypes.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@
1212
type: string
1313
index: not_analyzed
1414
include_in_all: false
15-
indexing: ${persistenceObjectIdentifier}
15+
indexing: '${persistenceObjectIdentifier}'
1616

1717
'__identifier':
1818
elasticSearch:
1919
mapping:
2020
type: string
2121
index: not_analyzed
2222
include_in_all: false
23-
indexing: ${node.getIdentifier()}
23+
indexing: '${node.getIdentifier()}'
2424

2525
'__workspace':
2626
elasticSearch:
2727
mapping:
2828
type: string
2929
index: not_analyzed
3030
include_in_all: false
31-
indexing: ${node.getWorkspace().getName()}
31+
indexing: '${node.getWorkspace().getName()}'
3232

3333
'__path':
3434
elasticSearch:
3535
mapping:
3636
type: string
3737
index: not_analyzed
3838
include_in_all: false
39-
indexing: ${node.getPath()}
39+
indexing: '${node.getPath()}'
4040

4141
'__parentPath':
4242
elasticSearch:
@@ -45,14 +45,14 @@
4545
index: not_analyzed
4646
include_in_all: false
4747
# we index *all* parent paths as separate tokens to allow for efficient searching without a prefix query
48-
indexing: ${ElasticSearch.buildAllPathPrefixes(node.getParentPath())}
48+
indexing: '${ElasticSearch.buildAllPathPrefixes(node.getParentPath())}'
4949

5050
'__sortIndex':
5151
elasticSearch:
5252
mapping:
5353
type: integer
5454
include_in_all: false
55-
indexing: ${node.getIndex()}
55+
indexing: '${node.getIndex()}'
5656

5757
'_removed':
5858
elasticSearch:
@@ -66,15 +66,15 @@
6666
type: string
6767
index: not_analyzed
6868
include_in_all: false
69-
indexing: ${ElasticSearch.extractNodeTypeNamesAndSupertypes(node.getNodeType())}
69+
indexing: '${ElasticSearch.extractNodeTypeNamesAndSupertypes(node.getNodeType())}'
7070

7171
'unstructured': *node
7272

7373
'TYPO3.Neos:Hidable':
7474
properties:
7575
'_hidden':
7676
elasticSearch:
77-
indexing: ${node.isHidden()}
77+
indexing: '${node.isHidden()}'
7878

7979
'TYPO3.Neos:Timable':
8080
properties:
@@ -84,7 +84,7 @@
8484
type: date
8585
include_in_all: false
8686
format: 'date_time_no_millis'
87-
indexing: ${(node.hiddenBeforeDateTime ? node.hiddenBeforeDateTime.format('Y-m-d\TH:i:s') + 'Z' : null)}
87+
indexing: '${(node.hiddenBeforeDateTime ? node.hiddenBeforeDateTime.format("Y-m-d\TH:i:s") + "Z" : null)}'
8888

8989

9090
'_hiddenAfterDateTime':
@@ -93,7 +93,7 @@
9393
type: date
9494
include_in_all: false
9595
format: 'date_time_no_millis'
96-
indexing: ${(node.hiddenAfterDateTime ? node.hiddenAfterDateTime.format('Y-m-d\TH:i:s') + 'Z' : null)}
96+
indexing: '${(node.hiddenAfterDateTime ? node.hiddenAfterDateTime.format("Y-m-d\TH:i:s") + "Z" : null)}'
9797

9898

9999
'TYPO3.Neos:Document':
@@ -148,10 +148,10 @@
148148
properties:
149149
'text':
150150
elasticSearch:
151-
fulltextExtractor: ${ElasticSearch.fulltext.extractHtmlTags(value)}
151+
fulltextExtractor: '${ElasticSearch.fulltext.extractHtmlTags(value)}'
152152

153153
'TYPO3.Neos.NodeTypes:Headline':
154154
properties:
155155
'title':
156156
elasticSearch:
157-
fulltextExtractor: ${ElasticSearch.fulltext.extractHtmlTags(value)}
157+
fulltextExtractor: '${ElasticSearch.fulltext.extractHtmlTags(value)}'

Configuration/Settings.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Flowpack:
99
log:
1010
backendOptions:
1111
fileBackend:
12-
logFileURL: %FLOW_PATH_DATA%Logs/ElasticSearch.log
12+
logFileURL: '%FLOW_PATH_DATA%Logs/ElasticSearch.log'
1313
createParentDirectories: TRUE
14-
severityThreshold: %LOG_DEBUG%
14+
severityThreshold: '%LOG_DEBUG%'
1515
maximumLogFileSize: 10485760
1616
logFilesToKeep: 1
1717
logMessageOrigin: FALSE
@@ -25,24 +25,24 @@ Flowpack:
2525
mapping:
2626
type: string
2727
include_in_all: false
28-
indexing: ${value}
28+
indexing: '${value}'
2929

3030
boolean:
3131
mapping:
3232
type: boolean
33-
indexing: ${value}
33+
indexing: '${value}'
3434

3535
integer:
3636
mapping:
3737
type: integer
38-
indexing: ${value}
38+
indexing: '${value}'
3939

4040
date:
4141
mapping:
4242
type: date
4343
format: 'date_time_no_millis'
4444
include_in_all: false
45-
indexing: ${(value ? value.format('Y-m-d\TH:i:s') + 'Z' : null)}
45+
indexing: '${(value ? value.format("Y-m-d\TH:i:s") + "Z" : null)}'
4646

4747

4848
'TYPO3\Media\Domain\Model\Video':
@@ -57,13 +57,13 @@ Flowpack:
5757
mapping:
5858
type: string # an array of strings, to be precise
5959
index: not_analyzed
60-
indexing: ${ElasticSearch.convertArrayOfNodesToArrayOfNodeIdentifiers(value)}
60+
indexing: '${ElasticSearch.convertArrayOfNodesToArrayOfNodeIdentifiers(value)}'
6161

6262
'reference':
6363
mapping:
6464
type: string
6565
index: not_analyzed
66-
indexing: ${value.identifier}
66+
indexing: '${value.identifier}'
6767

6868

6969
# Default context objects that are available in Eel expressions

0 commit comments

Comments
 (0)