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

Re: Glimpse.pm anyone?




I think you are after something that will allow you to search in
glimpse indexes from within perl?

I have Glimpse.pm that I wrote for use with a newspaper system
that I'm happy to send your way as a starting point if you want.
It is a very simple module that provides:

[kiva@dispatch Newspaper]$ grep ^sub Glimpse.pm
sub new {
sub search {
sub hits {
sub files {

new establishes the module and sets up arguments and a file
filter, if that's needed

search then opens a pipe to glimpse (in my case I call glimpse
with args to tell it to talk to glimpseserver) and returns the
files that it finds

hits returns a count of hits

hits returns a count of the number of files that were searched

It is set up to limit the number of returns. 

Let me know if you'd like to see it.

Round about Tue, 16 May 2000, Sam Tregar made some noise:

> Has anyone written a Perl module for glimpse?  I'm thinking of something
> that would allow perl scripts to use with glimpse without needing to
> fork/exec.  In the context of glimpseserver usage this could be a big
> performance win.
> 
> If no one had tackled this one I might be interested in doing it.  I'm
> wondering what kind of license I could put such a module under.  I imagine
> I could GPL it if I could build it without using any Glimpse, but then it
> couldn't ever be distributed with Glimpse.  Any thoughts?  Are there other
> Free add-ons to Glimpse that have solved this problem already?
> 
> Thanks!
> -sam
> 
> 

-- 
Those who will not reason, are bigots, those who cannot,  CDent.....Not a mule
are fools, and those who dare not, are slaves. -Byron     kiva.net  mail=363
   I don't know how to deal with you, I'm a sysadmin not a proctologist.