Skip to content

Commit 033cb65

Browse files
Merge pull request #55 from daniellienert/task/update-to-elasticsearch-7
TASK: Update package for compatibility with ESCRA v7
2 parents cbaca00 + fe0b6a7 commit 033cb65

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

Classes/Controller/SuggestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function buildRequestForTerm($term, $contextNodeIdentifier, $dimension
120120
$contentContext = $this->createContentContext('live', $dimensionCombination ? json_decode($dimensionCombination, true) : []);
121121
$contextNode = $contentContext->getNodeByIdentifier($contextNodeIdentifier);
122122

123-
$sourceFields = $this->searchAsYouTypeSettings['suggestions']['sourceFields'] ?? ['__path'];
123+
$sourceFields = $this->searchAsYouTypeSettings['suggestions']['sourceFields'] ?? ['neos_path'];
124124

125125
/** @var ElasticSearchQueryBuilder $query */
126126
$query = $this->elasticSearchQueryBuilder

Configuration/NodeTypes.Mixin.Suggestable.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
-
1010
name: 'workspace'
1111
type: category
12-
path: '__workspace'
12+
path: 'neos_workspace'
1313
-
1414
name: 'parentPath'
1515
type: category
16-
path: '__parentPath'
16+
path: 'neos_parent_path '
1717
-
1818
name: 'dimensionCombinationHash'
1919
type: category

Configuration/Settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Flowpack:
66
suggestions:
77
size: 10
88
sourceFields:
9-
- __path
9+
- neos_path
1010
- title

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
"Neos.Neos-20161219122512",
9191
"Neos.Fusion-20161219130100",
9292
"Neos.Neos-20161220163741",
93-
"Neos.Fusion-20170120013047"
93+
"Neos.Fusion-20170120013047",
94+
"Flowpack.ElasticSearch.ContentRepositoryAdaptor-20200513223401"
9495
]
9596
}
96-
}
97+
}

0 commit comments

Comments
 (0)