You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Jeffrey (JIRA)" <ji...@apache.org> on 2015/04/29 22:53:07 UTC

[jira] [Created] (USERGRID-611) Update Default Dynamic Templates in ES

Jeffrey  created USERGRID-611:
---------------------------------

             Summary: Update Default Dynamic Templates in ES 
                 Key: USERGRID-611
                 URL: https://issues.apache.org/jira/browse/USERGRID-611
             Project: Usergrid
          Issue Type: Story
          Components: Stack
            Reporter: Jeffrey 


Disable norms and _all for all default templates in 2.0, ensure merged to 2.0-dev.

Sample: 
"entity_id_template": {
          "match_mapping_type": "string", 
          "mapping": {
            "_all": {
              "enabled": false
            }, 
            "index": "not_analyzed", 
            "type": "string", 
            "norms": {
              "enabled": false
            }
          }, 

Sample _default_: 
{
  "_default_": {
    "_all": {
      "enabled": false
    }, 
    "_routing": {
      "path": "ug_entityId", 
      "required": true
    }, 
    "properties": {}, 
    "dynamic_templates": [
      {
        "entity_id_template": {
          "match_mapping_type": "string", 
          "mapping": {
            "_all": {
              "enabled": false
            }, 
            "index": "not_analyzed", 
            "type": "string", 
            "norms": {
              "enabled": false
            }
          }, 
          "match": "ug_entityId"
        }
      }, 
      {
        "entity_context_template": {
          "match_mapping_type": "string", 
          "mapping": {
            "_all": {
              "enabled": false
            }, 
            "index": "not_analyzed", 
            "type": "string", 
            "norms": {
              "enabled": false
            }
          }, 
          "match": "ug_context"
        }
      }, 
      {
        "entity_version_template": {
          "match_mapping_type": "string", 
          "mapping": {
            "_all": {
              "enabled": false
            }, 
            "norms": {
              "enabled": false
            }, 
            "type": "long"
          }, 
          "match": "ug_entityVersion"
        }
      }, 
      {
        "template_1": {
          "match_mapping_type": "string", 
          "mapping": {
            "_all": {
              "enabled": false
            }, 
            "index": "not_analyzed", 
            "type": "string", 
            "norms": {
              "enabled": false
            }
          }, 
          "match": "sa_*"
        }
      }, 
      {
        "template_2": {
          "match_mapping_type": "string", 
          "mapping": {
            "_all": {
              "enabled": false
            }, 
            "index": "not_analyzed", 
            "type": "string", 
            "norms": {
              "enabled": false
            }
          }, 
          "match": "*"
        }
      }, 
      {
        "template_3": {
          "mapping": {
            "_all": {
              "enabled": false
            }, 
            "type": "geo_point"
          }, 
          "match": "go_location"
        }
      }
    ]
  }
}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)