Skip to content

Instantly share code, notes, and snippets.

@jamesvidler
Created September 23, 2019 20:19
Show Gist options
  • Save jamesvidler/c7774d735539989771bcf3af8d0d93f0 to your computer and use it in GitHub Desktop.
Save jamesvidler/c7774d735539989771bcf3af8d0d93f0 to your computer and use it in GitHub Desktop.
How to execute a grouped query using Agility CMS Search.
Agility.Search.GroupedQuery({
query: 'agility',
languageCode: 'en-ca', //optional
top: 5, //optional
domain: 'agilitycms.com', //optional
groupCount: 3 //optional
}).success(function(resp){
//success
}).error(function(err){
//error
}).always(function(){
//always
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment