{
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 0,
    "analysis": {
      "analyzer": {
        "lowercase_keyword": {
          "type": "custom",
          "tokenizer": "keyword",
          "filter": ["lowercase"]
        }
      }
    }
  },
  "mappings": {
    "properties": {
      "slm": {
        "properties": {
          "type": { "type": "keyword" },
          "timestamp": { "type": "date", "format": "epoch_millis" },
          "created_by": { "type": "keyword" },
          "updated_by": { "type": "keyword" },
          "deleted_by": { "type": "keyword" }
        }
      },
      "name": {
        "type": "text",
        "fields": {
          "keyword": { "type": "keyword" }
        }
      },
      "email": {
        "type": "text",
        "fields": {
          "keyword": { "type": "keyword" }
        }
      },
      "status": { "type": "keyword" },
      "description": { "type": "text" },
      "profile": { "type": "keyword" },
      "acl": { "type": "flattened" },
      "password": { "type": "keyword" },
      "price": { "type": "float" },
      "quantity": { "type": "integer" },
      "amount": { "type": "scaled_float", "scaling_factor": 10000.0 },
      "category": { "type": "keyword" },
      "tags": { "type": "keyword" },
      "date": {
        "type": "date",
        "format": "yyyy-MM-dd||yyyy-MM-dd HH:mm:ss||epoch_millis"
      },
      "active": { "type": "boolean" },
      "order": { "type": "integer" },
      "code": { "type": "keyword" },
      "notes": { "type": "text" }
    }
  }
}
