npm @elastic/search-ui-app-search-connector 0.11.0
v0.11.0

latest releases: 1.22.0, 1.21.5, 1.21.4...
5 years ago

0.11.0 (June 27, 2019)

Breaking Changes

There is only 1 in this release. The additionalOptions option was removed from SiteSearchAPIConnector, and AppSearchAPIConnector.

They were replaced with 3 separate hooks:
beforeAutocompleteSuggestionsCall
beforeAutocompleteResultsCall
beforeSearchCall

Please check the ADVANCED.md guide for more information. Generally speaking, the new API
signature looks like the following:

// Example of using beforeSearchCall to append an additional option on an API request
const connector = new AppSearchAPIConnector({
  searchKey: "search-xxxxxxxxxxxxxxxxxxxx",
  engineName: "search-data",
  hostIdentifier: "host-xxxxxx",
  beforeSearchCall: (existingSearchOptions, next) =>
    next({
      ...existingSearchOptions,
      group: { field: "title" }
    })
});

Don't miss a new search-ui-app-search-connector release

NewReleases is sending notifications on new releases.