rem: var content = this.content.get(); 
add: var content = this.metadata.get(); 
context: Story.prototype.getIndexDocument = function() {   var doc = new Search.Document();   switch (this._prototype) {      case "Comment":         doc.addField("story", this.story._id, {store: true, index: true, tokenize: false});         if (this.parent)            doc.addField("parent", this.parent._id, {store: true, index: true, tokenize: false});         break;      default:         doc.addField("day", this.day, {store: true, index: true, tokenize: false});         if (this.topic)            doc.addField("topic", this.topic, {store: true, index: true, tokenize: true});         break;   }   doc.addField("online", this.online, {store: true, index: true, tokenize: false});   doc.addField("site", this.site._id, {store: true, index: true, tokenize: false});   doc.addField("id", this._id, {store: true, index: true, tokenize: false});   var content = this.content.get();   var title;   if (title = stripTags(content.title).trim())      doc.addField("title", title, {store: false, index: true, tokenize: true});   var text = new java.lang.StringBuffer();   for (var propName in content) {      if (propName != "title") {         text.append(stripTags(content[propName]).trim());         text.append(" ");      }   }   doc.addField("text", text.toString(), {store: false, index: true, tokenize: true});   if (this.creator) {      // FIXME: checking this shouldn't be necessary, but somehow it is ...      doc.addField("creator", this.creator.name, {store: false, index: true, tokenize: false});      doc.addField("createtime", this.createtime.format("yyyyMMdd"), {store: false, index: true, tokenize: false});   }   return doc;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/83da4c933b2bad9143c64c71f663a04406c91348/Story.js/clean/code/Story/Story.js