Algolia Search

Learning how to use Algolia search inside Interplay

Written By Brian Sathinathan (Super Administrator)

Updated at January 8th, 2021

Description

This node allows the user to enter a string for 1 object to be searched for in a pre-existing index in the users Algolia account.

Code For Above Flow

[{"id":"12668e81.572ed1","type":"algoliasearch","z":"8cf3db3c.c92288","API_ID":"","API_Key":"","Index":"Product","name":"","x":250,"y":320,"wires":[["c05491e7.389e"]]},{"id":"f8a212e.606aef","type":"inject","z":"8cf3db3c.c92288","name":"","topic":"","payload":"{\"name\": \"Pizza\", \"price\": \"10\", \"quantity\": \"7\"}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":320,"wires":[["12668e81.572ed1"]]},{"id":"c05491e7.389e","type":"console","z":"8cf3db3c.c92288","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":410,"y":320,"wires":[]}]

Input

Topic (string)A string to be searched for.

Parameters

API_ID (string)The users Application ID

API_Key (string)

The users Admin API Key

Index (string)

The index under which the string that was passed through the payload will be searched under. (Must already exists or have been created by the user)

Output

payload (object)An object containing an array or matches that where found for the search.