Skip to content

Instantly share code, notes, and snippets.

@edyonil
Created August 30, 2017 13:58
Show Gist options
  • Save edyonil/cf5d210c7267f962d6184de0caa94374 to your computer and use it in GitHub Desktop.
Save edyonil/cf5d210c7267f962d6184de0caa94374 to your computer and use it in GitHub Desktop.
Mapeamento dos dados de client
{
"settings": {
"analysis": {
"analyzer": {
"ascii_folding": {
"tokenizer": "standard",
"filter": [
"standard",
"asciifolding"
]
}
}
}
},
"mappings": {
"client": {
"properties": {
"codeFk": {
"type": "keyword"
},
"createdAt": {
"type": "date",
"format": "dd/MM/yyyy"
},
"address": {
"properties": {
"street": {
"type": "text"
},
"number": {
"type": "text"
},
"complement": {
"type": "text"
},
"neighborhood": {
"type": "text"
},
"city": {
"type": "keyword"
},
"stateAbbreviation": {
"type": "keyword"
},
"zipCode": {
"type": "text"
},
"country": {
"type": "keyword"
},
"latitude": {
"type": "double"
},
"longitude": {
"type": "double"
}
}
},
"payment": {
"properties": {
"annuity": {
"type": "nested",
"properties": {
"date": {
"type": "date",
"format": "dd/MM/yyyy"
},
"value": {
"type": "integer"
}
}
},
"daily": {
"type": "nested",
"properties": {
"date": {
"type": "date",
"format": "dd/MM/yyyy"
},
"value": {
"type": "integer"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment