Switch to unified view

a/src/rcldb/rcldoc.h b/src/rcldb/rcldoc.h
...
...
85
    // Attribute for the "abstract" entry. true if it is just the top
85
    // Attribute for the "abstract" entry. true if it is just the top
86
    // of doc, not a native document attribute. Not stored directly, but
86
    // of doc, not a native document attribute. Not stored directly, but
87
    // as an indicative prefix at the beginning of the abstract (ugly hack)
87
    // as an indicative prefix at the beginning of the abstract (ugly hack)
88
    bool   syntabs;      
88
    bool   syntabs;      
89
    
89
    
90
    // File size. This is the size of the compressed file or of the
91
    // external containing archive.
90
    // File size. Index: Set by caller prior to Db::Add. Query: set by
92
    // Index: Set by caller prior to Db::Add. 
91
    // rcldb from index doc data. Historically this always has
93
    // Query: not set currently (not stored)
92
    // represented the whole file size (as from stat()), but there
93
    // would be a need for a 3rd value for multidoc files (file
94
    // size/doc size/ doc text size)
95
    string fbytes;       
94
    string pcbytes;       
96
95
97
    // Doc text size. Index: from text.length(). Query: set by rcldb from
96
    // Document size, ie, size of the .odt or .xls.
98
    // index doc data.
97
    // Index: Set in internfile from the filter stack
98
    // Query: set from data record
99
    string fbytes;
100
101
    // Doc text size. 
102
    // Index: from text.length(). 
103
    // Query: set by rcldb from index data record
99
    string dbytes;
104
    string dbytes;
100
105
101
    // Doc signature. Used for up to date checks. 
106
    // Doc signature. Used for up to date checks. 
102
    // Index: set by Db::Add caller. Query: set from doc data.
107
    // Index: set by Db::Add caller. Query: set from doc data.
103
    // This is opaque to rcldb, and could just as well be ctime, size,
108
    // This is opaque to rcldb, and could just as well be ctime, size,
...
...
124
    fmtime.erase();
129
    fmtime.erase();
125
    dmtime.erase();
130
    dmtime.erase();
126
    origcharset.erase();
131
    origcharset.erase();
127
    meta.clear();
132
    meta.clear();
128
    syntabs = false;
133
    syntabs = false;
134
  pcbytes.erase();
129
    fbytes.erase();
135
    fbytes.erase();
130
    dbytes.erase();
136
    dbytes.erase();
131
    sig.erase();
137
    sig.erase();
132
138
133
    text.erase();
139
    text.erase();
...
...
161
    static const string keytp;  // mime type
167
    static const string keytp;  // mime type
162
    static const string keyfmt; // file mtime
168
    static const string keyfmt; // file mtime
163
    static const string keydmt; // document mtime
169
    static const string keydmt; // document mtime
164
    static const string keymt;  // mtime dmtime if set else fmtime
170
    static const string keymt;  // mtime dmtime if set else fmtime
165
    static const string keyoc;  // original charset
171
    static const string keyoc;  // original charset
166
    static const string keyfs;  // file size
172
    static const string keypcs;  // document outer container size
167
    static const string keyds;  // document size
173
    static const string keyfs;  // document size
174
    static const string keyds;  // document text size
168
    static const string keysz;  // dbytes if set else fbytes
175
    static const string keysz;  // dbytes if set else fbytes else pcbytes
169
    static const string keysig; // sig
176
    static const string keysig; // sig
170
    static const string keyrr;  // relevancy rating
177
    static const string keyrr;  // relevancy rating
171
    static const string keycc;  // Collapse count
178
    static const string keycc;  // Collapse count
172
    static const string keyabs; // abstract
179
    static const string keyabs; // abstract
173
    static const string keyau;  // author
180
    static const string keyau;  // author