Source: site.view [edit]
Function name: cmdPersonProfile
Arguments: id
Description: Looks up a person's profile
Page type: webl
Render function:   skillsrank.personProfile
Module: skillsrank

Page source:

var res = nil;

var reader = Wub_ReadLuceneIndex("resumes");
var docs = Wub_LuceneSearch(reader, "id", id, 1, "standard");
var ok = true;
ok = Wub_CloseLuceneIndex(reader);

var d = [. .];
if (ok and (docs.size() == 1)) then
   var doc = docs.get(0).getDoc();
   var i = 0;
   d["id"] := doc.getField("id").stringValue();
   d["name"] := doc.getField("name").stringValue();
   d["site-standard-profile-request"] := doc.getField("site-standard-profile-request").stringValue();
   d["picture-url"] := doc.getField("picture-url").stringValue();
   d["headline"] := doc.getField("headline").stringValue();
   d["eduScore"] := doc.getField("eduScore").stringValue();
   d["degreeScore"] := doc.getField("eduScore").stringValue();
   d["degreeScore"] := doc.getField("summary").stringValue();
   d["schoolScore"] := doc.getField("schoolScore").stringValue();
end;  

d;