How can I use in relevance calculation only term frequency algorithm?

I need sorting by relevance with only term frequency algorithm, without Inverse document frequency and Field-length norm. How can I do that, if I can?