|
a/src/utils/fileudi.h |
|
b/src/utils/fileudi.h |
|
... |
|
... |
22 |
|
22 |
|
23 |
// Unique Document Ids for the file-based indexer (main Recoll
|
23 |
// Unique Document Ids for the file-based indexer (main Recoll
|
24 |
// indexer). Document Ids are built from a concatenation of the file
|
24 |
// indexer). Document Ids are built from a concatenation of the file
|
25 |
// path and the internal path (ie: email number inside
|
25 |
// path and the internal path (ie: email number inside
|
26 |
// folder/attachment number/etc.) As the size of Xapian terms is
|
26 |
// folder/attachment number/etc.) As the size of Xapian terms is
|
27 |
// limited, the path is truncated to a maximum length, and completed
|
27 |
// limited, the Id path is truncated to a maximum length, and completed
|
28 |
// by a hash of the remainder. So the unique id looks like:
|
28 |
// by a hash of the remainder (including the ipath)
|
29 |
// /some/truncated/paHASHVALUE|ipath
|
|
|
30 |
|
29 |
|
31 |
extern void make_udi(const string& fn, const string& ipath, string &udi);
|
30 |
extern void make_udi(const string& fn, const string& ipath, string &udi);
|
32 |
|
31 |
|
33 |
#endif /* _FILEUDI_H_INCLUDED_ */
|
32 |
#endif /* _FILEUDI_H_INCLUDED_ */
|