full search
This commit is contained in:
parent
fb5e7bcc8a
commit
f5334ea2b6
@ -73,7 +73,16 @@ SimpleSearchResult UnitDAO::getSimpleSearchResult(const MatchedPatternFragment &
|
||||
}
|
||||
|
||||
FullSearchResult UnitDAO::getFullSearchResult(const OccurencesList & occurencesList, const int patternLength) {
|
||||
return FullSearchResult(5);
|
||||
|
||||
FullSearchResult result(occurencesList.getTotalCount());
|
||||
DBconnection connection;
|
||||
connection.startTransaction();
|
||||
BOOST_FOREACH(SubstringOccurence sOccurence, occurencesList.getOccurences()) {
|
||||
result.addOccurence(_getExampleOccurence(connection, sOccurence, patternLength));
|
||||
}
|
||||
|
||||
connection.endTransaction();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user