Switch to unified view

a/src/rcldb/rclquery.h b/src/rcldb/rclquery.h
...
...
31
31
32
enum abstract_result {
32
enum abstract_result {
33
    ABSRES_ERROR = 0,
33
    ABSRES_ERROR = 0,
34
    ABSRES_OK = 1,
34
    ABSRES_OK = 1,
35
    ABSRES_TRUNC = 2,
35
    ABSRES_TRUNC = 2,
36
    ABSRES_TERMMISS = 3
36
    ABSRES_TERMMISS = 4
37
};
37
};
38
38
39
// Snippet entry for makeDocAbstract
39
// Snippet entry for makeDocAbstract
40
class Snippet {
40
class Snippet {
41
public:
41
public:
...
...
108
    // Abstract returned as one string
108
    // Abstract returned as one string
109
    bool makeDocAbstract(Doc &doc, std::string& abstract);
109
    bool makeDocAbstract(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(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
    abstract_result makeDocAbstract(Doc &doc, std::vector<Snippet>& abst, 
113
    int makeDocAbstract(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 term */
116
    int getFirstMatchPage(Doc &doc, std::string& term);
116
    int getFirstMatchPage(Doc &doc, std::string& term);
117
117
118
    /** Retrieve a reference to the searchData we are using */
118
    /** Retrieve a reference to the searchData we are using */
119
    RefCntr<SearchData> getSD() 
119
    RefCntr<SearchData> getSD()