Flowpack.ElasticSearch icon indicating copy to clipboard operation
Flowpack.ElasticSearch copied to clipboard

Allow mapping annotations at class level

Open dogawaf opened this issue 9 years ago • 1 comments

It would be cool to be able to define mapping at the class level. This way, we could address the mapping for the _all field.


/**
 * @Flow\Entity
 * @ElasticSearch\Indexable("acme", typeName="organization")
 * @ElasticSearch\Mapping(index_name="_all", analyzer="standard_french")
 */
class Organization {

}

dogawaf avatar Jan 16 '16 14:01 dogawaf

Nice idea, I don't have time to work on it, can you try to provide a basic PR @dogawaf I can help to make it mergeable

dfeyer avatar Mar 07 '16 19:03 dfeyer