Add tests for attachment type

This commit is contained in:
Tim Nagel 2014-07-03 19:59:33 +10:00
parent 965b319d82
commit c200e8fdfd
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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: