Add tests for attachment type
This commit is contained in:
parent
965b319d82
commit
c200e8fdfd
|
@ -6,6 +6,8 @@ php:
|
||||||
- 5.5
|
- 5.5
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- sudo /usr/share/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/2.0.0
|
||||||
|
- sudo service elasticsearch restart
|
||||||
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||||
- composer install --dev --prefer-source
|
- composer install --dev --prefer-source
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ fos_elastica:
|
||||||
mapping:
|
mapping:
|
||||||
analyzer: english
|
analyzer: english
|
||||||
type: string
|
type: string
|
||||||
mappings:
|
properties:
|
||||||
field1: ~
|
field1: ~
|
||||||
field2:
|
field2:
|
||||||
type: integer
|
type: integer
|
||||||
|
@ -68,6 +68,8 @@ fos_elastica:
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
date: { boost: 5 }
|
date: { boost: 5 }
|
||||||
|
agreement:
|
||||||
|
type: "attachment"
|
||||||
lastlogin: { type: date, format: basic_date_time }
|
lastlogin: { type: date, format: basic_date_time }
|
||||||
birthday: { type: date, format: "yyyy-MM-dd" }
|
birthday: { type: date, format: "yyyy-MM-dd" }
|
||||||
_parent:
|
_parent:
|
||||||
|
|
Loading…
Reference in a new issue