From 824e664ff16e797f36dc99a6065eab3bb5ec8397 Mon Sep 17 00:00:00 2001 From: Matt Wells Date: Fri, 24 Apr 2015 11:04:39 -0600 Subject: [PATCH] fix printing of new facet count stat --- Msg40.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Msg40.cpp b/Msg40.cpp index 496da90e..71cdd7e3 100644 --- a/Msg40.cpp +++ b/Msg40.cpp @@ -6517,6 +6517,10 @@ bool Msg40::printFacetsForTable ( SafeBuf *sb , QueryTerm *qt ) { sb->safePrintf("\t\t%"INT64"" "\n" , qt->m_numDocsThatHaveFacet ); + sb->safePrintf("\t\t" + "%"INT64"" + "\n" + , allCount ); sb->safePrintf("\t\t"); if ( isString ) @@ -6526,10 +6530,6 @@ bool Msg40::printFacetsForTable ( SafeBuf *sb , QueryTerm *qt ) { if ( isString ) sb->safePrintf("]]>"); sb->safePrintf("\n"); - sb->safePrintf("\t\t" - "%"INT64"" - "\n" - , allCount ); sb->safePrintf("\t\t%"INT32"" "\n" ,count); @@ -6626,6 +6626,10 @@ bool Msg40::printFacetsForTable ( SafeBuf *sb , QueryTerm *qt ) { ); sb->safePrintf("\t\"totalDocsWithField\":%"INT64"" ",\n", qt->m_numDocsThatHaveFacet ); + sb->safePrintf("\t\"totalDocsWithFieldAndValue\":" + "%"INT64"" + ",\n", + allCount ); sb->safePrintf("\t\"value\":\""); if ( isString ) @@ -6637,10 +6641,6 @@ bool Msg40::printFacetsForTable ( SafeBuf *sb , QueryTerm *qt ) { sb->safePrintf("\""); sb->safePrintf(",\n"); - sb->safePrintf("\t\"totalDocsWithFieldAndValue\":" - "%"INT64"" - ",\n", - allCount ); sb->safePrintf("\t\"docCount\":%"INT32"" , count ); // if it's a # then we print stats after