Skip to content

Instantly share code, notes, and snippets.

@Tsaulogy
Created July 21, 2016 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tsaulogy/3c62f7dda6dc67d062ca8fb3287da0ba to your computer and use it in GitHub Desktop.
Save Tsaulogy/3c62f7dda6dc67d062ca8fb3287da0ba to your computer and use it in GitHub Desktop.
Example of facet payload for the search term 'sanitation'
{"region":
{
"type":"xs:string",
"facetValues":[
{"name":"Afghanistan","count":24,"value":"Afghanistan"},
{"name":"Africa","count":248,"value":"Africa"},
{"name":"Albania","count":3,"value":"Albania"},
{"name":"Algeria","count":2,"value":"Algeria"},
{"name":"Americas","count":218,"value":"Americas"},
{"name":"Angola","count":6,"value":"Angola"},
{"name":"Argentina","count":8,"value":"Argentina"},
{"name":"Armenia","count":2,"value":"Armenia"},
{"name":"Asia","count":491,"value":"Asia"},
{"name":"Australia","count":1,"value":"Australia"}]
},
"lang":{
"type":"xs:string",
"facetValues":[
{"name":"Arabic","count":6,"value":"Arabic"},
{"name":"Bahasa (Indonesian)","count":3,"value":"Bahasa (Indonesian)"},
{"name":"Chinese","count":14,"value":"Chinese"},
{"name":"English","count":1308,"value":"English"},
{"name":"English,Arabic,French","count":1,"value":"English,Arabic,French"},
{"name":"English,Khmer","count":1,"value":"English,Khmer"},
{"name":"French","count":59,"value":"French"},
{"name":"French,English","count":2,"value":"French,English"},
{"name":"Hindi","count":2,"value":"Hindi"},
{"name":"Japanese","count":5,"value":"Japanese"}]
},
"country":{
"type":"xs:string",
"facetValues":[
{"name":"World","count":372,"value":"World"},
{"name":"India","count":76,"value":"India"},
{"name":"Africa","count":69,"value":"Africa"},
{"name":"Peru","count":42,"value":"Peru"},
{"name":"Indonesia","count":40,"value":"Indonesia"},
{"name":"Brazil","count":35,"value":"Brazil"},
{"name":"Bangladesh","count":28,"value":"Bangladesh"},
{"name":"Vietnam","count":28,"value":"Vietnam"},
{"name":"Afghanistan","count":24,"value":"Afghanistan"},
{"name":"China","count":24,"value":"China"}]
},
"concept":{
"type":"xs:string",
"facetValues":[
{"name":"General Public Administration Sector","count":1376,"value":"General Public Administration Sector"},
{"name":"Governance and Public Sector Management","count":1376,"value":"Governance and Public Sector Management"},
{"name":"Government","count":1376,"value":"Government"},
{"name":"Institutions","count":1376,"value":"Institutions"},
{"name":"Public Administration","count":1376,"value":"Public Administration"},
{"name":"Public Sector and Governance","count":1376,"value":"Public Sector and Governance"},
{"name":"Public Sector Development","count":1376,"value":"Public Sector Development"},
{"name":"Public Sector Management","count":1376,"value":"Public Sector Management"},
{"name":"Public Sector Management and Reform","count":1376,"value":"Public Sector Management and Reform"},
{"name":"Private Sector Development","count":1359,"value":"Private Sector Development"}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment