[Xapian-discuss] How can I get a list of all the document reference numbers from a db?

Jim Lynch jwl at sgi.com
Wed Sep 8 14:51:26 BST 2004


I had a problem while initially loading my databases.  The system went 
down and when it came back up the db_lock files were still there.  
Scriptindex aborted but my script that was driving it didn't detect that 
situation and removed all the files that were left to still index.  I 
don't really want to start over since I had a few days invested in 
loading the db.  I'd like to get a list of all the documents in the db 
so I can compare to the source and reload just the missing ones.

My index file looks like:

reference : field=url boolean=Q unique=Q
date : field date=unix
stringdate: field index=XC value=1
body :  index
summary : field=sample
title: field index=XT value=2
status: field index=XS
assigned: field index=XA
db: field index=XB value=3

Reference is the field I'd like to extract.

Thanks,
Jim.




More information about the Xapian-discuss mailing list