# Result based on no.of matching search query

**URL:** <https://community.swiftype.com/t/result-based-on-no-of-matching-search-query/729>\
**Category:** General\
**Created:** [June 8, 2018, 4:27pm UTC](https://community.swiftype.com/t/result-based-on-no-of-matching-search-query/729 "2018-06-08T16:27:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gic](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@gic](https://community.swiftype.com/u/gic)\
**Post date:** [June 8, 2018, 4:27pm UTC](https://community.swiftype.com/t/result-based-on-no-of-matching-search-query/729/1 "2018-06-08T16:27:53Z")

</div>

When we search the two words, like “events in the city”. It will get the result which is matching event or city. We need to show the result like below,

1. It needs to show best match. For ex, which content contains the whole sentence " events in the city ". It needs to show first in search results.
2. Then we can show the search result which is matching events or city.

---

<div class="post-metadata">

**Author:** ![mike\_w](https://sea1.discourse-cdn.com/flex019/user_avatar/community.swiftype.com/mike_w/32/5_2.png) [@mike\_w](https://community.swiftype.com/u/mike_w)\
**Post date:** [June 13, 2018, 11:24pm UTC](https://community.swiftype.com/t/result-based-on-no-of-matching-search-query/729/2 "2018-06-13T23:24:38Z")

</div>

Hey G,

Depending on your engine’s Weight configuration for the field that contains the entire phrase `events in the city`, the scoring of the final results can vary.

By default, the relevancy algorithm _should_ favor exact phrase matching. Based on what you described, it sounds as though there may be a higher importance placed on fields that contain significant partial matches.

Any application of field boosting can affect result output as well. For specific questions related to your engine(s) and use case, please write into support with as much context and detail as you can provide. Thanks!
