-
Notifications
You must be signed in to change notification settings - Fork 2
Meetup.com Events
brusic edited this page Aug 18, 2011
·
3 revisions
Index events via HTTP
Meetup now also supports backfill. http://groups.google.com/group/meetup-api/browse_thread/thread/d8b0d58551b25aa6 Not tested!
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"
}
}
'