|
a/src/rcldb/rcldb.h |
|
b/src/rcldb/rcldb.h |
|
... |
|
... |
24 |
#include "refcntr.h"
|
24 |
#include "refcntr.h"
|
25 |
#include "rcldoc.h"
|
25 |
#include "rcldoc.h"
|
26 |
#include "stoplist.h"
|
26 |
#include "stoplist.h"
|
27 |
#include "rclconfig.h"
|
27 |
#include "rclconfig.h"
|
28 |
|
28 |
|
29 |
#ifndef NO_NAMESPACES
|
|
|
30 |
using std::string;
|
29 |
using std::string;
|
31 |
using std::vector;
|
30 |
using std::vector;
|
32 |
#endif
|
|
|
33 |
|
31 |
|
34 |
// rcldb defines an interface for a 'real' text database. The current
|
32 |
// rcldb defines an interface for a 'real' text database. The current
|
35 |
// implementation uses xapian only, and xapian-related code is in rcldb.cpp
|
33 |
// implementation uses xapian only, and xapian-related code is in rcldb.cpp
|
36 |
// If support was added for other backend, the xapian code would be moved in
|
34 |
// If support was added for other backend, the xapian code would be moved in
|
37 |
// rclxapian.cpp, another file would be created for the new backend, and the
|
35 |
// rclxapian.cpp, another file would be created for the new backend, and the
|
|
... |
|
... |
225 |
|
223 |
|
226 |
/** Build synthetic abstract for document, extracting chunks relevant for
|
224 |
/** Build synthetic abstract for document, extracting chunks relevant for
|
227 |
* the input query. This uses index data only (no access to the file) */
|
225 |
* the input query. This uses index data only (no access to the file) */
|
228 |
bool makeDocAbstract(Doc &doc, Query *query, string& abstract);
|
226 |
bool makeDocAbstract(Doc &doc, Query *query, string& abstract);
|
229 |
bool makeDocAbstract(Doc &doc, Query *query, vector<string>& abstract);
|
227 |
bool makeDocAbstract(Doc &doc, Query *query, vector<string>& abstract);
|
|
|
228 |
/** Retrieve detected page breaks positions */
|
|
|
229 |
int getFirstMatchPage(Doc &doc, Query *query);
|
230 |
|
230 |
|
231 |
/** Get document for given udi
|
231 |
/** Get document for given udi
|
232 |
*
|
232 |
*
|
233 |
* Used by the 'history' feature (and nothing else?)
|
233 |
* Used by the 'history' feature (and nothing else?)
|
234 |
*/
|
234 |
*/
|
|
... |
|
... |
322 |
string version_string();
|
322 |
string version_string();
|
323 |
|
323 |
|
324 |
extern const string pathelt_prefix;
|
324 |
extern const string pathelt_prefix;
|
325 |
extern const string start_of_field_term;
|
325 |
extern const string start_of_field_term;
|
326 |
extern const string end_of_field_term;
|
326 |
extern const string end_of_field_term;
|
327 |
#ifndef NO_NAMESPACES
|
327 |
extern const string page_break_term;
|
|
|
328 |
|
328 |
}
|
329 |
}
|
329 |
#endif // NO_NAMESPACES
|
|
|
330 |
|
|
|
331 |
|
330 |
|
332 |
#endif /* _DB_H_INCLUDED_ */
|
331 |
#endif /* _DB_H_INCLUDED_ */
|