Autocomplete Topics API

This API provides auto-complete suggestions for structured topics (~50K) in the Right Relevance platform. It can be leveraged to build search box user experience. You can see it in action at http://rightrelevance.com.

Resource URL

GET https://api.rightrelevance.com/v2/topics/autocomplete?q=<string>

Parameters

query=string

(required)

‘string’ for which to fetch auto-complete suggestions.

Example Request

GET https://api.rightrelevance.com/v2/topics/autocomplete?q=had&access_token=PLACE_ACCESS_TOKEN

Example Response

{
    numFound: 6,
    suggestion: [
        "haddonfield",
        "apache hadoop",
        "hadith",
        "large hadron collider",
        "hadouken",
        "hadrian's wall"
    ]
}      

Response Fields

Returns closest matches as auto-complete suggestions for typed input string. In the example above, 6 matches were found for ‘had’.

numFound

Number of topic suggestions returned
suggestion

List of suggested topics

Write a Reply or Comment

Your email address will not be published. Required fields are marked *