# Boosting results based on another field?

**URL:** <https://discuss.elastic.co/t/boosting-results-based-on-another-field/4534>\
**Category:** Elasticsearch\
**Created:** [June 2, 2011, 5:37pm UTC](https://discuss.elastic.co/t/boosting-results-based-on-another-field/4534 "2011-06-02T17:37:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy1](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Andy1](https://discuss.elastic.co/u/Andy1)\
**Post date:** [June 2, 2011, 5:37pm UTC](https://discuss.elastic.co/t/boosting-results-based-on-another-field/4534/1 "2011-06-02T17:37:23Z")

</div>

Hi,

I'm new to ElasticSearch, trying to see if I could migrate a website from Solr to ES.

One of the features I need is to boost search results based on the value of another field. All my documents have a field "popularity" which is an integer. When a user makes a search, I want to return results that are the best match but also take popularity into account.

Right now in Solr when someone searches for "foo" I do something like:

q={!boost b=log(popularity)}foo

which basically multiplies the "natural" scoring of a document with the log of the popularity of that document.

Is it possible to do something similar in ElasticSearch?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:04am UTC](https://discuss.elastic.co/t/boosting-results-based-on-another-field/4534/2 "2017-07-06T04:04:50Z")

</div>


