in reply to Hits algorithm

Can you show what you already have, maybe together with a sample query?