us gbstatus: and gbstatusmsg: field operators

This commit is contained in:
Matt Wells 2014-05-09 18:10:38 -07:00
parent b1cd0cac86
commit e70f760d87
2 changed files with 3 additions and 2 deletions

View File

@ -3088,7 +3088,8 @@ struct QueryField g_fields[] = {
{"filetype", FIELD_TYPE, false,"Same as type:"},
{"gbisadult",FIELD_TYPE,false,"use gbisadult:0 and gbisadult:1 to restrict results to non-adult and adult documents respectively."},
{"gbstatus",FIELD_TYPE,false,"If document is a spider reply, then search the spider status description, which might be something like 'TCP Timed out' or 'Robots.txt disallows' or 'Success', if no error. It is also used to hold the numeric error as well, 0 meaning Success."},
{"gbstatus",FIELD_TYPE,false,"If document is a spider reply, then search the spider status as a number using this. 0 means success, so gbstatus:0 would return all successful statuses."},
{"gbstatusmsg",FIELD_TYPE,false,"If document is a spider reply, then search the spider status description, which might be something like 'TCP Timed out' or 'Robots.txt disallows' or 'Success', if no error."},
{"gbhasthumbnail",FIELD_TYPE,false,"use gbhasthumbnail:0 and gbhasthumbnail:1 to restrict results to those that do not have or have thumbnails respectively."},
{"gbtag*", FIELD_TAG, false,"Matches all pages whose tag named * have the specified value. Example: gbtagingoogle:1 matches all pages that have a value of 1 for their ingoogle tag in tagdb."},

View File

@ -25025,7 +25025,7 @@ SafeBuf *XmlDoc::getSpiderReplyMetaList ( SpiderReply *reply ) {
*/
// gbstatus:"tcp timed out"
hi.m_prefix = "gbstatus";
hi.m_prefix = "gbstatusmsg";
hi.m_desc = "spider error msg";
if ( ! hashString( mstrerror(m_indexCode) , &hi ) ) return NULL;