-
Notifications
You must be signed in to change notification settings - Fork 2
Meetup.com RSVPs
brusic edited this page Aug 4, 2011
·
1 revision
Index RSVPs via HTTP
curl -XPUT localhost:9200/_river/meetup/_meta -d '
{
"type" : "streaming",
"uri" : "http://stream.meetup.com/2/rsvps",
"id_field" : "rsvp_id",
"mapping" : {
"rsvp_id" : {"type" : "long", "store" : "yes"},
"response" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"event": {
"properties": {
"event_id": { "type": "string", "store" : "yes", "index": "not_analyzed" }
}
},
"group" : {
"properties" : {
"group_city" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"group_state" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"group_country" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"group_urlname" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"group_name" : {
"type" : "multi_field",
"fields" : {
"group_name" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"group_name_a" : {"type" : "string", "store" : "yes", "index" : "analyzed" }
}
},
"group_topics" : {
"properties" : {
"urlkey" : {"type" : "string", "store" : "no", "index" : "not_analyzed" },
"topic_name" : {
"type" : "multi_field",
"fields" : {
"topic_name" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"topic_name_a" : {"type" : "string", "store" : "yes", "index" : "analyzed" }
}
}
}
}
}
},
"venue" : {
"properties" : {
"venue_name" : {
"type" : "multi_field",
"fields" : {
"venue_name" : {"type" : "string", "store" : "yes", "index" : "not_analyzed" },
"venue_name_a" : {"type" : "string", "store" : "yes", "index" : "analyzed" }
}
}
}
}
},
"index" : {
"index" : "meetup",
"type" : "rsvp"
}
}
'