Search API (née "rummager") indexes content into Elasticsearch and serves the GOV.UK Search API.
GOV.UK applications use the API to search and filter GOV.UK content. For example, alphagov/finder-frontend uses the search API to render site search and finder pages (such as gov.uk/aaib-reports).
Search API also provides a public API: https://www.gov.uk/api/search.json?q=taxes.
If you would like to use the Search API, please see the Search API documentation.
You can also find some examples in the blog post: "Use the search API to get useful information about GOV.UK content".
Search API is a Sinatra application that interfaces with Elasticsearch.
You can use the GOV.UK Docker environment to run the application and its tests with all the necessary dependencies. Follow the usage instructions to get started.
Use GOV.UK Docker to run any commands that follow.
bundle exec rake
- How documents are indexed
- How documents are retrieved
- Search relevancy - uses AWS Sagemaker
- New indexing process: how to update a format to use the new indexing process
- Schemas: how to work with schemas and the document types
- Popularity information: Search API uses Google Analytics data to improve search results.
- Publishing document finders: Information about publishing finders using rake tasks