Skip to content

Commit fd3844a

Browse files
committed
BUGFIX: Do not index text nodes
After fixing the bug with indexing - the index explodes when using texts for suggestions and autocompletion.
1 parent da6e947 commit fd3844a

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

Classes/Controller/SuggestController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ protected function buildRequestForTerm($term, $contextNodeIdentifier)
122122
'completion' => [
123123
'field' => '__suggestions',
124124
'fuzzy' => true,
125+
'size' => 10,
125126
'context' => [
126127
'parentPath' => $contextNode->getPath(),
127128
'workspace' => 'live',

Configuration/NodeTypes.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,4 @@
1818
'Neos.NodeTypes:TitleMixin':
1919
superTypes:
2020
'Flowpack.SearchPlugin:SuggestableMixin': true
21-
'Flowpack.SearchPlugin:AutocompletableMixin': true
22-
23-
'Neos.NodeTypes:TextMixin':
24-
superTypes:
25-
'Flowpack.SearchPlugin:SuggestableMixin': true
26-
'Flowpack.SearchPlugin:AutocompletableMixin': true
27-
properties:
28-
'__suggestions':
29-
search:
30-
indexing: "${Flowpack.SearchPlugin.Suggestion.buildConfig(q(node).property('text'), {nodeIdentifier: node.identifier}, 10)}"
31-
'__completion':
32-
search:
33-
indexing: "${q(node).property('text')}"
21+
'Flowpack.SearchPlugin:AutocompletableMixin': true

0 commit comments

Comments
 (0)