site collapsing

feles
Posts: 2
Joined: Fri Aug 31, 2001 4:57 pm

site collapsing

Post by feles »

I have indexed 15 sites on my company and when i search a term like internet the result set returns the first 20 result from one site how can I make the search script return one url for each site?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

site collapsing

Post by bart »

That would require a bit of effort on the inner loop of the primary <sql "select...">
statement. You'll have to learn a little about texis web script to do this.
feles
Posts: 2
Joined: Fri Aug 31, 2001 4:57 pm

site collapsing

Post by feles »

Do you have any examples like this one ?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

site collapsing

Post by bart »

Sorry, nothing we could show you would be of any real use.

the loop would probably look something like this though:

<sql "select Url,abstract(..)... from html where ....">
<rex ">>=[^/]+" $Url>
<if $ret neq $lastsite>
<$lastsite=$ret>
<show the hit>
</if>
</sql>
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

site collapsing

Post by bart »

Oh yeah, I forgot to mention... If this were a full Texis license instead of a Webinator this would be a lot easier because you'd just add a field to the html table to contain the site name. Then you could just check it directly.