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
Le lundi 03 novembre 2008 ? 00:50 -0500, Yannick Warnier a ?crit :> 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.I'm going to add that I know of the e-mail of Marco a few days ago (as I'm working with him) and of the fact that 1.0.8 should fix the problem, but we are not able to do that at this time (so the original question being "is there any tool to do that?" was taking it into account) ;-) Cheers, Yannick
Le dimanche 09 novembre 2008 ? 16:38 +0000, Richard Boulton a ?crit :> Olly Betts wrote: > > You can remove all databases with mention the term "foo" from PHP with: > > Olly meant "You can remove all _documents which_ mention ..." here, of > course.Thanks to both of you. Yannick