Here's one for you.  I use an indexing tool called swish-e (swish-e.org) 
to spider my web sites and provide search results.  Anyone who wants to 
know why this is the best thing since sliced bread, contact me off -line.

Anyway, it's really fast, as you can see from my shell query for the word 
"children".  It comes with a cgi script that will do highlighting, but 
that is relatively slow (about a factor of 10).  Also, this is an 
intranet application, where authentication is required, so I want to 
execute the search from within my witango application.

Question 1.  How do I execute the following shell command from within 
witango?

bash-2.05b$ swish-e -w children -d \t
# SWISH format: 2.4.0-pr1
# Search words: children
# Removed stopwords:
# Number of hits: 87
# Search time: 0.001 seconds
# Run time: 0.026 seconds


Default Results for this query include 4 space separated columns of data 
(though I could specify many other parameters like metatags, body text, 
etc.):
Relevance (0 to 1000)
URL (I've changed it to hide this from curious eyes)
Title tag
File size


1000 
http://intranet.tothept.com/programs.taf?_function=category_list&_uid1=6 
"VCS CCMH Children and Youth Division: Program Selection" 32335
932 
http://intranet.tothept.com/programs.taf?_function=category_list&_uid1=2 
"VCS CCMH Children and Youth Division: Program Selection" 34004
920 http://intranet.tothept.com/viewdoc.taf?_uid1=6 "Child and Family 
Mental Health Services Overview" 6290
894 http://intranet.tothept.com/viewdoc.taf?_uid1=32 "Services for 
Children 0 to 5 Years Old Overview" 1701

Question 2.  Do the results end up in "resultSet"?  These result are tab 
separated (the command line switch: -d \t), so is there an easy way to 
get them into an array, or do I have to tokenize them line by line?

Thanks

Bill Conlon

To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306

office: 650.327.2175
fax:    650.329.8335
mobile: 650.906.9929
e-mail: mailto:[EMAIL PROTECTED]
web:    http://www.tothept.com


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to