Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: kinosearch: discuss
more abstract interfaces to kinosearch
 

Index | Next | Previous | View Flat


hdp at pobox

Jun 21, 2007, 6:06 AM


Views: 1633
Permalink
more abstract interfaces to kinosearch [In reply to]

On Wed, Jun 20, 2007 at 09:05:58PM -0700, Marvin Humphrey wrote:
>
> On Jun 20, 2007, at 8:09 PM, Hans Dieter Pearcey wrote:
>
> >* easier adding/loading: $index->add(@objects), or perhaps $index-
> >>load()
> > (using a predefined, per-schema data source)
>
> I'm can see those statements meaning several different things. Can
> you please elaborate on what it is you're trying to do?

That's because they do mean different things, but I was too tired when I was
writing that email to see how confusing it was.

Right now I have a base index manager class. That base class has a structure
for handling new input; that's where the $index->add(@objects) example came
from. Subclasses have a to_doc() method that they override. The whole thing
is not much more than a convenient wrapper around a combination of open/clobber
and for (@objects) { $inv->add_doc }

I also have a subclass that knows where its data comes from. It keeps track of
the last-indexed document from that data source and can create/update
invindexes based on various parameters (e.g. userid => 17). This means I don't
actually have to pass it any objects at all; I can just say $index->update
periodically and it takes care of finding new things to index and indexing
them.

That part hasn't been properly abstracted yet. It's very specific to that
particular subclass and data source (and indexing schema), and it's also not
very polished, so I'm not sure how it will turn out yet; in particular, if I'm
generating multiple indexes from a single data source, the last update kind of
metadat needs to be shared between them, they need to all be updated with a
single pull of data instead of each looking for updates, etc.

hdp.

Subject User Time
more abstract interfaces to kinosearch hdp at pobox Jun 20, 2007, 8:21 PM
    more abstract interfaces to kinosearch marvin at rectangular Jun 20, 2007, 9:18 PM
    more abstract interfaces to kinosearch hdp at pobox Jun 21, 2007, 6:06 AM
        more abstract interfaces to kinosearch marvin at rectangular Jun 21, 2007, 6:51 AM
    more abstract interfaces to kinosearch hdp at pobox Jun 28, 2007, 6:55 PM
        more abstract interfaces to kinosearch marvin at rectangular Jun 28, 2007, 11:01 PM
        more abstract interfaces to kinosearch marvin at rectangular Jul 10, 2007, 1:56 AM
    more abstract interfaces to kinosearch hdp at pobox Jun 29, 2007, 5:46 AM
        more abstract interfaces to kinosearch marvin at rectangular Jul 2, 2007, 8:18 AM
    more abstract interfaces to kinosearch hdp at pobox Jul 2, 2007, 8:39 AM
        more abstract interfaces to kinosearch marvin at rectangular Jul 2, 2007, 1:36 PM
    more abstract interfaces to kinosearch nate at verse Jul 2, 2007, 12:33 PM
    more abstract interfaces to kinosearch marvin at rectangular Jul 2, 2007, 1:39 PM
    more abstract interfaces to kinosearch nate at verse Jul 2, 2007, 2:17 PM
    more abstract interfaces to kinosearch hdp at pobox Jul 2, 2007, 2:22 PM
        more abstract interfaces to kinosearch hdp at pobox Jul 2, 2007, 5:36 PM
            more abstract interfaces to kinosearch nate at verse Jul 2, 2007, 6:31 PM
            more abstract interfaces to kinosearch marvin at rectangular Jul 3, 2007, 1:08 AM
    more abstract interfaces to kinosearch marvin at rectangular Jul 3, 2007, 1:11 AM
    more abstract interfaces to kinosearch nate at verse Jul 3, 2007, 1:07 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.