Page 1 of 1

morelike mod

Posted: Mon Nov 15, 1999 10:58 am
by Thunderstone


A simple change in the webinator SEARCH script can allow you to

have a link to find similar based on the url. That is, you can find
similar without having conducted a search. the calling routine would be
something like

/scripts/texis.exe/scripts/search/morelike.html?db=mydb&Url=www.myurl.org/dir1.htm
(actually it is better to URLEncode the myURL in case there are
variables being passed as in asp scripts or cgi calls; note the passed
url does not have the http:// prefix)


The mod is In <<A NAME=morelike>

add ",id" and change the where clause as follows


<<SQL MAX=1 "select Url, Title, id, texttomm(Title\Body, 10) query

from html

where (id = $id) or (Url=$Url)">



----------------------------------------------------------

Larry Rudner rudner@ericae.net

ERIC Clearinghouse on 800 464-3742 (800 Go4-ERIC)

Assessment and Evaluation 301-405-7449

1131 Shriver Laboratory fax 301 405-8134

College Park, MD 20742 http://ericae.net