def index(self): result = Snapshot.index(self) title = '%s (version %d)' % (self.original().title, self.version) result.update(title=title, type_s='WikiPage Snapshot', text=self.data.text) return result
def index(self): result = Snapshot.index(self) result.update(title_s='Version %d of %s' % (self.version, self.original().title), type_s='WikiPage Snapshot', text=self.data.text) return result
def index(self): result = Snapshot.index(self) result.update(title_s='Version %d of %s' % (self.version, self.original().summary), type_s='Ticket Snapshot', text=self.data.summary) return result
def index(self): result = Snapshot.index(self) title = '%s (version %d)' % (self.original().title, self.version) result.update( title=title, type_s='WikiPage Snapshot', text=self.data.text) return result
def index(self): result = Snapshot.index(self) result.update( title_s='Version %d of %s' % ( self.version,self.original().title), type_s='WikiPage Snapshot', text=self.data.text) return result
def index(self): result = Snapshot.index(self) result.update( title_s='Version %d of %s' % ( self.version,self.original().summary), type_s='Ticket Snapshot', text=self.data.summary) return result
def index(self): orig = self.original() if not orig: return None result = Snapshot.index(self) result.update(title='Version %d of %s' % (self.version, orig.summary), type_s='Ticket Snapshot', text=self.data.summary) # Tracker uses search with default solr parser. It would match only on # `text`, so we're appending all other field values into `text`, to match on it too. result['text'] += pformat(result.values()) return result
def index(self): orig = self.original() if not orig: return None result = Snapshot.index(self) result.update( title="Version %d of %s" % (self.version, orig.summary), type_s="Ticket Snapshot", text=self.data.summary ) # Tracker uses search with default solr parser. It would match only on # `text`, so we're appending all other field values into `text`, to match on it too. result["text"] += pformat(result.values()) return result