mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
fix for diffbot. use objects not results
for global-index.
This commit is contained in:
@ -2360,11 +2360,14 @@ bool printSearchResultsHeader ( State0 *st ) {
|
||||
printLeftNavColumn ( *sb,st );
|
||||
}
|
||||
|
||||
// global-index is not a custom crawl but we should use "objects"
|
||||
bool isDiffbot = cr->m_isCustomCrawl;
|
||||
if ( strcmp(cr->m_coll,"GLOBAL-INDEX") == 0 ) isDiffbot = true;
|
||||
|
||||
// for diffbot collections only...
|
||||
if ( st->m_header &&
|
||||
if ( st->m_header &&
|
||||
si->m_format == FORMAT_JSON &&
|
||||
cr->m_isCustomCrawl ) {
|
||||
isDiffbot ) {
|
||||
sb->safePrintf("\"objects\":[\n");
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user