Jack, look at Solr JIRA and search for: field collapsing There is a patch there that does this, though it's not in sync with the Solr trunk. You can also look at how Nutch does this.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: JLIST <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Monday, May 19, 2008 6:23:32 PM > Subject: How to limit number of pages per domain > > I'm indexing pages from multiple domains. In any given > result set, I don't want to return more than two links > from the same domain, so that the first few pages won't > be all from the same domain. I suppose I could get more > (say, 100) pages from solr, then sort in memory in the > front-end server to mix the domains. But I'm not sure if > there is a simpler way of implementing this ... > > -- > Best regards, > Jack