# Elasticsearch custom score

**URL:** <https://discuss.elastic.co/t/elasticsearch-custom-score/80620>\
**Category:** Elasticsearch\
**Created:** [March 30, 2017, 8:17am UTC](https://discuss.elastic.co/t/elasticsearch-custom-score/80620 "2017-03-30T08:17:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fofiedelly](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@fofiedelly](https://discuss.elastic.co/u/fofiedelly)\
**Post date:** [March 30, 2017, 8:17am UTC](https://discuss.elastic.co/t/elasticsearch-custom-score/80620/1 "2017-03-30T08:17:01Z")

</div>

Hello Guys.

I'm using ES 1.7 to build a classfied ads search engine. This works pretty good. I'm crawling the web and indexing in my ES instances.

Now i have like to force Elasticsearch to display the results of at least 6 different websites on the first page even if they are less relevant.

In my current case, only the Ads from a specific website are been displayed on the first page because his content is always most relevant that the others.

How can i trick it, at least for the first page of results ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 30, 2017, 8:23am UTC](https://discuss.elastic.co/t/elasticsearch-custom-score/80620/2 "2017-03-30T08:23:52Z")

</div>

Have you looked at boosting?

---

<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:** [April 27, 2017, 8:23am UTC](https://discuss.elastic.co/t/elasticsearch-custom-score/80620/3 "2017-04-27T08:23:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
