: : 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 ...
This sounds like hte "field collapsing" use case in SOLR-236 ... if you are feeling adventurous you may want to try out that patch. (i'm not at all familiar with it.) -Hoss