Skip to content

Instantly share code, notes, and snippets.

@jerronimo
Last active May 2, 2017 23:45
Show Gist options
  • Save jerronimo/4009ad6fc17d246a6b6cd1896a402cd6 to your computer and use it in GitHub Desktop.
Save jerronimo/4009ad6fc17d246a6b6cd1896a402cd6 to your computer and use it in GitHub Desktop.
{
"hello_pad": {
"mappings": {
"apartment": {
"properties": {
"bathrooms": {
"type": "integer"
},
"bedrooms": {
"type": "integer"
},
"cats": {
"type": "boolean"
},
"city": {
"type": "text",
"analyzer": "standard"
},
"created_at": {
"type": "date"
},
"description": {
"type": "long"
},
"dogs": {
"type": "boolean"
},
"hide_address": {
"type": "boolean"
},
"id": {
"type": "integer",
"include_in_all": false
},
"income_restricted": {
"type": "boolean"
},
"lease_terms": {
"type": "long"
},
"leasing_fees": {
"type": "boolean"
},
"location": {
"type": "geo_point"
},
"media": {
"type": "nested"
},
"notes": {
"type": "long"
},
"options": {
"type": "nested"
},
"partial_bathrooms": {
"type": "integer"
},
"rent": {
"type": "scaled_float",
"scaling_factor": 100
},
"section_eight": {
"type": "boolean"
},
"showing": {
"type": "nested"
},
"square_feet": {
"type": "integer"
},
"street_name": {
"type": "text",
"analyzer": "standard"
},
"street_number": {
"type": "text",
"analyzer": "standard"
},
"type": {
"type": "text",
"analyzer": "standard"
},
"unit": {
"type": "integer"
},
"updated_at": {
"type": "date"
},
"user": {
"type": "text",
"analyzer": "standard"
},
"zip_code": {
"type": "text",
"analyzer": "standard"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment