[Xapian-discuss] how to delete all document from the DB (without deleting the DB itself)

Rusty Conover rconover at infogears.com
Thu Apr 24 18:31:49 BST 2008


On Apr 24, 2008, at 11:25 AM, Alessandro Pasotti wrote:

> Hello,
>
> I'm still testing PHP5 bindings and I could'nt find a way to delete
> all documents from a DB without deleting other informations stored in
> the DB such as synonyms.
>
> Since the process of adding synonyms is time consuming, I would like
> to use the same DB but restart my test without any document in the DB,
> is this possibile?
>
> I could'nt find a delete_all or a method like that, nor an iterator
> over all documents without querying.
>
> Any idea?
>

Hi,

Why is adding synonyms a time consuming operation, it seems pretty  
constant time from my experience.

Thanks,

Rusty
--
Rusty Conover
InfoGears Inc.
http://www.infogears.com









More information about the Xapian-discuss mailing list