|
a/src/rcldb/rclabstract.cpp |
|
b/src/rcldb/rclabstract.cpp |
|
... |
|
... |
355 |
// The terms 'array' that we partially populate with the document
|
355 |
// The terms 'array' that we partially populate with the document
|
356 |
// terms, at their positions around the search terms positions:
|
356 |
// terms, at their positions around the search terms positions:
|
357 |
map<unsigned int, string> sparseDoc;
|
357 |
map<unsigned int, string> sparseDoc;
|
358 |
// Also remember apart the search term positions so that we can list
|
358 |
// Also remember apart the search term positions so that we can list
|
359 |
// them with their snippets.
|
359 |
// them with their snippets.
|
360 |
STD_UNORDERED_SET<unsigned int> searchTermPositions;
|
360 |
std::unordered_set<unsigned int> searchTermPositions;
|
361 |
|
361 |
|
362 |
// Remember max position. Used to stop walking positions lists while
|
362 |
// Remember max position. Used to stop walking positions lists while
|
363 |
// populating the adjacent slots.
|
363 |
// populating the adjacent slots.
|
364 |
unsigned int maxpos = 0;
|
364 |
unsigned int maxpos = 0;
|
365 |
|
365 |
|