# How to sort only by frequency of the keyword

**URL:** <https://www.ruby-forum.com/t/how-to-sort-only-by-frequency-of-the-keyword/197426>\
**Category:** Ferret\
**Created:** [October 14, 2010, 10:03am UTC](https://www.ruby-forum.com/t/how-to-sort-only-by-frequency-of-the-keyword/197426 "2010-10-14T10:03:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [October 14, 2010, 10:03am UTC](https://www.ruby-forum.com/t/how-to-sort-only-by-frequency-of-the-keyword/197426/1 "2010-10-14T10:03:47Z")

</div>

Hi

I meet a situation that search results should be sorted only by the  
frequency of the keyword in the document. Since the default score  
calculating considers many other factor, I cannot just sort by score. Is  
there a way to specify how to calculate the score, or any way to achieve  
the effect.

Thanks.
