|
a/src/rcldb/rclquery.h |
|
b/src/rcldb/rclquery.h |
|
... |
|
... |
104 |
bool getQueryTerms(std::vector<std::string>& terms);
|
104 |
bool getQueryTerms(std::vector<std::string>& terms);
|
105 |
|
105 |
|
106 |
/** Build synthetic abstract for document, extracting chunks relevant for
|
106 |
/** Build synthetic abstract for document, extracting chunks relevant for
|
107 |
* the input query. This uses index data only (no access to the file) */
|
107 |
* the input query. This uses index data only (no access to the file) */
|
108 |
// Abstract returned as one string
|
108 |
// Abstract returned as one string
|
109 |
bool makeDocAbstract(Doc &doc, std::string& abstract);
|
109 |
bool makeDocAbstract(const Doc &doc, std::string& abstract);
|
110 |
// Returned as a snippets vector
|
110 |
// Returned as a snippets vector
|
111 |
bool makeDocAbstract(Doc &doc, std::vector<std::string>& abstract);
|
111 |
bool makeDocAbstract(const Doc &doc, std::vector<std::string>& abstract);
|
112 |
// Returned as a vector of pair<page,snippet> page is 0 if unknown
|
112 |
// Returned as a vector of pair<page,snippet> page is 0 if unknown
|
113 |
int makeDocAbstract(Doc &doc, std::vector<Snippet>& abst,
|
113 |
int makeDocAbstract(const Doc &doc, std::vector<Snippet>& abst,
|
114 |
int maxoccs= -1, int ctxwords = -1);
|
114 |
int maxoccs= -1, int ctxwords = -1);
|
115 |
/** Retrieve page number for first match for term */
|
115 |
/** Retrieve page number for first match for "significant" query term
|
|
|
116 |
* @param term returns the chosen term */
|
116 |
int getFirstMatchPage(Doc &doc, std::string& term);
|
117 |
int getFirstMatchPage(const Doc &doc, std::string& term);
|
117 |
|
118 |
|
118 |
/** Retrieve a reference to the searchData we are using */
|
119 |
/** Retrieve a reference to the searchData we are using */
|
119 |
RefCntr<SearchData> getSD()
|
120 |
RefCntr<SearchData> getSD()
|
120 |
{
|
121 |
{
|
121 |
return m_sd;
|
122 |
return m_sd;
|