Search::InvertedIndex and related things

Kake on 2002-12-01T21:34:40

(See also the London.pm version of this post.)

On Sun 17 Nov 2002, Kate L Pugh <kake@earth.li> wrote:

Is there anyone here who's used Search::InvertedIndex and can point me to some working example code? I'm having great trouble getting my head around it.

Just for completeness:

I seem to have finally figured it out. Here's an example script if anyone else is interested. Note that script does give a warning about the database not being open when it comes to cleanup time. I've yet to look into that problem properly.

(Before anyone suggests it — yes, I will be sending a documentation patch to the maintainer as soon as I manage to get hold of him.)

All this poking about has also led me to notice that this module doesn't care about the position of keys within the data, so it won't be able to do proper phrase searching. (I would love to be proved wrong here.) What are people using for that kind of thing? DBIx::FullTextSearch can do it, but that's limited to MySQL. I can't make head or tail of WAIT; does anyone know if that might suit my needs? And if so, could they point me to some idiot-proof documentation and/or examples?