Created
September 23, 2019 20:16
-
-
Save jamesvidler/f11c0ed0e2887b3f4ac4a0fe7c7fc928 to your computer and use it in GitHub Desktop.
An example of calling the Search API to get auto-complete results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Agility.Search.AutoComplete({ | |
query: 'agility', | |
languageCode: 'en-ca', //optional | |
domain: 'www.site.com', //optional | |
category: 'product', // optional | |
top: 100, //optional | |
fuzzy: true //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