Skip to content
Snippets Groups Projects
Commit eaa9349d authored by jsclose's avatar jsclose
Browse files

naive and working

parent 180a7eff
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -101,9 +101,10 @@ Location ISRAnd::Seek( Location target )
//Get Document of the furthest ISR
//DocumentEnd->Seek( furthest );
if(nearestTerm->GetEndDocument()->getCurrentDoc().docEndPosition == furthestTerm->GetEndDocument()->getCurrentDoc().docEndPosition )
{
cout << "MATCHING " << endl;
cout << "Found Match " << endl;
return nearestTerm->GetEndDocument()->getCurrentDoc().docEndPosition;
}
......@@ -120,7 +121,8 @@ Location ISRAnd::Seek( Location target )
else
{
//No Match yet, keep searching
target = lastDocStart;
//docs before the fursther? may be hit
target = furthest-1;
}
}
......
......@@ -43,7 +43,7 @@ int main ( )
/*
*
* moment and life
*file3tweet151407709667856384
file3tweet151407709667856384
file5tweet151408405939093504
file9tweet151409353818255361
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment