How to sort only by frequency of the keyword

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs