Extract the domain (the "main URL" you mention) into its own indexed field and use field collapsing/grouping: http://wiki.apache.org/solr/FieldCollapsing
Erik On Jun 27, 2013, at 08:18 , Wojciech Kapelinski wrote: > I'm looking for a neat solution to replace default multiple results from > single domain in SERP > > somepage.com/contact.html > somepage.com/aboutus.html > otherpage.net/info.html > somepage.com/directions.html etc > > with only one result per each domain [main URL by default] > > somepage.com > otherpage.net > completelydifferentpage.org > > Tried grouping by Carrot2 but it's not exactly what I'm looking for. > > Thanks in advance.