Forum Moderators: coopster
I'm building an XML news feed search engine, using PHP and MySQL, and I am basing the style on Google.
I have achieved almost everything I have set out to do but... I would now like to incorporate the feature Google has were it shows 2 results from a website, and one is indented, and there's an additional link "More results from XYZ.com".
I've been fiddling around with GROUP BY, but, I would like to limit the group size to 2. Just like Google.
Is this possible?
i asked the same question once: [webmasterworld.com...]
you could also try it serverside, selecting more results and count the number of results per domain (you can use parse_url) and skipping after 2 urls per domain.