Skip to content

Commit e13eae0

Browse files
author
Christian Müller
committed
[TASK] Use path access in EEL expressions
In order to work in protected eel contexts the EEL expression for reading node properties should use path access instead of calls to getter methods. This will allow the TYPO3.TYPO3CR.Search to use the EelUtility from the EEL package instead of own code. Individual expressions for indexing should also be adapted to use path access.
1 parent a9deb98 commit e13eae0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Configuration/NodeTypes.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
type: string
1313
index: not_analyzed
1414
include_in_all: false
15-
indexing: '${node.getIdentifier()}'
15+
indexing: '${node.identifier}'
1616

1717
'__workspace':
1818
search:
1919
elasticSearchMapping:
2020
type: string
2121
index: not_analyzed
2222
include_in_all: false
23-
indexing: '${node.getWorkspace().getName()}'
23+
indexing: '${node.workspace.name}'
2424

2525
'__path':
2626
search:
2727
elasticSearchMapping:
2828
type: string
2929
index: not_analyzed
3030
include_in_all: false
31-
indexing: '${node.getPath()}'
31+
indexing: '${node.path}'
3232

3333
'__parentPath':
3434
search:
@@ -37,14 +37,14 @@
3737
index: not_analyzed
3838
include_in_all: false
3939
# we index *all* parent paths as separate tokens to allow for efficient searching without a prefix query
40-
indexing: '${Indexing.buildAllPathPrefixes(node.getParentPath())}'
40+
indexing: '${Indexing.buildAllPathPrefixes(node.parentPath)}'
4141

4242
'__sortIndex':
4343
search:
4444
elasticSearchMapping:
4545
type: integer
4646
include_in_all: false
47-
indexing: '${node.getIndex()}'
47+
indexing: '${node.index}'
4848

4949
'_removed':
5050
search:
@@ -58,15 +58,15 @@
5858
type: string
5959
index: not_analyzed
6060
include_in_all: false
61-
indexing: '${Indexing.extractNodeTypeNamesAndSupertypes(node.getNodeType())}'
61+
indexing: '${Indexing.extractNodeTypeNamesAndSupertypes(node.nodeType)}'
6262

6363
'unstructured': *node
6464

6565
'TYPO3.Neos:Hidable':
6666
properties:
6767
'_hidden':
6868
search:
69-
indexing: '${node.isHidden()}'
69+
indexing: '${node.hidden}'
7070

7171
'TYPO3.Neos:Timable':
7272
properties:

0 commit comments

Comments
 (0)