[Xapian-discuss] Deleting documents with scriptindex

Kevin Duraj kevin.softdev at gmail.com
Wed Jul 1 02:38:36 BST 2009


I was also wondering how you can quickly delete a document using
scriptindex. I tried all the possibilities, but was not able to figure
out. Can somebody write a simple command line example.

Thanks
-Kevin

On Thu, Jun 18, 2009 at 9:08 AM, Olly Betts<olly at survex.com> wrote:
> On Thu, Jun 18, 2009 at 11:24:14AM -0400, Jason Chapin wrote:
>> 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.
>
> If you feed scriptindex a record which only specifies a unique id then
> it will remove any record with that unique id (documented in
> scriptindex.html under the unique action).
>
>> Would it be best to just delete the database and rebuild it for each
>> product update?
>
> That would work too.  If most products change then it's probably quicker
> to just rebuild from scratch.
>
> Cheers,
>    Olly
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>



More information about the Xapian-discuss mailing list