File tree Expand file tree Collapse file tree 5 files changed +32
-15
lines changed Expand file tree Collapse file tree 5 files changed +32
-15
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,29 @@ language: php
2
2
3
3
sudo : true
4
4
5
+ addons :
6
+ apt :
7
+ packages :
8
+ - oracle-java8-set-default
9
+
5
10
matrix :
6
11
fast_finish : true
7
12
include :
8
13
- php : 5.6
9
14
- php : 7.0
10
15
- php : 7.1
11
- env : ES_VERSION="2.4.4"
12
- - php : 7.1
13
- env : ES_VERSION="1.7.6" DOWNLOAD_URL="https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.deb"
14
16
- php : hhvm
15
17
allow_failures :
16
18
- php : hhvm
17
19
18
20
env :
19
21
global :
20
- - ES_VERSION="2.4.4"
21
- - DOWNLOAD_URL="https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.deb"
22
+ - ES_VERSION="5.2.2"
22
23
23
24
before_install :
24
- - curl -O $DOWNLOAD_URL && sudo dpkg -i --force-confnew elasticsearch-${ES_VERSION}.deb && sudo service elasticsearch restart
25
+ - curl -O "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.deb"
26
+ - sudo dpkg -i --force-confnew elasticsearch-${ES_VERSION}.deb
27
+ - sudo service elasticsearch restart
25
28
- phpenv config-rm xdebug.ini || return 0
26
29
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini || return 0
27
30
Original file line number Diff line number Diff line change 1
1
# Changelog
2
+
3
+ ## 0.2.x
4
+
5
+ #### BC breaks
6
+
7
+ - Dropped support for Elasticsearch 1 and 2
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ using [elastic/elasticsearch-php](https://github.com/elastic/elasticsearch-php)
12
12
$ composer require broadway/read-model-elasticsearch
13
13
```
14
14
15
+ ## Version Matrix
16
+
17
+ | Elasticsearch Version | broadway/read-model-elasticsearch version |
18
+ | --------------------- | ----------------------------------------- |
19
+ | >= 5.0 | 0.2 |
20
+ | >= 1.0, < 5.0 | 0.1 |
21
+
22
+ - If you are using Elasticsearch 5.0+ , use broadway/read-model-elasticsearch 0.2.
23
+ - If you are using Elasticsearch 1.x or 2.x, use broadway/read-model-elasticsearch 0.1.
24
+
25
+
15
26
## License
16
27
17
28
MIT, see LICENSE.
Original file line number Diff line number Diff line change 3
3
"description" : " Elasticsearch read model implementation using elastic/elasticsearch-php" ,
4
4
"license" : " MIT" ,
5
5
"require" : {
6
- "php" : " >=5.5.9 " ,
6
+ "php" : " ^5.6|^7.0 " ,
7
7
"broadway/broadway" : " ^1.0" ,
8
- "elasticsearch/elasticsearch" : " ^2 .0"
8
+ "elasticsearch/elasticsearch" : " ^5 .0"
9
9
},
10
10
"authors" : [
11
11
{
49
49
},
50
50
"extra" : {
51
51
"branch-alias" : {
52
- "dev-master" : " 0.2 .x-dev"
52
+ "dev-master" : " 0.3 .x-dev"
53
53
}
54
54
}
55
55
}
Original file line number Diff line number Diff line change @@ -180,11 +180,8 @@ protected function query(array $query)
180
180
private function buildFindByQuery (array $ fields )
181
181
{
182
182
return [
183
- 'filtered ' => [
184
- 'query ' => [
185
- 'match_all ' => new \stdClass (),
186
- ],
187
- 'filter ' => $ this ->buildFilter ($ fields )
183
+ 'bool ' => [
184
+ 'must ' => $ this ->buildFilter ($ fields )
188
185
]
189
186
];
190
187
}
@@ -219,7 +216,7 @@ private function buildFilter(array $filter)
219
216
$ retval [] = ['term ' => [$ field => $ value ]];
220
217
}
221
218
222
- return [ ' and ' => $ retval] ;
219
+ return $ retval ;
223
220
}
224
221
225
222
/**
You can’t perform that action at this time.
0 commit comments