Depending on what details you want Klevu Search servers to return in a response, you can use one of the following API methods to search in your index.
- For the “search as you type” sort of interface where you need query suggestions, matching categories, CMS pages and product suggestions, please use the “Search As You Type” method.
- For the search results landing page, if you only need a list of IDs of records (i.e. relevant to your query), use the ID Search method.
- In addition to record IDs, if you want Klevu Search to return other details (such as name, description, price etc.), use the Record Search method.
Both, the ID Search and the Record Search methods, have parameters that allow you to fetch filters/facets as well.
- You must have your Klevu JS API Key and the domain URL of the cloud host hosting your search (i.e. cloudSearchHostURL). Please write to us at email@example.com if you do not have this information.
See the individual API methods for more details.