elasticsearch - Elastic search nested document mapping -


i created index , mapping, appears mapping nested documents changed after start adding documents index.

before start adding documents mapping is:

{"products_1_1": {     "mappings": {       "product": {         "properties": {           "description": {             "type": "string"           },           "metadescription": {             "type": "string"           },           "metatitle": {             "type": "string"           },           "mis_spells": {             "type": "string"           },           "name": {             "type": "string"           },           "productid": {             "type": "integer"           },           "categories": {             "type": "nested",             "include_in_parent": true,             "properties": {               "default_category": {                 "type": "integer",                 "index": "no"               },               "filter_name": {                 "type": "string",                 "index": "not_analyzed"               },               "id": {                 "type": "integer"               },               "name": {                 "type": "string"               },               "parent_categories_ids": {                 "type": "string",                 "index": "no"               },               "parent_categories_names": {                 "type": "string",                 "index": "no"               },               "parent_categories_url": {                 "type": "string",                 "index": "no"               },               "parent_category": {                 "type": "integer",                 "index": "no"               },               "tags": {                 "type": "string"               },               "url": {                 "type": "string",                 "index": "no"               }             }           }         }       }     }   } } 

after start inserting documents mapping becomes:

{"products_1_1": {     "mappings": {       "product": {         "properties": {           "description": {             "type": "string"           },           "metadescription": {             "type": "string"           },           "metatitle": {             "type": "string"           },           "mis_spells": {             "type": "string"           },           "name": {             "type": "string"           },           "productid": {             "type": "integer"           },           "categories": {             "type": "nested",             "include_in_parent": true,             "properties": {               "0": {                 "properties": {                   "default_category": {                     "type": "long"                   },                   "filter_name": {                     "type": "string"                   },                   "id": {                     "type": "long"                   },                   "name": {                     "type": "string"                   },                   "parent_categories_ids": {                     "type": "string"                   },                   "parent_categories_names": {                     "type": "string"                   },                   "parent_categories_url": {                     "type": "string"                   },                   "parent_category": {                     "type": "long"                   },                   "tags": {                     "type": "string"                   },                   "url": {                     "type": "string"                   }                 }               },               "1": {                 "properties": {                   "default_category": {                     "type": "long"                   },                   "filter_name": {                     "type": "string"                   },                   "id": {                     "type": "long"                   },                   "name": {                     "type": "string"                   },                   "parent_categories_ids": {                     "type": "string"                   },                   "parent_categories_names": {                     "type": "string"                   },                   "parent_categories_url": {                     "type": "string"                   },                   "parent_category": {                     "type": "long"                   },                   "tags": {                     "type": "string"                   },                   "url": {                     "type": "string"                   }                 }               },               "2": {                 "properties": {                   "default_category": {                     "type": "long"                   },                   "filter_name": {                     "type": "string"                   },                   "id": {                     "type": "long"                   },                   "name": {                     "type": "string"                   },                   "parent_categories_ids": {                     "type": "string"                   },                   "parent_categories_names": {                     "type": "string"                   },                   "parent_categories_url": {                     "type": "string"                   },                   "parent_category": {                     "type": "long"                   },                   "tags": {                     "type": "string"                   },                   "url": {                     "type": "string"                   }                 }               }, ...               "default_category": {                 "type": "integer",                 "index": "no"               },               "filter_name": {                 "type": "string",                 "index": "not_analyzed"               },               "id": {                 "type": "integer"               },               "name": {                 "type": "string"               },               "parent_categories_ids": {                 "type": "string",                 "index": "no"               },               "parent_categories_names": {                 "type": "string",                 "index": "no"               },               "parent_categories_url": {                 "type": "string",                 "index": "no"               },               "parent_category": {                 "type": "integer",                 "index": "no"               },               "tags": {                 "type": "string"               },               "url": {                 "type": "string",                 "index": "no"               }             }           }         }       }     }   } } 

does have idea why mapping altered way?

thanks!


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -