sure.
Mapping of the destination index:
{
"product-definition-v19": {
"mappings": {
"dynamic": "false",
"properties": {
"_class": {
"type": "keyword",
"index": false,
"doc_values": false
},
"aggregaterating": {
"properties": {
"bestrating": {
"type": "float"
},
"itemreviewed": {
"type": "text"
},
"ratingcount": {
"type": "float"
},
"ratingvalue": {
"type": "float"
},
"reviewcount": {
"type": "float"
},
"type": {
"type": "text"
},
"worstrating": {
"type": "float"
}
}
},
"ai": {
"properties": {
"ClassifierResult": {
"properties": {
"cat1": {
"type": "keyword"
},
"cat2": {
"type": "keyword"
},
"cat3": {
"type": "keyword"
},
"cat4": {
"type": "keyword"
},
"cat5": {
"type": "keyword"
},
"cat6": {
"type": "keyword"
},
"cat7": {
"type": "keyword"
},
"cat8": {
"type": "keyword"
}
}
},
"NerResult": {
"properties": {
"brand": {
"type": "text"
},
"category": {
"type": "text"
},
"feature": {
"type": "text"
},
"model": {
"type": "text"
},
"prod_cat": {
"type": "text"
},
"product": {
"type": "text"
}
}
},
"PageQuality": {
"type": "double"
},
"RefinedName": {
"type": "text",
"fields": {
"1gram": {
"type": "text",
"analyzer": "first_1gram",
"search_analyzer": "first_1gram_search"
},
"2gram": {
"type": "text",
"analyzer": "first_2gram",
"search_analyzer": "first_2gram_search"
},
"3gram": {
"type": "text",
"analyzer": "first_3gram",
"search_analyzer": "first_3gram_search"
}
},
"analyzer": "refined_name_analyzer",
"search_analyzer": "refined_name_search_analyzer"
},
"RefinedTitle": {
"type": "text",
"analyzer": "refined_name_analyzer",
"search_analyzer": "refined_name_search_analyzer"
},
"product": {
"properties": {
"popularity": {
"type": "double"
},
"score": {
"type": "double"
}
}
},
"version": {
"type": "keyword"
}
}
},
"aiDesc": {
"type": "text"
},
"altBrand": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"analyzer": "persian"
},
"autoSeoEnabled": {
"type": "boolean"
},
"available": {
"type": "boolean"
},
"availableShopCount": {
"type": "integer"
},
"brand": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"analyzer": "persian"
},
"brandIdentifier": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"cat1": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cat2": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cat3": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cat4": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cat5": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cat6": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cat7": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cat8": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"categoriesIdentifier": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"classifier": {
"properties": {
"version": {
"type": "keyword"
}
}
},
"creationTime": {
"type": "date"
},
"discountModificationTime": {
"type": "date"
},
"discountPercent": {
"type": "byte"
},
"featured": {
"type": "boolean"
},
"featuredLevel": {
"type": "integer"
},
"image": {
"type": "keyword",
"ignore_above": 512
},
"metaTags": {
"properties": {
"collection": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"model": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"analyzer": "persian"
},
"modificationTime": {
"type": "date"
},
"names": {
"type": "text",
"fields": {
"1gram": {
"type": "text",
"analyzer": "first_1gram",
"search_analyzer": "first_1gram_search"
},
"2gram": {
"type": "text",
"analyzer": "first_2gram",
"search_analyzer": "first_2gram_search"
},
"3gram": {
"type": "text",
"analyzer": "first_3gram",
"search_analyzer": "first_3gram_search"
}
},
"analyzer": "name_analyzer",
"search_analyzer": "name_search_analyzer"
},
"ner": {
"properties": {
"brand": {
"type": "text"
},
"category": {
"type": "text"
},
"feature": {
"type": "text"
},
"model": {
"type": "text"
},
"prod_cat": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"product": {
"type": "text"
},
"version": {
"type": "keyword"
}
}
},
"nonRefinedBrand": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"analyzer": "persian"
},
"page-quality": {
"type": "float"
},
"persist": {
"type": "boolean"
},
"price": {
"type": "long"
},
"properties": {
"type": "text",
"analyzer": "persian"
},
"providerUrl": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"rank": {
"type": "rank_feature"
},
"rankableShopCount": {
"type": "rank_feature"
},
"refinedBrand": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"analyzer": "persian"
},
"relatedHosts": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"analyzer": "persian"
},
"relatedNames": {
"type": "text",
"analyzer": "persian"
},
"relatedShopsIdentifier": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"representativeShopIdentifier": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"representativeShopName": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"seoEnabled": {
"type": "boolean"
},
"tag": {
"properties": {
"version": {
"type": "keyword"
}
}
},
"tags": {
"properties": {
"confidence": {
"type": "double"
},
"id": {
"type": "keyword"
}
}
},
"title": {
"type": "text",
"analyzer": "persian"
},
"torobId": {
"type": "keyword"
},
"totalShopCount": {
"type": "integer"
},
"url": {
"type": "keyword",
"ignore_above": 512
},
"visits": {
"type": "integer"
}
}
}
}
}
A sample from source index
{
"took" : 6,
"timed_out" : false,
"_shards" : {
"total" : 3,
"successful" : 3,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "product-definition-v19",
"_type" : "_doc",
"_id" : "e40ee20e-6282-38f3-9933-3e750c6f3f69",
"_score" : 1.0,
"_source" : {
"available" : true,
"videos" : [ ],
"representativeShopName" : "site.com",
"cat8" : "none",
"relatedHosts" : [
"site.com"
],
"cat6" : "none",
"cat7" : "none",
"aiTags" : [
"dummy",
"dummy",
"dummy"
],
"price" : 1111,
"modificationTime" : "2024-01-08T13:22:01.491Z",
"rank" : 0.5162081334432932,
"model" : "dummy",
"ner" : {
"product" : "dummy",
"feature" : "dummy",
"model" : "dummy",
"store" : "",
"none" : "dummy",
"category" : "microusb",
"brand" : "dummy",
"prod_cat" : "dummy"
},
"id" : "e40ee20e-6282-38f3-9933-3e750c6f3f69",
"brand" : "dummy",
"categoriesIdentifier" : [
9390,
4161
],
"image" : [
],
"images" : [
],
"ner.version" : "v2.14.1.3",
"totalShopCount" : 1,
"discountModificationTime" : "2023-10-07T09:09:39.166Z",
"relatedShopsIdentifier" : [
"2"
],
"providerUrl" : [
"site.com"
],
"tags" : [
{
"confidence" : 0.932,
"id" : "e40ee20e-6282-38f3-9933-3e750c6f3f69"
}
],
"cat4" : "none",
"cat5" : "none",
"cat2" : "none",
"cat3" : "none",
"cat1" : "none",
"classifier.version" : "v2.18.5.1",
"creationTime" : "2023-10-07T09:09:39.166Z",
"description" : "description",
"title" : [
"title"
],
"visits" : 0,
"rankableShopCount" : 1,
"discountPercent" : 0,
"relatedNames" : [
"a name"
],
"confidence" : 0,
"tag.version" : "v2.10.3",
"url" : "",
"names" : [
"a name "
],
"accessory_check" : "0",
"availableShopCount" : 1,
"attributes" : { },
"aggregateRating" : {
"reviewcount" : 1.0,
"ratingvalue" : 4.0,
"ratingcount" : 0.0,
"worstrating" : 0.0,
"type" : "AggregateRating",
"bestrating" : 5.0
},
"brandIdentifier" : "15513",
"properties" : [ ]
}
}
]
}
}
I have to exclude some fields
because destination is empty is currently I include a doc from source