Skip to content

Instantly share code, notes, and snippets.

@jogaco
Created July 24, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jogaco/12a342eef24d6b270aeaf60eddee8e5a to your computer and use it in GitHub Desktop.
Save jogaco/12a342eef24d6b270aeaf60eddee8e5a to your computer and use it in GitHub Desktop.
ES Index mapping
{
"item-8": {
"mappings": {
"item": {
"properties": {
"artist": {
"type": "string",
"analyzer": "synonym"
},
"artist_verified": {
"type": "byte",
"index": "no"
},
"count_1": {
"type": "short",
"index": "no"
},
"count_2": {
"type": "integer",
"index": "no"
},
"category": {
"type": "byte"
},
"child": {
"type": "long",
"index": "no"
},
"condition_id": {
"type": "byte",
"index": "no"
},
"country": {
"type": "string",
"index": "no"
},
"created_at": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"date_end": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"date_start": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"description": {
"type": "string",
"index": "no"
},
"disabled": {
"type": "byte"
},
"duration": {
"type": "byte",
"index": "no"
},
"format": {
"type": "byte"
},
"format_desc": {
"type": "string",
"index": "no"
},
"genres": {
"type": "byte"
},
"hidden": {
"type": "boolean"
},
"image_height": {
"type": "short",
"index": "no"
},
"image_thumb_height": {
"type": "short",
"index": "no"
},
"image_thumb_uid": {
"type": "string",
"index": "no",
"fields": {
"exists": {
"type": "string",
"analyzer": "exists"
}
}
},
"image_thumb_width": {
"type": "short",
"index": "no"
},
"image_uid": {
"type": "string",
"index": "no",
"fields": {
"exists": {
"type": "string",
"analyzer": "exists"
}
}
},
"image_width": {
"type": "short",
"index": "no",
"fields": {
"exists": {
"type": "string",
"analyzer": "exists"
}
}
},
"imported_cat_id": {
"type": "integer"
},
"listed_cat": {
"type": "string",
"index": "no"
},
"made_in": {
"type": "string",
"index": "no"
},
"made_in_verified": {
"type": "byte",
"index": "no"
},
"more_images": {
"properties": {
"image_height": {
"type": "short",
"index": "no"
},
"image_thumb_height": {
"type": "short",
"index": "no"
},
"image_thumb_uid": {
"type": "string",
"index": "no",
"fields": {
"exists": {
"type": "string",
"analyzer": "exists"
}
}
},
"image_thumb_width": {
"type": "short",
"index": "no"
},
"image_uid": {
"type": "string",
"index": "no",
"fields": {
"exists": {
"type": "string",
"analyzer": "exists"
}
}
},
"image_width": {
"type": "short",
"index": "no",
"fields": {
"exists": {
"type": "string",
"analyzer": "exists"
}
}
}
}
},
"parent": {
"type": "long",
"index": "no"
},
"price": {
"properties": {
"converted_currency": {
"type": "string",
"index": "no"
},
"converted_end": {
"type": "integer"
},
"converted_start": {
"type": "integer",
"index": "no"
},
"currency": {
"type": "string",
"index": "no"
},
"end": {
"type": "integer",
"index": "no"
},
"start": {
"type": "integer",
"index": "no"
}
}
},
"product_code": {
"type": "long",
"index": "no"
},
"product_code_type": {
"type": "string",
"index": "not_analyzed"
},
"company": {
"type": "string"
},
"count_3": {
"type": "integer",
"index": "no"
},
"site": {
"type": "byte",
"index": "no"
},
"styles": {
"type": "short",
"index": "no"
},
"sub_site": {
"type": "byte"
},
"title": {
"type": "string",
"analyzer": "synonym"
},
"updated_at": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"validated": {
"type": "byte"
},
"year": {
"type": "short",
"index": "no"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment