# תוצאות חיפוש צריכות לתעדף את הפוסט הראשון בשרשור כאשר הכותרת תואמת למונח החיפוש

**URL:** <https://meta.discourse.org/t/search-results-should-prioritize-first-post-in-topic-when-title-matches-search-term/175154>\
**Category:** Feature\
**Created:** [5 בינואר,‏ 2021,‏ 1:15pm UTC](https://meta.discourse.org/t/search-results-should-prioritize-first-post-in-topic-when-title-matches-search-term/175154 "2021-01-05T13:15:39Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [18 בינואר,‏ 2021,‏ 2:16am UTC](https://meta.discourse.org/t/search-results-should-prioritize-first-post-in-topic-when-title-matches-search-term/175154/10 "2021-01-18T02:16:29Z")

</div>

> [@sam](#):
>
> Yeah we have a long discussion about this, overall my preference is for search to be very dumb and always prioritize the first match in the topic regardless of ranking. It makes it far easier to explain to people, ranking feels very arbitrary and magical.

> [@seanblue](#):
>
> Frankly, as long as the first post (via title match) is prioritized above all else I don’t care much about the rest, but what you’re saying sounds reasonable to me.

I don’t think things can be as simple as always prioritising the first post of a topic because changing one specify search scenario will affect another. Consider the following scenario:

1. Topic X and Topic Y both contains posts which matches a given search term “discourse”.
2. Post number 1 and post number 100 in Topic X matches the search term “discourse”.
3. Post number 100 ranks higher since its contents are a much better match for the search term “discourse”.
4. Post number 1 of Topic Y matches the search term “discourse”.
5. Post number 1 of Topic Y ranks higher than Post number 1 of Topic X since its contents are more relevant to the search term “discourse”.

With the previous approach, we were taking the ranking of post number 100 of Topic X to rank against post number 1 in Topic Y. In this case, post number 1 of Topic X appears higher in search than post number 1 of Topic Y even though post number 1 of Topic Y clearly matches the search term better than post number 1 of Topic X. This is equivalent to ranking topics by taking the highest ranking of the post in the topic.

If we were to just take the first post in a topic which matches the search term, we end up excluding posts which are a better match but have a higher post number in a topic which invites questions on why wasn’t this post included in the search results.

I think my main contention here with what is being proposed is that search by default searches for posts so the body of a post is actually what a user is searching for, not the title. The title helps us to filter through all the topics for the right posts to search for.

> [@codinghorror](#):
>
> Title match should have **massive supernova blackhole** weight in the ranking.

We actually do give title match a higher weight. The only problem is that title is part of the search data for all posts in a given topic so all posts are actually benefiting from the same weight for title matches.

---

_[View the full topic](https://meta.discourse.org/t/search-results-should-prioritize-first-post-in-topic-when-title-matches-search-term/175154)._
