Page 1 of 1

Return just one page per domain

Posted: Tue May 15, 2001 9:40 am
by alpha982
Hi,
this is my problem:
I have to return *JUST ONE* page per domain in my DB.
Example: I search "webinator rules". In my DB i got www.mysite.com/webinator.html and www.mysite.com/webinator2.html containing "webinator rules". How can I return just www.mysite.com/webinator.html?
Regards

Return just one page per domain

Posted: Tue May 15, 2001 10:49 am
by mark
You would have to modify the search script to filter the answers before displaying them. Either order by Url and skip the answer if the hostname is the same as the previous. Or maintain a list of displayed hosts and only display answers for those not already in the list.

Sounds like maybe you're really looking for a full Texis application where you would collect all of the pages for a given site into one record.