Wednesday, 15 September 2010

symfony2 - fos elasticabundle mapping type "array" -



symfony2 - fos elasticabundle mapping type "array" -

i have doctrine array in column "tags" in table/entity "category".

fos elasticabundle , working, , want add together "tags" column search.

i cannot find resources on how set up. here i've tried , do.

search: client: default types: category: mappings: displayname: ~ searchref: ~ tags: type: 'array' persistence: driver: orm model: sc\providerbundle\entity\category provider: ~ listener: ~ finder: ~

i have 3 other types utilize mapping type "nested" run fine. array expected has no keys, don't know set downwards properties.

i'm getting error

[elastica\exception\responseexception] mapperparsingexception[mapping [category]]; nested: mapperparsingexception[no handler type [array] declared on field [tags]];

how set mapping type "tags" array in symfony2 using foselasticabundle , in documentation?

the reply

type: category: mappings: tags: type: 'string'

as described here

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-array-type.html

arrays symfony2 doctrine2 yaml elastica

No comments:

Post a Comment