Add tests for attachment type
This commit is contained in:
parent
965b319d82
commit
c200e8fdfd
|
@ -6,6 +6,8 @@ php:
|
|||
- 5.5
|
||||
|
||||
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
|
||||
- composer install --dev --prefer-source
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ fos_elastica:
|
|||
mapping:
|
||||
analyzer: english
|
||||
type: string
|
||||
mappings:
|
||||
properties:
|
||||
field1: ~
|
||||
field2:
|
||||
type: integer
|
||||
|
@ -68,6 +68,8 @@ fos_elastica:
|
|||
type: "object"
|
||||
properties:
|
||||
date: { boost: 5 }
|
||||
agreement:
|
||||
type: "attachment"
|
||||
lastlogin: { type: date, format: basic_date_time }
|
||||
birthday: { type: date, format: "yyyy-MM-dd" }
|
||||
_parent:
|
||||
|
|
Loading…
Reference in a new issue