Create you first index
An index is an entity within Algolia where you import the data you want to search (indexing) and perform queries against (search). There are 3 main ways to synchronize your data …
API Clients. For those who love to build things by themselves, you can use our API clients to interact with the Algolia REST API.
Plugins & Extensions. If you’re using a CMS or a platform for your service, you can simply use one of our plugins and integrations to easily implement Algolia.
Algolia Dashboard. The dashboard is the easiest way to upload your data and get your first experience with Algolia. Simply drag and drop your JSON or CSV files.
In Algolia, every object is a record and is defined with JSON.1 Let’s simply upload a dataset of actors…
Select your attributes to index
By default, Algolia indexes and searches across all the attributes of your records.
Oops, we also search in the
image_pathattribute. In order to improve the relevance of the results, it would make more sense to search only in the
Add an searchable attribute, then select from the list or type the first letter of the name of the attribute. Use drag and drop to put
alternative_namein the list to make it more important. Then save.
Select your Custom Ranking attributes
You would want to be able to use the popularity of the actors in how the results are ranked. Algolia has a unique way to add this kind of metric to the relevance calculation. For instance, the
rating attribute could be a good metric to use here.
rating attribute as a ranking criterion. By using the rating attribute as your customRanking attribute (ordered by DESCending order), you will see first the “Ben” actors that have the highest ratings. Click
Add an attribute, then select
rating in the list and save.
Build your UI
Every time you request Algolia’s Search API, it answers with a JSON object that contains the best matching objects: the hits.
To help you with this aspect of setting up Algolia, we provide many examples and tools, such as our browser extension.
- Json: Standard format that uses human-readable text to transmit date objects consisting of attribute-value pairs. [return]