Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 74 lines (74 sloc) 1.49 KB
{
"index_patterns": "twitter_elastic_example",
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"mapping": {
"total_fields": {
"limit": "10000"
}
}
},
"mappings": {
"tweets": {
"properties": {
"@timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"text": {
"type": "text"
},
"user": {
"type": "object",
"properties": {
"description": {
"type": "text"
}
}
},
"coordinates": {
"type": "object",
"properties": {
"coordinates": {
"type": "geo_point"
}
}
},
"entities": {
"type": "object",
"properties": {
"hashtags": {
"type": "object",
"properties": {
"text": {
"type": "text",
"fielddata": true
}
}
}
}
},
"retweeted_status": {
"type": "object",
"properties": {
"text": {
"type": "text"
}
}
}
},
"dynamic_templates": [
{
"string_template": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
}
]
}
}
}