Skip to content

Releases: ONSdigital/dp-search-api

Release 1.21.0

03 May 20:12
v1.21.0
3bce1b9
Compare
Choose a tag to compare

This PR contains the following:

  • Fix script to have the uri param and unique es id
  • Use go:embed instead of files on disk
  • Removed unused elasticsearch query templates

Release 1.20.0

25 Apr 14:49
v1.20.0
250ff30
Compare
Choose a tag to compare
  • Create templates for ES 7.10
  • Introduce new model folder for data models used
  • Add the ReleaseSearchRequest as a parameter to the transformer so that the results pertinent to the request can be set correctly
  • Remove timeseries and data endpoints

Release 1.19.0

07 Apr 14:38
v1.19.0
445bc99
Compare
Choose a tag to compare

Release 1.19.0 contains the following

Add templates for Elastic Search Release Calendar entry queries
Add new 'search/releases' endpoint to api with associated handlerV
Handle new query param topics
Extend script to load data from dataset api

Release 1.18.0

25 Mar 10:56
v1.18.0
4c1e141
Compare
Choose a tag to compare

Add bulk indexing script
Add correct design system class
Add a new separate definition for release search results

Release 1.17.0

07 Mar 11:08
Compare
Choose a tag to compare

These are the changes in this release:

  • Swagger doc update for a new filter field named "topics".
  • Addition of a new search element, named "topics", which is of type "nested", in the search index settings for mapping.
  • Updated ElasticSearch signing, of requests, to use the new Round Tripper method.
  • Dependency upgrade of dp-net, to version 2, to use new method to create http transport layer for signing requests to elasticsearch, using NewClientWithTransport.
  • Three new environment variables added to the config for the AWS credentials: AWS_FILENAME, AWS_PROFILE, and AWS_TLS_INSECURE_SKIP_VERIFY.
  • The cmd/create-index/main.go script has been reemoved as it was unused.
  • The CI files have been updated to use go version 1.17.7
  • The MIT Licence has been updated to 2022.
  • Update configuration unit tests with the new AWS variables.
  • Create unit tests for the POST /search endpoint.

Release 1.16.0

18 Feb 13:13
Compare
Choose a tag to compare

These are the changes in this release:

  1. The SearchAPI now uses the AWS Signer Round Tripper package

  2. The version of dp-net being used has been updated, to 1.4.1, due to the previous version causing a bug with the POST /search endpoint.

Release 1.15.0

11 Jan 17:09
v1.15.0
d74fea8
Compare
Choose a tag to compare

These are the changes in this release:

Update elasticsearch mappings for es 7.10
Remove redundant getstatus api
Enable golangci linter
Fix all the existing lint issues
Component test minor updates
Reorder data types to be alphabetical and remove duplicate
Add additional content types

Release 1.14.0

01 Dec 14:28
v.1.14.0
2d59e84
Compare
Choose a tag to compare
  • build additional suggested search terms when there is more than one search term

Release 1.13.0

29 Nov 11:26
Compare
Choose a tag to compare

Features:

  • New POST /search endpoint to enable creation of indexes for authorised users
  • GET /search endpoint response structure updated to return highlight object containing embedded tags around terms that matched query term
  • Refactor code to enable the ability to write component tests against the service layer
  • Component tests added for GET /search endpoint

New POST /search endpoint changes, further info:

  1. The SearchAPI now contains the new ElasticSearch client as well as the old one. The new one has been named dpESClient and the old one has been renamed to deprecatedESClient, this is needed as one client talks to elasticsearch 2.4.2 and the other to elasticsearch 7.10 as we slowly migrate to new elasticsearch cluster.

  2. An endpoint has been added, which allows a POST request to be made, to create an empty ElasticSearch index. The endpoint is POST /search

Example (to create a new empty index):
http://localhost:23900/search

Response:

{
    "IndexName": "ons1636628199823915"
}

NB. The new endpoint requires authorisation of type 'Bearer Token'. The token it needs is the SERVICE_AUTH_TOKEN so this must be set appropriately in whatever environment is being used. This also means that Zebedee (and Vault, which Zebedee has a dependency on) must now also be running in the same environment as this service. The README has been updated to reflect this.

  1. The registerCheckers function now gets the new ES client from the service instead of creating its own new ES client.

Release 1.12.0

17 Sep 15:31
v1.12.0
0a4a7de
Compare
Choose a tag to compare
  • Adds default search index mappings and settings