query syntax updates

This commit is contained in:
Matt 2014-12-11 14:37:30 -08:00
parent c8f305468f
commit 9a3489773d

View File

@ -3596,8 +3596,9 @@ struct QueryField g_fields[] = {
{"type", {"type",
FIELD_TYPE, FIELD_TYPE,
false, false,
"type:pdf", "type:json",
"Matches all documents that are PDFs. Other possible types include " "Matches all documents that are in JSON format. "
"Other possible types include "
"<i>html, text, xml, pdf, doc, xls, ppt, ps, css, json, status.</i> " "<i>html, text, xml, pdf, doc, xls, ppt, ps, css, json, status.</i> "
"<i>status</i> matches special documents that are stored every time " "<i>status</i> matches special documents that are stored every time "
"a url is spidered so you can see all the spider attempts and when " "a url is spidered so you can see all the spider attempts and when "
@ -3608,7 +3609,7 @@ struct QueryField g_fields[] = {
{"filetype", {"filetype",
FIELD_TYPE, FIELD_TYPE,
false, false,
"filetype:pdf", "filetype:json",
"Same as type: above.", "Same as type: above.",
NULL, NULL,
0}, 0},
@ -3670,12 +3671,12 @@ struct QueryField g_fields[] = {
{"gbcharset", {"gbcharset",
FIELD_CHARSET, FIELD_CHARSET,
false, false,
"gbcharset:utf-8", "gbcharset:windows-1252",
"Matches all documents originally in the Utf-8 charset. " "Matches all documents originally in the Windows-1252 charset. "
"Available character sets are listed in the <i>iana_charset.cpp</i> " "Available character sets are listed in the <i>iana_charset.cpp</i> "
"file in the open source distribution. There are a lot. Some " "file in the open source distribution. There are a lot. Some "
"more popular ones are: <i>us, latin1, iso-8859-1, csascii, ascii, " "more popular ones are: <i>us, latin1, iso-8859-1, csascii, ascii, "
"latin2, latin3, latin4, greek, shift_jis.", "latin2, latin3, latin4, greek, utf-8, shift_jis.",
NULL, NULL,
0}, 0},
@ -3830,7 +3831,7 @@ struct QueryField g_fields[] = {
{"gbsortby", {"gbsortby",
FIELD_GBSORTBYFLOAT, FIELD_GBSORTBYFLOAT,
false, false,
"dog gbsortbyint:gbspiderdate", "dog gbsortbyint:gbdocspiderdate",
"Sort the documents that contain 'dog' by " "Sort the documents that contain 'dog' by "
"the date they were last spidered, with the newest " "the date they were last spidered, with the newest "
"on top.", "on top.",
@ -3840,7 +3841,7 @@ struct QueryField g_fields[] = {
{"gbrevsortby", {"gbrevsortby",
FIELD_GBREVSORTBYFLOAT, FIELD_GBREVSORTBYFLOAT,
false, false,
"dog gbrevsortbyint:gbspiderdate", "dog gbrevsortbyint:gbdocspiderdate",
"Sort the documents that contain 'dog' by " "Sort the documents that contain 'dog' by "
"the date they were last spidered, but with the " "the date they were last spidered, but with the "
"oldest on top.", "oldest on top.",
@ -3866,7 +3867,7 @@ struct QueryField g_fields[] = {
{"gbsortbyint", {"gbsortbyint",
FIELD_GBSORTBYINT, FIELD_GBSORTBYINT,
false, false,
"gbsortbyint:gbspiderdate", "gbsortbyint:gbdocspiderdate",
"Sort all documents by the date they were spidered/downloaded.", "Sort all documents by the date they were spidered/downloaded.",
NULL, NULL,
0}, 0},
@ -3899,7 +3900,7 @@ struct QueryField g_fields[] = {
{"gbrevsortbyint", {"gbrevsortbyint",
FIELD_GBREVSORTBYINT, FIELD_GBREVSORTBYINT,
false, false,
"gbrevsortbyint:gbspiderdate", "gbrevsortbyint:gbdocspiderdate",
"Sort all documents by the date they were spidered/downloaded " "Sort all documents by the date they were spidered/downloaded "
"but with the oldest on top.", "but with the oldest on top.",
NULL, NULL,