mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
added a couple more facet examples
This commit is contained in:
19
Query.cpp
19
Query.cpp
@ -4029,7 +4029,7 @@ struct QueryField g_fields[] = {
|
||||
false,
|
||||
"gbfacetstr:product.color",
|
||||
"Returns facets in "
|
||||
"of the color field in a JSON document like "
|
||||
"the color field in a JSON document like "
|
||||
"<i>{ \"product\":{\"color\":\"red\"}} "
|
||||
"</i> or, alternatively, an XML document like <i>"
|
||||
"<product><color>red</price></product>"
|
||||
@ -4037,7 +4037,15 @@ struct QueryField g_fields[] = {
|
||||
NULL,
|
||||
0},
|
||||
|
||||
|
||||
{"gbfacetstr",
|
||||
FIELD_GBFACETSTR,
|
||||
false,
|
||||
"gbfacetstr:gbtagsite cat",
|
||||
"Returns facets from the site names of all pages "
|
||||
"that contain the word 'cat' or 'cats', etc."
|
||||
,
|
||||
NULL,
|
||||
0},
|
||||
|
||||
{"gbfacetint", FIELD_GBFACETINT, false,
|
||||
"gbfacetint:product.cores",
|
||||
@ -4066,6 +4074,13 @@ struct QueryField g_fields[] = {
|
||||
NULL,
|
||||
0},
|
||||
|
||||
{"gbfacetint", FIELD_GBFACETINT, false,
|
||||
"gbfacetint:gbsitenuminlinks",
|
||||
"Returns facets based on # of site inlinks the site of each "
|
||||
"result has.",
|
||||
NULL,
|
||||
0},
|
||||
|
||||
{"gbfacetfloat", FIELD_GBFACETFLOAT, false,
|
||||
"gbfacetfloat:product.weight",
|
||||
"Returns facets "
|
||||
|
Reference in New Issue
Block a user