[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OPT_whole missing in 1.7.5 and 1.7.6
Hi wgdev folks
Somehow I seem to have deleted the OPT_whole switch from the glimpse
command line in these two versions...I've got it checked back in correctly
now but if you've been having trouble with too many partial matches, try
hacking in the fix at the bottom of this note. Thanks to Jeff for catching
this!!
--Golda
----------------------------------------------------------------
From: Jeff Mangum <jmangum@tuc.nrao.edu>
Date: Wed, 15 Sep 1999 23:41:11 -0700 (MST)
To: Golda Velez <gvelez@tucson.com>
Subject: Re: Website response
X-Mailer: VM 6.74 under Emacs 20.3.1
It seems that glimpse is not being sent the -w switch by default. I
simply filled-in the search field with the string "man" and left all
other parameters at their defaults. Here is what was sent to
webglimpse...
http://www.tuc.nrao.edu/cgi-bin/webglimpse/home/tservo/ftp/www?query=man&err
ors=0&age=&maxfiles=50&maxlines=30&maxchars=10000&cache=yes
...and here is the command that glimpse got based on the return
document source (plus the title field)...
<!-- Glimpse command: /opt/local/bin/glimpse -U -W -j -y -i -0 -H
/home/tservo/ftp/www 'man' | -->
<HTML><HEAD><TITLE>Result for query "man"
I guess it has something to do with the QS_whole variable not getting set
correctly in webglimpse. So, I took a look at webglimpse and found
that OPT_whole wasn't getting passed in the output $cmd. Here is what
was in the webglimpse cgi script for $cmd...
$cmd = "$GLIMPSE_LOC -U -W -j -y $OPT_nonascii $OPT_file $OPT_linenums
$OPT_age $OPT_case $OPT_errors -H $indexdir " .
"$OPT_filter '$QS_query' |";
...so I just put in the OPT_whole parameter in this string...
$cmd = "$GLIMPSE_LOC -U -W -j -y $OPT_nonascii $OPT_file $OPT_linenums
$OPT_age $OPT_whole $OPT_case $OPT_errors -H $indexdir " .
"$OPT_filter '$QS_query' |";
...and it all seems to work now. Sorry for the long-winded
explananation...
Cheers,
Jeff
"GV" == Golda Velez <gvelez@tucson.com> writes:
GV> No, the -w is for glimpse. If you are calling it through webglimpse,
check
GV> the source on the results page and make sure the -w switch is being
used on
GV> the glimpse command line.
GV> If it is being used, then what you're seeing is a bit odd - try running
the
GV> glimpse command on the shell prompt and see if you get the same results.
GV> --G
GV> At 08:55 PM 9/15/99 -0700, you wrote:
>> ok. I see no -w switch in the calls to glimpseindex in wgreindex. I
>> have attached wgreindex below fyi. Should I just add the -w switch to
>> wgreindex? Thanks!
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> "GV" == Golda Velez <gvelez@tucson.com> writes:
>>
GV> That should only happen if you have "partial match" checked, which causes
GV> the -w switch not to be used on glimpse (it is used by default). If you
GV> are using glimpse directly on the command line, just add the -w.
>>
GV> --G
>>
GV> At 06:33 PM 9/15/99 -0700, you wrote:
>>>> Sorry to have to ask another question, but I am wondering how to index
>>>> such that the pattern matching is exact? For example, if I want to
>>>> search for "man", I currently get matches for "mangum" too. I looked
>>>> through the on-line documentation but couldn't find any reference to
>>>> this. Thanks for your help.
>>>>
>>>> Cheers,
>>>>
>>>> Jeff
>>>>
>>>>
GV> ------------------------------------------------------------
GV> Golda Velez gvelez@tucson.com 520-620-6878
GV> Internet Workshop http://tucson.com
GV> Webglimpse Search Software http://webglimpse.net
GV> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
GV> Help organize the world - index your own corner of the web
>>
>>
>>
GV> ------------------------------------------------------------
GV> Golda Velez gvelez@tucson.com 520-620-6878
GV> Internet Workshop http://tucson.com
GV> Webglimpse Search Software http://webglimpse.net
GV> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
GV> Help organize the world - index your own corner of the web