# How can I make more popular content rank higher in my search results?

**URL:** <https://community.swiftype.com/t/how-can-i-make-more-popular-content-rank-higher-in-my-search-results/83>\
**Category:** Setup & Indexing\
**Created:** [December 21, 2015, 11:16pm UTC](https://community.swiftype.com/t/how-can-i-make-more-popular-content-rank-higher-in-my-search-results/83 "2015-12-21T23:16:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/swiftype/original/1X/fd652d1735c60057fa71c371375511028f9a1832.png) [@system](https://community.swiftype.com/u/system)\
**Post date:** [December 21, 2015, 11:16pm UTC](https://community.swiftype.com/t/how-can-i-make-more-popular-content-rank-higher-in-my-search-results/83/1 "2015-12-21T23:16:21Z")

</div>

If you’re using our web crawler, you can use the [`popularity` meta tag](https://swiftype.com/documentation/meta_tags2#stpopularity) to set a popularity score. If you’re using our API or WordPress plugin, you’ll need to add a custom attribute to track the popularity.

Once you’re recording popularity, use a [functional boost](https://swiftype.com/documentation/searching#functional_boosts) to adjust the ranking.

Using our search API, you can apply a linear boost to each matching result’s score:

```auto
curl -XGET 'https://api.swiftype.com/api/v1/public/engines/search.json' \
-H 'Content-Type: application/json' \
-d '{
      "engine_key": "YOUR_ENGINE_KEY",
      "q": "your query terms",
      "functional_boosts":{
        "YOUR_DOCUMENT_TYPE":{
          "popularity": "linear"
        }
      }
    }'

```

This will multiply the score of every document by its popularity.

If you’re using our web crawler and our [jQuery search library](https://github.com/swiftype/swiftype-search-jquery), you can add a linear functional boost like this:

```auto
$("#st-search-input").swiftypeSearch({
  engineKey: "YOUR_ENGINE_KEY",
  resultContainingElement: "#your-result-div",
  functionalBoosts: {"page": {"popularity": "linear"}}
});

```

If you’re using our standard JavaScript embed, boosting can be configured by adding the `popularity` field to the Weights tab.
