---
owner_slack: "#govuk-developers"
title: Manually setting the search popularity of content
section: Publishing
layout: manual_layout
parent: "/manual.html"
last_reviewed_on: 2018-09-19
review_in: 6 months
---

To look up the popularity of an item you can query rummager by `ssh`ing into
`rummager-elasticsearch-1.production`.

To looking up popularity of a particular item you will need its `base_path` URL
encoded and then look it up with a `curl` command:

```shell
$ curl localhost:9200/government/edition/%2Fgovernment%2Fpublications%2Fdraft-capital-requirements-amendment-eu-exit-regulations-2018?fields=popularity
```

Once popularity is determined we can then update with the new popularity using
the following command:

```shell
$ curl -XPOST
localhost:9200/government/edition/%2Fgovernment%2Fpublications%2Fdraft-capital-requirements-amendment-eu-exit-regulations-2018/_update
-d '{"doc": {"popularity": 10}}'
```

Add a page about manually setting the search popularity of content
Add a page about manually setting the search popularity of content
