Skip to content

Conversation

@mhaeussler-magari
Copy link
Contributor

Use as follows:

/**
 * @ES\Document(
 *      type="myType",
 *      dynamicTemplates={{
 *          "myTemplateName": {
 *              "path_match": "myField.*",
 *              "mapping": {
 *                  "type": "string",
 *                  "index": "not_analyzed"
 *              }
 *          }
 *      }}
 * )
 */
class Article extends AbstractDocument
{
...

mhaeussler-magari added 2 commits July 8, 2015 15:33
Use as follows:

/**
 * @es\Document(
 *      type="myType",
 *      dynamic_templates={{
 *          "myTemplateName": {
 *              "path_match": "myField.*",
 *              "mapping": {
 *                  "type": "string",
 *                  "index": "not_analyzed"
 *              }
 *          }
 *      }}
 * )
 */
class Article extends AbstractDocument
{
...
saimaz added a commit that referenced this pull request Jul 10, 2015
added dynamic templates for document mappings
@saimaz saimaz merged commit 4061c61 into ongr-io:master Jul 10, 2015
@saimaz
Copy link
Contributor

saimaz commented Jul 10, 2015

Thanks for PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants