[KinoSearch] more abstract interfaces to kinosearch

Hans Dieter Pearcey hdp at pobox.com
Wed Jun 20 20:09:04 PDT 2007


There are two things I find myself wanting over and over when I use KS:

* easier adding/loading: $index->add(@objects), or perhaps $index->load()
  (using a predefined, per-schema data source)
* easier searching, without using QueryParser, like SQL::Abstract (since
  that's what I'm used to):
  $hits = $index->search({ foo => 1, bar => [ (qw(baz quux) ] })

I've created prototypes of both of these for a project I'm working on.  If
anyone's interested, I'd love suggestions; I'll probably try to spin them off
into e.g. KSx::Manager or KSx::AbstractSearch.

In both cases my fundamental goal is to reduce the number of objects and method
calls needed in code that manipulates or uses the invindex, because refactoring
is nice and I don't like doing all that typing.

hdp.



More information about the kinosearch mailing list