src/DocSim/doc_sim.cpp
// Now look for documents in the same epoch with the same page id

Now look for documents in the same epoch with the same page id
Now look for documents in the same epoch with the same page id
BOOST_FOREACH(DupDocInfo_ptr ddInfo, current_docs_intermediate) {
					std::pair<std::string,int> pageid = parse_pageid_from_docid(ddInfo->docID);
					if (lowestPageVersion.find(pageid.first) == lowestPageVersion.end()) {
						current_docs_final.push_back(ddInfo);
					} else {
						if (lowestPageVersion[pageid.first] == pageid.second)
							current_docs_final.push_back(ddInfo);
					}
				}
BOOST_FOREACH ( DupDocInfo_ptr ddInfo , current_docs_intermediate ) { std :: pair < std :: string , int > pageid = parse_pageid_from_docid ( ddInfo -> docID ) ; if ( lowestPageVersion . find ( pageid . first ) == lowestPageVersion . end ( ) ) { current_docs_final . push_back ( ddInfo ) ; } else { if ( lowestPageVersion [ pageid . first ] == pageid . second ) current_docs_final . push_back ( ddInfo ) ; } }
Now look for documents in the same epoch with the same page id
Now look for documents in the same epoch with the same page id
// only keep it if it is the lowest page version for this pageid
