From ad52b0bfb23c8f79ea99b48749f7c45fd9bb0699 Mon Sep 17 00:00:00 2001 From: dockes Date: Wed, 23 Nov 2005 11:00:28 +0000 Subject: [PATCH] *** empty log message *** --- src/INSTALL | 1 + src/README | 4 ++-- src/rcldb/rcldb.cpp | 11 ++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/INSTALL b/src/INSTALL index acf321e3..8f0c1c20 100644 --- a/src/INSTALL +++ b/src/INSTALL @@ -33,6 +33,7 @@ Installing Recoll * MS Word documents: antiword. * PDF files: pdftotext is part of the Xpdf package. * Postscript files: pstotext. + * RTF files: the filter uses unrtf Building diff --git a/src/README b/src/README index 794b2cdd..a63ea493 100644 --- a/src/README +++ b/src/README @@ -111,8 +111,8 @@ Using Recoll this, you need to edit the configuration file ($HOME/.recoll/recoll.conf). Follow the comments in the file to adjust the parameters. - Indexing is performed either by starting the recollindex program, or by - the indexing thread inside the recoll program (use the File menu). + Indexing is performed either by the recollindex program, or by the + indexing thread inside the recoll program (use the File menu). Simple search diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 616b750b..fdd70eb6 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.38 2005-11-17 17:36:06 dockes Exp $ (C) 2004 J.F.Dockes"; +static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.39 2005-11-23 10:59:33 dockes Exp $ (C) 2004 J.F.Dockes"; #endif #include #include @@ -191,7 +191,7 @@ bool mySplitterCB::takeword(const std::string &term, int pos, int, int) { // cerr << "splitCb: term " << term << endl; //string printable; - //transcode(term, printable, "UTF-8", "ISO8859-1"); + //transcode(term, printable, "UTF-8", "ISO-8859-1"); //cerr << "Adding " << printable << endl; try { @@ -436,6 +436,7 @@ bool Rcl::Db::needUpdate(const string &filename, const struct stat *stp) string pathterm = "P" + hash; if (!ndb->wdb.term_exists(pathterm)) { + LOGDEB2(("Db::needUpdate: path inexistant: %s\n", filename.c_str())); return true; } @@ -467,8 +468,8 @@ bool Rcl::Db::needUpdate(const string &filename, const struct stat *stp) } long mtime = cp ? atol(cp) : 0; if (mtime < stp->st_mtime) { - LOGDEB2(("Need update: Db Doc mtime %ld file mtime %ld\n", - (long)mtime, (long)stp->st_mtime)); + LOGDEB2(("Db::needUpdate: yes: mtime: Db %ld file %ld\n", + (long)mtime, (long)stp->st_mtime)); // Db is not up to date. Let's index the file return true; } @@ -653,7 +654,7 @@ bool Rcl::Db::purge() ndb->wdb.delete_document(docid); LOGDEB(("Rcl::Db::purge: deleted document #%d\n", docid)); } catch (const Xapian::DocNotFoundError &) { - LOGDEB2(("Rcl::Db::purge: document #%d not found\n", docid)); + LOGDEB(("Rcl::Db::purge: document #%d not found\n", docid)); } } }