more fixes for qa'ing of new spider status docs

This commit is contained in:
Matt 2015-04-01 12:03:17 -06:00
parent 10a31783bb
commit 5e46262cb2
2 changed files with 13 additions and 5 deletions

View File

@ -4974,6 +4974,9 @@ bool printResult ( State0 *st, int32_t ix , int32_t *numPrintedSoFar ) {
// . docId for possible cached link
// . might have merged a bunch together
sb->safePrintf("\t\t<docId>%"INT64"</docId>\n",mr->m_docId );
}
if ( si->m_format == FORMAT_XML && mr->m_contentType != CT_STATUS ) {
// . show the site root
// . for hompages.com/users/fred/mypage.html this will be
// homepages.com/users/fred/
@ -5021,6 +5024,9 @@ bool printResult ( State0 *st, int32_t ix , int32_t *numPrintedSoFar ) {
// . docId for possible cached link
// . might have merged a bunch together
sb->safePrintf("\t\t\"docId\":%"INT64",\n",mr->m_docId );
}
if ( si->m_format == FORMAT_JSON && mr->m_contentType != CT_STATUS ) {
// . show the site root
// . for hompages.com/users/fred/mypage.html this will be
// homepages.com/users/fred/

12
qa.cpp
View File

@ -184,6 +184,7 @@ void processReply ( char *reply , int32_t replyLen ) {
markOut ( content , "spider is done (");
markOut ( content , "spider is paused (");
markOut ( content , "spider queue empty (");
markOut ( content , "spider is active (");
markOut ( content , "<totalShards>");
@ -201,11 +202,12 @@ void processReply ( char *reply , int32_t replyLen ) {
markOut ( content , "\"responseTimeMS\":");
markOut ( content , "\"docsInCollection\":");
markOut ( content , "\"gbssDownloadStartTime\":");
markOut ( content , "\"gbssDownloadEndTime\":");
markOut ( content , "\"gbssDownloadStartTimeMS\":");
markOut ( content , "\"gbssDownloadEndTimeMS\":");
markOut ( content , "\"gbssDownloadDurationMS\":");
markOut ( content , "\\\"gbssDownloadStartTime\\\":");
markOut ( content , "\\\"gbssDownloadEndTime\\\":");
markOut ( content , "\\\"gbssDownloadStartTimeMS\\\":");
markOut ( content , "\\\"gbssDownloadEndTimeMS\\\":");
markOut ( content , "\\\"gbssDownloadDurationMS\\\":");
markOut ( content , "\\\"gbssAgeInIndex\\\":");
// for xml
markOut ( content , "<currentTimeUTC>" );