Show More
@@ -172,10 +172,12 b' class ResultWrapper(object):' | |||||
172 | for docid in self.doc_ids: |
|
172 | for docid in self.doc_ids: | |
173 | yield self.get_full_content(docid) |
|
173 | yield self.get_full_content(docid) | |
174 |
|
174 | |||
175 |
def __get |
|
175 | def __getitem__(self, key): | |
176 | """ |
|
176 | """ | |
177 | Slicing of resultWrapper |
|
177 | Slicing of resultWrapper | |
178 | """ |
|
178 | """ | |
|
179 | i, j = key.start, key.stop | |||
|
180 | ||||
179 | slice = [] |
|
181 | slice = [] | |
180 | for docid in self.doc_ids[i:j]: |
|
182 | for docid in self.doc_ids[i:j]: | |
181 | slice.append(self.get_full_content(docid)) |
|
183 | slice.append(self.get_full_content(docid)) |
General Comments 0
You need to be logged in to leave comments.
Login now