Skip to content

Commit ff81762

Browse files
committed
TASK: Refactor nodeTypes to separate files
1 parent 2f80e3c commit ff81762

6 files changed

Lines changed: 78 additions & 84 deletions
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
'Neos.Neos:Document':
2+
search:
3+
fulltext:
4+
isRoot: true
5+
properties:
6+
'uriPathSegment':
7+
search:
8+
elasticSearchMapping:
9+
type: keyword
10+
title:
11+
search:
12+
fulltextExtractor: ${Indexing.extractInto('h1', value)}
13+
'__fulltextParts':
14+
search:
15+
elasticSearchMapping:
16+
type: object
17+
enabled: false
18+
indexing: ''
19+
'__fulltext':
20+
search:
21+
indexing: ''
22+
elasticSearchMapping:
23+
type: object
24+
properties:
25+
'h1':
26+
type: text
27+
boost: 20
28+
'h2':
29+
type: text
30+
boost: 12
31+
'h3':
32+
type: text
33+
boost: 10
34+
'h4':
35+
type: text
36+
boost: 5
37+
'h5':
38+
type: text
39+
boost: 3
40+
'h6':
41+
type: text
42+
boost: 2
43+
'text':
44+
type: text
45+
boost: 1
46+
'_hiddenInIndex':
47+
search:
48+
indexing: '${node.hiddenInIndex}'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'Neos.Neos:Hidable':
2+
properties:
3+
'_hidden':
4+
search:
5+
indexing: '${node.hidden}'

Configuration/NodeTypes.yaml renamed to Configuration/NodeTypes.Override.Node.yaml

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -68,87 +68,3 @@
6868
indexing: '${(node.creationDateTime ? Date.format(node.creationDateTime, "Y-m-d\TH:i:sP") : null)}'
6969

7070
'unstructured': *node
71-
72-
'Neos.Neos:Hidable':
73-
properties:
74-
'_hidden':
75-
search:
76-
indexing: '${node.hidden}'
77-
78-
'Neos.Neos:Timable':
79-
properties:
80-
'_hiddenBeforeDateTime':
81-
search:
82-
elasticSearchMapping:
83-
type: date
84-
format: 'date_time_no_millis'
85-
indexing: '${(node.hiddenBeforeDateTime ? Date.format(node.hiddenBeforeDateTime, "Y-m-d\TH:i:sP") : null)}'
86-
87-
'_hiddenAfterDateTime':
88-
search:
89-
elasticSearchMapping:
90-
type: date
91-
format: 'date_time_no_millis'
92-
indexing: '${(node.hiddenAfterDateTime ? Date.format(node.hiddenAfterDateTime, "Y-m-d\TH:i:sP") : null)}'
93-
94-
95-
'Neos.Neos:Document':
96-
search:
97-
fulltext:
98-
isRoot: true
99-
properties:
100-
'uriPathSegment':
101-
search:
102-
elasticSearchMapping:
103-
type: keyword
104-
title:
105-
search:
106-
fulltextExtractor: ${Indexing.extractInto('h1', value)}
107-
'__fulltextParts':
108-
search:
109-
elasticSearchMapping:
110-
type: object
111-
enabled: false
112-
indexing: ''
113-
'__fulltext':
114-
search:
115-
indexing: ''
116-
elasticSearchMapping:
117-
type: object
118-
properties:
119-
'h1':
120-
type: text
121-
boost: 20
122-
'h2':
123-
type: text
124-
boost: 12
125-
'h3':
126-
type: text
127-
boost: 10
128-
'h4':
129-
type: text
130-
boost: 5
131-
'h5':
132-
type: text
133-
boost: 3
134-
'h6':
135-
type: text
136-
boost: 2
137-
'text':
138-
type: text
139-
boost: 1
140-
'_hiddenInIndex':
141-
search:
142-
indexing: '${node.hiddenInIndex}'
143-
144-
'Neos.NodeTypes.BaseMixins:TextMixin':
145-
properties:
146-
'text':
147-
search:
148-
fulltextExtractor: '${Indexing.extractHtmlTags(value)}'
149-
150-
'Neos.NodeTypes.BaseMixins:TitleMixin':
151-
properties:
152-
'title':
153-
search:
154-
fulltextExtractor: '${Indexing.extractHtmlTags(value)}'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'Neos.NodeTypes.BaseMixins:TextMixin':
2+
properties:
3+
'text':
4+
search:
5+
fulltextExtractor: '${Indexing.extractHtmlTags(value)}'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'Neos.Neos:Timable':
2+
properties:
3+
'_hiddenBeforeDateTime':
4+
search:
5+
elasticSearchMapping:
6+
type: date
7+
format: 'date_time_no_millis'
8+
indexing: '${(node.hiddenBeforeDateTime ? Date.format(node.hiddenBeforeDateTime, "Y-m-d\TH:i:sP") : null)}'
9+
10+
'_hiddenAfterDateTime':
11+
search:
12+
elasticSearchMapping:
13+
type: date
14+
format: 'date_time_no_millis'
15+
indexing: '${(node.hiddenAfterDateTime ? Date.format(node.hiddenAfterDateTime, "Y-m-d\TH:i:sP") : null)}'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'Neos.NodeTypes.BaseMixins:TitleMixin':
2+
properties:
3+
'title':
4+
search:
5+
fulltextExtractor: '${Indexing.extractHtmlTags(value)}'

0 commit comments

Comments
 (0)