-
Notifications
You must be signed in to change notification settings - Fork 2
Meetup.com Events
brusic edited this page Aug 4, 2011
·
3 revisions
Index events via HTTP
curl -XPUT localhost:9200/_river/meetup_event/_meta -d '
{
"type" : "streaming",
"uri" : "http://stream.meetup.com/2/open_events",
"id_field" : "id",
"mapping" : {
"status" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"payment_required" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"venue_visibility" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"event_url" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"fee": {
"properties": {
"currency": { "type": "string", "store" : "no", "index": "not_analyzed" },
"description": { "type": "string", "store" : "no", "index": "not_analyzed" }
}
},
"group" : {
"properties" : {
"name" : {
"type" : "multi_field",
"fields" : {
"name" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"name_a" : {"type" : "string", "store" : "yes", "index" : "analyzed" }
}
},
"join_mode" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"urlname" : {"type" : "string", "store" : "no", "index" : "not_analyzed" }
}
},
"venue" : {
"properties" : {
"name" : {
"type" : "multi_field",
"fields" : {
"name" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"name_a" : {"type" : "string", "store" : "yes", "index" : "analyzed" }
}
},
"address_1" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"address_2" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"address_3" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"city" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"state" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"country" : {"type" : "string", "store" : "no", "index" : "not_analyzed" }
}
}
},
"index" : {
"index" : "meetup",
"type" : "event"
}
}
'