Can we see a snippet of the data coming back Ben Johansen - http://www.pcforge.com Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm Authorized MDaemon Mail Server Reseller http://www.pcforge.com/AltN.htm
-----Original Message----- From: Bill Conlon [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 4:04 PM To: [EMAIL PROTECTED] Subject: Re: Witango-Talk: Witango 062/Redhat 9: external action/ parsing results thanks resultset is an N rows x 1 column table. Any good ideas on splitting this into an N x M table? > >Use an external action to call a script that looks like this: > > #!/bin/sh > swish-e -w $SEARCHSTRING -d \t > >The $SEARCHSTRING parameter can be passed from the external action. >The results will be in request$resultSet, but I don't know what it >will look like -- try it and see. > >Also, the script needs to be inside ABSOLUTEPATHPREFIX. > >- Jeff > > > >>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 >-- > >Jeff Bohmer >VisionLink, Inc. >_________________________________ >303.402.0170 >www.visionlink.org >_________________________________ >People. Tools. Change. Community. >_______________________________________________________________________ _ >TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf > 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 ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
