[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Glimpse and partial matching.



Hello Sam

At 04:46 PM 6/6/00 -0400, Sam Tregar wrote:
>Hello all.  I've been trying to figure out how best to do partial matching
>with glimpse.  Essentially I'd like 'ca' to match 'cat' but not 'scat' or
>'mcat'.  Nothing seems to be getting me there in a reasonable ammount of
>time.  I've tried using the '#' wildcard with -w but that doesn't seem to
>work.  I've tried '\<cat.*' but that doesn't seem to work.

You might try a regexp like

	glimpse -H . '(^| )ca'     

instead.  Definitely using -w will not work, because of the way glimpse
defines word searches - it would look for "ca" as a whole word first, then
it would apply the entire regexp pattern to the matching files.  See the
paragraph headed "Regular Expressions" in the glimpse man page at
http://webglimpse.net/glimpsehelp.html#sect7 .

Hope that helps...

--G

ps As far as I can tell the "#" seems to be working ok when not used with
the -w switch, but I haven't tested extensively.


------------------------------------------------------------
Golda Velez         gvelez@iwhome.com	        520-620-6878
Internet Workshop                          http://iwhome.com
Webglimpse Search Software             http://webglimpse.net
		~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Help organize the world - index your own corner of the web