corrected generation of full search result

This commit is contained in:
Rafał Jaworski 2019-01-16 14:54:13 +01:00
parent f5334ea2b6
commit 0c2e123d42

View File

@ -65,6 +65,7 @@ void JsonGenerator::writeFullSearchResult(rapidjson::Writer<rapidjson::StringBuf
jsonWriter.StartObject();
jsonWriter.String("totalCount");
jsonWriter.Int(result.getTotalCount());
jsonWriter.String("occurences");
jsonWriter.StartArray();
BOOST_FOREACH(ExampleOccurence occurence, result.getOccurences()) {