Skip to content

Commit cbd99b2

Browse files
committed
Merge branch '7.0' into bugfix/370-alias-creation
2 parents f4db0b6 + 2afe033 commit cbd99b2

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ cache:
2424

2525
before_install:
2626
- export NEOS_TARGET_VERSION=5.3
27+
- export ESCRA_VERSION=~7.0
2728
- cd ..
2829
- if [ "$ES" = 6 ]; then wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.6.tar.gz && tar xvfz elasticsearch-6.8.6.tar.gz && mv elasticsearch-6.8.6 elasticsearch; fi
2930
- if [ "$ES" = 7 ]; then wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.0-linux-x86_64.tar.gz && tar xvfz elasticsearch-7.9.0-linux-x86_64.tar.gz && mv elasticsearch-7.9.0 elasticsearch; fi
@@ -32,10 +33,7 @@ before_install:
3233
- cd ..
3334
- git clone https://github.com/neos/neos-base-distribution.git -b ${NEOS_TARGET_VERSION}
3435
- cd neos-base-distribution
35-
- composer require --no-update --no-interaction neos/content-repository-search:dev-master
36-
- composer require --no-update --no-interaction flowpack/elasticsearch:dev-master
37-
- composer require --no-update --no-interaction flowpack/elasticsearch-contentrepositoryadaptor:dev-master
38-
- composer remove --no-update --no-interaction neos/site-kickstarter
36+
- composer require --no-update --no-interaction flowpack/elasticsearch-contentrepositoryadaptor:${ESCRA_VERSION}
3937
install:
4038
- composer install --no-interaction
4139
- cd ..

Classes/Driver/Version6/Mapping/NodeTypeMappingBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function buildMappingInformation(Index $index): MappingCollection
7373

7474
if (isset($propertyConfiguration['search']['elasticSearchMapping'])) {
7575
if (is_array($propertyConfiguration['search']['elasticSearchMapping'])) {
76-
$propertyMapping = $propertyConfiguration['search']['elasticSearchMapping'];
76+
$propertyMapping = array_filter($propertyConfiguration['search']['elasticSearchMapping']);
7777
$mapping->setPropertyByPath($propertyName, $propertyMapping);
7878
}
7979
} elseif (isset($propertyConfiguration['type'], $this->defaultConfigurationPerType[$propertyConfiguration['type']]['elasticSearchMapping'])) {

Configuration/Settings.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Flowpack:
1414
driver:
1515
version: '6.x'
1616
mapping:
17-
6.x:
17+
6.x: &v6x
1818
query:
1919
className: Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\Version6\Query\FilteredQuery
2020
arguments:
@@ -76,3 +76,4 @@ Flowpack:
7676
className: 'Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\Version6\SystemDriver'
7777
nodeTypeMappingBuilder:
7878
className: 'Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\Version6\Mapping\NodeTypeMappingBuilder'
79+
7.x: *v6x

0 commit comments

Comments
 (0)