So trying to map how facebook implemented a CF of type Super to index
message terms.

Is this json representation correct?

MessageIndex = {

   userid1 : {

    aloha : { messageIdList:
"234,2343234,23423434,234255,345345,2342,532432"},
    clown : { messageIdList: "632, 2342, 23452, 234234, 234234"},
    ..
    ..
    ..
   },

   userid2 : {

       eating : { messageIdList:
"234,2343234,23423434,234255,345345,2342,532432"},
    studying : { messageIdList: "632, 2342, 23452, 234234, 234234"},
    ..
    ..
    ..

   }

}


So if a user searches for the term "clown", they you perform a lookup in the
CF named "MessageIndex", and use do a lookup for the row of the currently
logged in user by UserID (which is the key), and then look for a a CF with
the term "clown" and return the value.

Is this a proper representation and am I using the correct terminology?

Reply via email to