younifyd
Menu

Get Algolia Search Index Analytics Get No Results Rate

Get rate of no results for an index

GET/algolia-search/{hubId}/indexes/{indexId}/analytics/no-results-rate

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Get Algolia Search Index Analytics Get No Results Rate action (under Search Indexes - Analytics).
  3. Fill in the fields below, then reference the result from later steps as {{getAlgoliaSearchIndexAnalyticsGetNoResultsRate.response.data}}.

Request

Path parameters

hubIdstringrequired

Hub ID

indexIdstringrequired

Index ID

Query parameters

startDatestring (date)

The lower bound timestamp (a date, a string like “2006-01-02”) of the period to analyze. Defaults to 7 days ago, 00:00:00am, UTC

endDatestring (date)

The upper bound timestamp (a date, a string like “2006-01-02”) of the period to analyze. Defaults to Today, 23:59:59pm, UTC

tagsstring

Filter metrics on the provided tags. Each tag must correspond to an analyticsTags set at search time. Multiple tags can be combined with the operators OR and AND. If a tag contains characters like spaces or parentheses, it should be URL encoded. E.g: * “lang:fr OR lang:en” * “platform:ios AND lang:en” * “(lang:fr OR lang:en) AND platform:android” * “device:mobile%20phone” (note the URL encoded)

includeReplicasboolean

Include replica data in the results (Can only be used in conjunction with primary indexes).

Default false

Response

Returns 200 with an object. Read it in later steps with {{getAlgoliaSearchIndexAnalyticsGetNoResultsRate.response.data.<field>}}.

ratenumber

The rate at which searches did not return any results

countnumber

Total number of searches for this period

noResultCountnumber

Total number of searches with no results for this period

datesarray<object>
datestring (date)

Date

ratenumber

Rate for the given date

countnumber

Total searches for the given date

noResultCountnumber

Total searches with no results for the given date

_linksobject

Resource HAL links

selfany
no-results-rateany
indexany
json
{
  "rate": 0.5,
  "count": 10,
  "noResultCount": 5,
  "dates": [
    {
      "date": "2020-08-24",
      "rate": 0.5,
      "count": 10,
      "noResultCount": 5
    }
  ],
  "_links": {
    "self": null,
    "no-results-rate": null,
    "index": null
  }
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.