{
  "settings": {
    "analysis": {
      "analyzer": {
        "email": {
          "type": "custom",
          "tokenizer": "uax_url_email"
        }
      }
    }
  },
  "mappings": {
    "date_detection": false,
    "numeric_detection": false,
    "properties": {
      "$schema": {
        "type": "keyword"
      },
      "_created": {
        "type": "date"
      },
      "_updated": {
        "type": "date"
      },
      "legacy_id": {
        "type": "keyword"
      },
      "location": {
        "properties": {
          "pid": {
            "type": "keyword"
          },
          "legacy_id": {
            "type": "keyword"
          },
          "name": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword"
              }
            }
          },
          "opening_weekdays": {
            "properties": {
              "weekday": {
                "type": "keyword"
              },
              "is_open": {
                "type": "boolean"
              },
              "times": {
                "properties": {
                  "start_time": {
                    "type": "text"
                  },
                  "end_time": {
                    "type": "text"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "opening_exceptions": {
            "properties": {
              "title": {
                "type": "keyword"
              },
              "is_open": {
                "type": "boolean"
              },
              "start_date": {
                "type": "date"
              },
              "end_date": {
                "type": "date"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "location_pid": {
        "type": "keyword"
      },
      "name": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword"
          }
        }
      },
      "notes": {
        "type": "text"
      },
      "physical_location": {
        "type": "text"
      },
      "pid": {
        "type": "keyword"
      }
    }
  }
}
