showing result per url

Post Reply
m.alam
Posts: 17
Joined: Fri Nov 23, 2007 9:30 am

showing result per url

Post by m.alam »

Hi,
I want to show only 1 result per url which has highest percentage in match and if a second exact match result from same url it should offset to the right.currently all the matches from same site displays in result set.
Please suggest me for proper step.

Thanks
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

showing result per url

Post by mark »

Every url is distinct. I think you meant result per site.

You can use <urlutil split $u host> to get the site name and xtree to keep track if you've shown it already and suppress and/or indent further hits from that site.

The appliance has results-per-site options built in.
m.alam
Posts: 17
Joined: Fri Nov 23, 2007 9:30 am

showing result per url

Post by m.alam »

Yes! I mean result per site.
I think I have to modify my search query.currently the webinators search query is taking care of all the things to display result.specially calculating rank, based on matches and display result in that sequence.The only problem is that it is not searching by per site.What necessary change That I have to made and at what location in search file.It will be better if you provide me basic query itself.

The current query is:
<sql skip=$CurSkip max=$numPgHits
"select " $fields $sql $sqlorder>
<$Skip = $Skip $next>
</sql>
the important variable values are:
1.$fields = $$rank rawrank, UserKeywords UserKeywords, UserCountry UserCountry, UserState UserState, UserCity UserCity, Url Url, Depth Depth, Title Title, Description Description, Body Body, Size Size, Modified Visited, id id, Charset Charset
2.$sql= from html where Title\Description\Body\UserKeywords\UserCountry\UserState\UserCity likep $sqlq and Title like $stq and Url matches $suq and Depth <= $sdq and Catno matches $scq
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

showing result per url

Post by mark »

Doing results per site correctly is nontrivial. If you'd like to purchase the feature please contact sales. Otherwise you have to program it yourself. We can only help with specific programming questions here.
Post Reply