[Xapian-discuss] how to delete all document from the DB (without deleting the DB itself)
Andreas Marienborg
andreas at startsiden.no
Fri Apr 25 07:19:13 BST 2008
On Apr 24, 2008, at 7:25 PM, 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?
I would keep a DB with only synonyms and then do a copy of it (on the
filesystem level) whenever I needed a clean DB to do my testruns.
- andreas
More information about the Xapian-discuss
mailing list