[Xapian-discuss] Remove terms from a database

Yannick Warnier ywarnier at beeznest.org
Mon Nov 3 05:50:40 GMT 2008


Hi there,

I've got a semi-production database just a little screwed up (not
completely, so I can't really remove everything and start over again),
which I am using on a Debian system with the PHP5 bindings.

As I would like to remove terms that are supposedly unused and remove
some of the terms actually used but input by mistake at the beginning, I
am looking into ways to do that.
The "delve" program allows me to check which terms are used in each
document, and which document uses which term, but there's apparently no
way to remove a term from what I can see with the few programs I have
with the xapian-tools package.

Now I can see that the Xapian::Document::remove_term() function [1]
could help me, and I can see how to do that, but I would like to check
first if there is no tool to do that on the command line or with a PHP
script already, to avoid reinventing the wheel...

Thanks,

Yannick
[1]http://xapian.org/docs/apidoc/html/classXapian_1_1Document.html




More information about the Xapian-discuss mailing list