Skip to main content
Version: current

Migrating from DocSearch v2

This page lists the differences between the DocSearch v2 and DocSearch v3 API, you can also take a look at the exhaustive API reference list and the Getting started guide.

indexName: 'YOUR_INDEX_NAME',

- inputSelector: '<YOUR_CSS_INPUT_SELECTOR>',
+ container: '<YOUR_CSS_CONTAINER_SELECTOR>', -> We now require a container to be provided

+ appId: '<YOUR_REQUIRED_APP_ID>', -> `appId` is now required

- transformData: function(hits) {},
+ transformItems: function(items) {},

- algoliaOptions: {},
+ searchParameters: {},