Skip to content

Instantly share code, notes, and snippets.

@dunice
Last active January 23, 2018 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dunice/f8caee114bbd917115a21b8b9175a439 to your computer and use it in GitHub Desktop.
Save dunice/f8caee114bbd917115a21b8b9175a439 to your computer and use it in GitHub Desktop.
{
"index": "local_aircraft",
"client": {
"ignore": 404
},
"body": {
"settings": {
"number_of_shards": 4,
"number_of_replicas": 1,
"index": {
"analysis": {
"analyzer": {
"custom_analyzer": {
"tokenizer": "keyword",
"filter": ["lowercase"]
}
}
}
}
},
"mappings": {
"aircraft": {
"_source": {
"excludes": ["content", "airport_iata_code", "airport_icao_code", "airport_location", "aircraft_cruise_speed", "aircraft_max_range_distance", "company_id"]
},
"properties": {
"airline": {
"type": "nested"
},
"aircraft": {
"type": "nested"
},
"company": {
"type": "nested"
},
"upload": {
"type": "nested"
},
"airport": {
"type": "nested",
"properties": {
"id": {
"type": "keyword"
},
"altitude": {
"type": "float"
},
"city": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"region": {
"type": "keyword"
},
"state": {
"type": "keyword"
},
"taxi_time": {
"type": "float"
},
"iata_code": {
"type": "keyword"
},
"icao_code": {
"type": "keyword"
},
"location": {
"type": "geo_point"
},
"latitude": {
"type": "float"
},
"longitude": {
"type": "float"
},
"is_active": {
"type": "boolean"
}
}
},
"airport_iata_code": {
"type": "keyword"
},
"airport_location": {
"type": "geo_point"
},
"content": {
"type": "text"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment