[Xapian-discuss] Deleting documents with scriptindex

Jason Chapin jason at roasted.org
Thu Jun 18 16:24:14 BST 2009


Hey everone,

I can't seem to find an answer for this, or I'm going about it wrong. 
The situation is this, I use scriptindex on a dump of MySQL product data 
to update the Xapian database. The product catalog updates about once a 
month, wherein existing products can be updated or deleted and new 
products added. When I run scriptindex on the new catalog of product 
data, it reports how many where added/replaced/deleted. The deleted 
value is always 0, so products that have been removed from the catalog 
still remain in the database.

How can I delete these? It would be too tedious to find and specify each 
docID to delete. Would it be best to just delete the database and 
rebuild it for each product update?

Thanks for your help,
Jason

-- 
////////////////////////////////////
Jason Chapin
jason at roasted.org
508.654.8478 {mobile}



More information about the Xapian-discuss mailing list