3.6 KiB
@backstage/search-common
0.2.1
Patch Changes
10615525f3: Switch to use the json and observable types from@backstage/types
0.2.0
Minor Changes
-
a13f21cdc: Implement optionalpageCursorbased paging in search.To use paging in your app, add a
<SearchResultPager />to yourSearchPage.tsx.
0.1.3
Patch Changes
-
d9c13d535: Implements configuration and indexing functionality for ElasticSearch search engine. Adds indexing, searching and default translator for ElasticSearch and modifies default backend example-app to use ES if it is configured.Example configurations:
AWS
Using AWS hosted ElasticSearch the only configuration options needed is the URL to the ElasticSearch service. The implementation assumes that environment variables for AWS access key id and secret access key are defined in accordance to the default AWS credential chain..
search: elasticsearch: provider: aws node: https://my-backstage-search-asdfqwerty.eu-west-1.es.amazonaws.comElastic.co
Elastic Cloud hosted ElasticSearch uses a Cloud ID to determine the instance of hosted ElasticSearch to connect to. Additionally, username and password needs to be provided either directly or using environment variables like defined in Backstage documentation.
search: elasticsearch: provider: elastic cloudId: backstage-elastic:asdfqwertyasdfqwertyasdfqwertyasdfqwerty== auth: username: elastic password: changemeOthers
Other ElasticSearch instances can be connected to by using standard ElasticSearch authentication methods and exposed URL, provided that the cluster supports that. The configuration options needed are the URL to the node and authentication information. Authentication can be handled by either providing username/password or and API key or a bearer token. In case both username/password combination and one of the tokens are provided, token takes precedence. For more information how to create an API key, see Elastic documentation on API keys and how to create a bearer token, see Elastic documentation on tokens.
Configuration examples
With username and password
search: elasticsearch: node: http://localhost:9200 auth: username: elastic password: changemeWith bearer token
search: elasticsearch: node: http://localhost:9200 auth: bearer: tokenWith API key
search: elasticsearch: node: http://localhost:9200 auth: apiKey: base64EncodedKey -
Updated dependencies
- @backstage/config@0.1.6
0.1.2
Patch Changes
-
db1c8f93b: The `<Search...Next /> set of components exported by the Search Plugin are now updated to use the Search Backend API. These will be made available as the default non-"next" versions in a follow-up release.The interfaces for decorators and collators in the Search Backend have also seen minor, breaking revisions ahead of a general release. If you happen to be building on top of these interfaces, check and update your implementations accordingly. The APIs will be considered more stable in a follow-up release.