|
a/src/rcldb/rcldb_p.h |
|
b/src/rcldb/rcldb_p.h |
|
... |
|
... |
118 |
bool getPagePositions(Xapian::docid docid, vector<int>& vpos);
|
118 |
bool getPagePositions(Xapian::docid docid, vector<int>& vpos);
|
119 |
int getPageNumberForPosition(const vector<int>& pbreaks, unsigned int pos);
|
119 |
int getPageNumberForPosition(const vector<int>& pbreaks, unsigned int pos);
|
120 |
|
120 |
|
121 |
bool dbDataToRclDoc(Xapian::docid docid, std::string &data, Doc &doc);
|
121 |
bool dbDataToRclDoc(Xapian::docid docid, std::string &data, Doc &doc);
|
122 |
|
122 |
|
|
|
123 |
size_t whatDbIdx(Xapian::docid id);
|
|
|
124 |
|
123 |
/** Retrieve Xapian::docid, given unique document identifier,
|
125 |
/** Retrieve Xapian::docid, given unique document identifier,
|
124 |
* using the posting list for the derived term.
|
126 |
* using the posting list for the derived term.
|
125 |
*
|
127 |
*
|
126 |
* @return 0 if not found
|
128 |
* @return 0 if not found
|
127 |
*/
|
129 |
*/
|
128 |
Xapian::docid getDoc(const string& udi, Xapian::Document& xdoc);
|
130 |
Xapian::docid getDoc(const string& udi, int idxi, Xapian::Document& xdoc);
|
129 |
|
131 |
|
130 |
/** Retrieve unique document identifier for given Xapian document,
|
132 |
/** Retrieve unique document identifier for given Xapian document,
|
131 |
* using the document termlist
|
133 |
* using the document termlist
|
132 |
*/
|
134 |
*/
|
133 |
bool xdocToUdi(Xapian::Document& xdoc, string &udi);
|
135 |
bool xdocToUdi(Xapian::Document& xdoc, string &udi);
|
134 |
|
136 |
|
135 |
/** Check if doc is indexed by term */
|
137 |
/** Check if doc is indexed by term */
|
136 |
bool hasTerm(const string& udi, const string& term);
|
138 |
bool hasTerm(const string& udi, int idxi, const string& term);
|
137 |
|
139 |
|
138 |
/** Compute list of subdocuments for a given udi. We look for documents
|
140 |
/** Compute list of subdocuments for a given udi. We look for documents
|
139 |
* indexed by a parent term matching the udi, the posting list for the
|
141 |
* indexed by a parent term matching the udi, the posting list for the
|
140 |
* parentterm(udi) (As suggested by James Aylett)
|
142 |
* parentterm(udi) (As suggested by James Aylett)
|
141 |
*
|
143 |
*
|
|
... |
|
... |
147 |
*
|
149 |
*
|
148 |
* Finer grain parent-child relationships are defined by the
|
150 |
* Finer grain parent-child relationships are defined by the
|
149 |
* indexer (rcldb user), using the ipath.
|
151 |
* indexer (rcldb user), using the ipath.
|
150 |
*
|
152 |
*
|
151 |
*/
|
153 |
*/
|
152 |
bool subDocs(const string &udi, vector<Xapian::docid>& docids);
|
154 |
bool subDocs(const string &udi, int idxi, vector<Xapian::docid>& docids);
|
153 |
|
155 |
|
154 |
/** Check if a page position list is defined */
|
156 |
/** Check if a page position list is defined */
|
155 |
bool hasPages(Xapian::docid id);
|
157 |
bool hasPages(Xapian::docid id);
|
156 |
};
|
158 |
};
|
157 |
|
159 |
|