blob: fefb24e4cb3fec74c446aed6be4a9221f8dc1ebd [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001use dataverse fuzzy1;
2
3declare type DBLPType as open {
4 id: int32,
5 dblpid: string,
6 title: string,
7 authors: string,
8 misc: string
9}
10
11declare nodegroup group1 on rainbow-01, rainbow-02, rainbow-03,
12rainbow-04, rainbow-05;
13
14declare dataset DBLP(DBLPType)
15 partitioned by key id on group1;
16
17write output to rainbow-01:"/home/hyracks/out.txt";
18
19for $x in dataset('DBLP')
20let $ed := edit-distance($x.authors, "Michael Carey")
21where $ed <= 3
22order by $ed, $x.authors
23return { "edit-distance":$ed, "authors":$x.authors, "title":$x.title }