Algolia for Search

Algolia is a third party service that powers the search. When working with the API, you will likely need to utilize Algolia. You will need to sign up for a free-tier account, retrieve the keys, and provide those keys to the Rails application.

Sign up

  1. Go to the Algolia sign up page.

  2. Choose one of the three methods of signing up: email, GitHub, or Google.

  3. Fill in your information.

    algolia-up-1

  4. Select the datacenter's region.

    algolia-up-2

  5. Fill in or skip the project information.

    algolia-up-3

  6. You are all set up now! You can go to your dashboard.

    algolia-up-4

  7. You can skip the tutorial, by clicking on API button.

    algolia-up-5

  8. All good! You can get your API keys now.

Get API keys

  1. Sign up or Sign in to your Algolia account.

  2. From your Dashboard, click on API Keys.

    algolia-1

  3. Change your keys accordingly (name of Algolia key -> name of our ENV variable):

    1
    2
    3
    Application ID -> ALGOLIASEARCH_APPLICATION_ID
    Search-Only API Key -> ALGOLIASEARCH_SEARCH_ONLY_KEY
    Admin API KEY -> ALGOLIASEARCH_API_KEY

    algolia-2

  4. Done.