From 98dcf8c9ca65809b3a8639fe183396447ec3f748 Mon Sep 17 00:00:00 2001 From: dockes Date: Tue, 13 Jan 2009 08:02:29 +0000 Subject: [PATCH] minor visibility cleanup --- src/rcldb/rcldb.h | 9 --------- src/rcldb/rcldb_p.h | 9 +++++++++ src/rcldb/rclquery.h | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/rcldb/rcldb.h b/src/rcldb/rcldb.h index 3f6fc0c5..a1c86415 100644 --- a/src/rcldb/rcldb.h +++ b/src/rcldb/rcldb.h @@ -56,15 +56,6 @@ class RclConfig; namespace Rcl { #endif -// Omega compatible values. We leave a hole for future omega values. Not sure -// it makes any sense to keep any level of omega compat given that the index -// is incompatible anyway. -enum value_slot { - VALUE_LASTMOD = 0, // 4 byte big endian value - seconds since 1970. - VALUE_MD5 = 1, // 16 byte MD5 checksum of original document. - VALUE_SIG = 10 // Doc sig as chosen by app (ex: mtime+size -}; - class SearchData; class TermIter; class Query; diff --git a/src/rcldb/rcldb_p.h b/src/rcldb/rcldb_p.h index c2db458d..a2efcb6e 100644 --- a/src/rcldb/rcldb_p.h +++ b/src/rcldb/rcldb_p.h @@ -6,6 +6,15 @@ namespace Rcl { /* @(#$Id: rcldb_p.h,v 1.6 2008-09-30 12:38:29 dockes Exp $ (C) 2007 J.F.Dockes */ +// Omega compatible values. We leave a hole for future omega values. Not sure +// it makes any sense to keep any level of omega compat given that the index +// is incompatible anyway. +enum value_slot { + VALUE_LASTMOD = 0, // 4 byte big endian value - seconds since 1970. + VALUE_MD5 = 1, // 16 byte MD5 checksum of original document. + VALUE_SIG = 10 // Doc sig as chosen by app (ex: mtime+size +}; + // Generic Xapian exception catching code. We do this quite often, // and I have no idea how to do this except for a macro #define XCATCHERROR(MSG) \ diff --git a/src/rcldb/rclquery.h b/src/rcldb/rclquery.h index 10f7a3bb..9208b9e5 100644 --- a/src/rcldb/rclquery.h +++ b/src/rcldb/rclquery.h @@ -54,10 +54,12 @@ class Query { /** Choose sort order. Must be called before setQuery */ void setSortBy(const string& fld, bool ascending = true); - void setCollapseDuplicates(bool on) {m_collapseDuplicates = on;} const string& getSortBy() const {return m_sortField;} bool getSortAscending() const {return m_sortAscending;} + /** Return or filter results with identical content checksum */ + void setCollapseDuplicates(bool on) {m_collapseDuplicates = on;} + /** Accept data describing the search and query the index. This can * be called repeatedly on the same object which gets reinitialized each * time.