Skip to content

Commit 45e0975

Browse files
committed
TASK: Update mapping configuration
1 parent ee7c028 commit 45e0975

2 files changed

Lines changed: 14 additions & 27 deletions

File tree

Configuration/NodeTypes.yaml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,25 @@
66
'__identifier':
77
search:
88
elasticSearchMapping:
9-
type: string
10-
index: not_analyzed
9+
type: keyword
1110
indexing: '${node.identifier}'
1211

1312
'__workspace':
1413
search:
1514
elasticSearchMapping:
16-
type: string
17-
index: not_analyzed
15+
type: keyword
1816
indexing: '${node.context.workspace.name}'
1917

2018
'__path':
2119
search:
2220
elasticSearchMapping:
23-
type: string
24-
index: not_analyzed
21+
type: keyword
2522
indexing: '${node.path}'
2623

2724
'__parentPath':
2825
search:
2926
elasticSearchMapping:
30-
type: string
31-
index: not_analyzed
27+
type: keyword
3228
# we index *all* parent paths as separate tokens to allow for efficient searching without a prefix query
3329
indexing: '${Indexing.buildAllPathPrefixes(node.parentPath)}'
3430

@@ -47,8 +43,7 @@
4743
'__typeAndSupertypes':
4844
search:
4945
elasticSearchMapping:
50-
type: string
51-
index: not_analyzed
46+
type: keyword
5247
indexing: '${Indexing.extractNodeTypeNamesAndSupertypes(node.nodeType)}'
5348

5449
'_lastModificationDateTime':
@@ -105,8 +100,7 @@
105100
'uriPathSegment':
106101
search:
107102
elasticSearchMapping:
108-
type: string
109-
index: not_analyzed
103+
type: keyword
110104
title:
111105
search:
112106
fulltextExtractor: ${Indexing.extractInto('h1', value)}
@@ -123,32 +117,25 @@
123117
type: object
124118
properties:
125119
'h1':
126-
type: string
127-
index: analyzed
120+
type: text
128121
boost: 20
129122
'h2':
130-
type: string
131-
index: analyzed
123+
type: text
132124
boost: 12
133125
'h3':
134-
type: string
135-
index: analyzed
126+
type: text
136127
boost: 10
137128
'h4':
138-
type: string
139-
index: analyzed
129+
type: text
140130
boost: 5
141131
'h5':
142-
type: string
143-
index: analyzed
132+
type: text
144133
boost: 3
145134
'h6':
146-
type: string
147-
index: analyzed
135+
type: text
148136
boost: 2
149137
'text':
150-
type: string
151-
index: analyzed
138+
type: text
152139
boost: 1
153140
'_hiddenInIndex':
154141
search:

Configuration/Testing/NodeTypes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'Neos.Neos:Document':
1414
properties:
1515
title_analyzed:
16-
type: text
16+
type: string
1717
search:
1818
elasticSearchMapping:
1919
type: text

0 commit comments

Comments
 (0)