suupport for complex mapping #19
sangeethdba
started this conversation in
General
Replies: 1 comment
-
Hello, Right now we don't have the reindex_by_query support. Best Regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"order.return_summary.order_date": {
"gte": "'"$REINDEX_GTE_DATE"'",
"lte": "'"$REINDEX_LTE_DATE"'",
"format": "8uuuu-MM-dd||uuuu"
reindex api inputs:
"source": {
"index": "'"$SOURCE_INDEX"'",
"type": "'"$SOURCE_INDEX_TYPE"'",
"query": {
"bool": {
"must": [
{
"range": {
"order.return_summary.order_date": {
"gte": "'"$REINDEX_GTE_DATE"'",
"lte": "'"$REINDEX_LTE_DATE"'",
"format": "8uuuu-MM-dd||uuuu"
}
}
}
]
}
}
},
"dest": {
"index": "'"$DESTINATION_INDEX"'",
"type": "'"$DESTINATION_INDEX_TYPE"'",
"op_type": "create"
}
with mapping something like this
{
"mappings": {
"returns": {
"properties": {
"order": {
"properties": {
"return_summary": {
"properties": {
"carrier_update_recieved_flag": {
"type": "keyword"
},
"customer": {
"properties": {
"city": {
"type": "keyword"
},
"email": {
"type": "keyword",
"normalizer": "lowercase_normalizer"
},
"name": {
"properties": {
"first": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"last": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
},
"order_date": {
"type": "date"
},
Beta Was this translation helpful? Give feedback.
All reactions