Sounds like a case for a function query where you use the field that stores the number of posts for a thread to adjust the score.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Jake Conk <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Thursday, September 25, 2008 8:51:02 PM > Subject: Searching Question > > Hello, > > We are using Solr for our new forums search feature. If possible when > searching for the word "Halo" we would like threads that contain the > word "Halo" the most with the least amount of posts in that thread to > have a higher score. > > For instance, if we have a thread with 10 posts and the word "Halo" > shows up 5 times then that should have a lower score than a thread > that has the word "Halo" 3 times within its posts and has 5 replies. > Basically the thread that shows the search string most frequently > amongst the number of posts in the thread should be the one with the > highest score. > > Is something like this possible? > > Thanks, > > - JC