Trying to get suggestions suggested matches from AWS CloudSearch using their suggesters feature. I have configured the suggester through the CloudSearch portal which is self-explanatory.
Here is the following request I am trying to make with python requests
:
endpoint = "http://MY-SEARCH-ENDPOINT.us-west-2.cloudsearch.amazonaws.com/2013-01-01/suggest"
params = {'q' : 'wed', 'suggester' : 'keyword_suggester'}
r = requests.get(endpoint, params = params)
Which returns response:
r.json()
{u'status': {u'rid': u'9b/Rjq4p/wEK1YX2', u'time-ms': 2}, u'suggest': {u'query': u'wed', u'suggestions': [], u'found': 0}}
Even when trying to use the AWS "Run a Test Search" tool with the suggester enabled it doesn't return any suggestions. I am assuming I've done something wrong in configuration but I'm not sure what as I have followed the AWS documentation during setup. I can't seem to find any resources around this feature, has anyone gotten this working successfully? I would really appreciate seeing a working example. Thanks for your help.