|
a/src/rcldb/rcldb.cpp |
|
b/src/rcldb/rcldb.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.34 2005-11-06 11:16:53 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.35 2005-11-06 15:07:09 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
#include <stdio.h>
|
4 |
#include <stdio.h>
|
5 |
#include <sys/stat.h>
|
5 |
#include <sys/stat.h>
|
6 |
|
6 |
|
7 |
#include <iostream>
|
7 |
#include <iostream>
|
|
... |
|
... |
344 |
#ifdef HASHPATH
|
344 |
#ifdef HASHPATH
|
345 |
pathHash(fn, hash, PATHHASHLEN);
|
345 |
pathHash(fn, hash, PATHHASHLEN);
|
346 |
#else
|
346 |
#else
|
347 |
hash = fn;
|
347 |
hash = fn;
|
348 |
#endif
|
348 |
#endif
|
349 |
LOGDEB(("Rcl::Db::add: pathhash [%s]\n", hash.c_str()));
|
349 |
LOGDEB2(("Rcl::Db::add: pathhash [%s]\n", hash.c_str()));
|
350 |
|
350 |
|
351 |
string pathterm = "P" + hash;
|
351 |
string pathterm = "P" + hash;
|
352 |
newdocument.add_term(pathterm);
|
352 |
newdocument.add_term(pathterm);
|
353 |
|
353 |
|
354 |
// File path + internal path: document unique identifier for
|
354 |
// File path + internal path: document unique identifier for
|