Could you implent Image Width and Heights to Webinator Logo's that are
placed automatically in all search pages. It loads down the search
response time in some instances because the browser is waiting to
display the logos before it will display the search results?
Is a error being generated for a frame page (I ask this because offsite
redirects and Frame is one Reason for a error(Reason field="Offsite
redirect or frame"). If so shouldn't they be seperate errors since the
offsite redirect should be acted on differently then a frame page.
Should a Frame page generate an error anyways? I thought Webinator
handled frames?
In the view Context page the HREF for the hits are not enclosed in
quotes. This goes against HTML rules. How do I add them back in? Same
goes for name='s.
On the positive side I'd like to thank Webinator for opening up vortex
scripts with webinator. Because of this I've been able to get a little
more out of the product.
1)Error table and page counts
For a database that is currently indexing or walking I created a extra
search page that adds Information to the bottom section <a NAME=bottom>
to display Info from the errors table. This allows me to determine if
Something has gone wrong in the indexing allowing me to tune my walker
better. The code get's placed right after the <A NAME=bottom> in the
script. This makes the stats show up at the bottom of each page but
before the optional bottom.html page.
Guess the next step would be to add all the time out items in the error
table back into the todo list with an extra long time out value.
The Results look Like this:
Pages in Index so far: 8787
1.Pages in todo: 11625
2.Document Not Found Errors: 542
3.Document Connection Time outs: 311
4.Document Off-site redirect or frame: 22
2)Improved Search responses
I also added width and height statements to all the Gif files in the
vortex pages (Mainly the <A NAME=matchline> and <A NAME=legend>
sections). The help section could also use it. This allows for the
search results to display has soon as they are recieved by the browsers.
Without them some browsers will wait for the gif files to download
first.
3)Jump to first instance of a matched word when you use the show context
button.
Next was to add back in the jump to the first matching word on the
context button. This allows me to quickly find the first word that
matched the search especially when it appears much further down in the
document.
When the Context page comes up each instance of a word is marked with a
<a name=hit# href=#hit#> code where hit # is a sequential number
indicating the order of the words found. The name=hit# refers to this
word, the href=#hit# makes the jump to the next word. To go to the first
occourance you jump to context.html#hit1 instead of just context.html.
The context button is setup in the <a NAME=settings> section. Search for
word context.html to find the spot in the code and append #hit1 right
after the l in html). Webinator 1 had this feature but it was missed in
the new defaultindex that is shipped with webinator 2.x. P.S why aren't
the href's in context match not enclosed in quotes the way they should
be. I haven't been able to figure out how to add the quotes in myself.
Works like a gem with Webinator 2.1 under Solaris Unix.
-------
Adding Image Width and Height
-------
<IF $ret neq -1>
<IMG SRC=/webinator/ctx.gif BORDER=0 ALT="[View]" width=19
height=19> =View context
</IF>
<strstri "more" $Disp>
<IF $ret neq -1>
<IMG SRC=/webinator/mlt.gif BORDER=0 ALT="[More]" width=19
height=19> =More like this
</IF>
<strstri "tree" $Disp>
<IF $ret neq -1>
<IMG SRC=/webinator/lnk.gif BORDER=0 ALT="[Links]" width=19
height=19> =Show linkage
</IF>
<strstri "title" $Disp>
<IF $ret neq -1>
-------------
Adding Image width and heights also needed to be done here Note the
HIT#1
-------------
<strstri "view" $Disp>
<IF $ret neq -1><A HREF="$url/context.html#hit1"><IMG
SRC=/webinator/ctx.gif BORDER=0 ALT="[View]" width=19
height=19></A></IF>
<strstri "more" $Disp>
<IF $ret neq -1><A HREF="$url/morelike.html"><IMG
SRC=/webinator/mlt.gif BORDER=0 ALT="[More]" width=19
height=19></A></IF>
<strstri "tree" $Disp>
<IF $ret neq -1><A HREF="$url/showlinks.html"><IMG
SRC=/webinator/lnk.gif BORDER=0 ALT="[Links]" width=19
height=19></A></IF>
<strstri "rank" $Disp>
---------
Display Context modification by adding #hit1
---------
<strstri "view" $Disp>
<IF $ret neq -1><A HREF="$url/context.html#hit1"><IMG
SRC=/webinator/ctx.gif BORDER=0 ALT="[View]" width=19
height=19></A></IF>
<strstri "more" $Disp>
---------
To add the Stats section I added these lines to the <A NAME=bottom>
section
This modifcation would be for a non-public page pointing to your
indexing database
------------
<SQL MAX=1 "select count(Url) pageitems
from html">
</SQL>
<SQL MAX=1 "select count(Url) todoitems
from todo">
</SQL>
<SQL MAX=1 "select count(Url) notfounditems
from error where Reason='Document not found'">
</SQL>
<SQL MAX=1 "select count(Url) timeoutitems
from error where Reason ='Connection timeout'">
</SQL>
<SQL MAX=1 "select count(Url) redirectitems
from error where Reason ='Off-site redirect or frame'">
</SQL>
<h3>Pages in Index so far: $pageitems</h3>
<ol>
<li>Pages in todo: $todoitems
<li>Document Not Found Errors: $notfounditems
<li>Document Connection Time outs: $timeoutitems
<li>Document Off-site redirect or frame: $redirectitems
</ol>
--
==============================================
Daniel McHugh
Network Programmer/Analyst
Ontario Secondary School Teachers Federation
60 Mobile Drive
Toronto, ON
Canada
Voice:(416)751-8300
Fax:(416)751-3394
Webmaster@osstf.on.ca
mchughd@osstf.on.ca
==============================================