|
a/src/common/rclconfig.h |
|
b/src/common/rclconfig.h |
|
... |
|
... |
63 |
// Data associated to a indexed field name:
|
63 |
// Data associated to a indexed field name:
|
64 |
struct FieldTraits {
|
64 |
struct FieldTraits {
|
65 |
string pfx; // indexing prefix,
|
65 |
string pfx; // indexing prefix,
|
66 |
int wdfinc; // Index time term frequency increment (default 1)
|
66 |
int wdfinc; // Index time term frequency increment (default 1)
|
67 |
double boost; // Query time boost (default 1.0)
|
67 |
double boost; // Query time boost (default 1.0)
|
68 |
FieldTraits(int i, double f) {wdfinc = i; boost = f;}
|
68 |
bool pfxonly; // Suppress prefix-less indexing
|
69 |
FieldTraits() : wdfinc(1), boost(1.0) {}
|
69 |
|
70 |
FieldTraits(const string& s) : pfx(s), wdfinc(1), boost(1.0) {}
|
70 |
FieldTraits()
|
|
|
71 |
: wdfinc(1), boost(1.0), pfxonly(false)
|
|
|
72 |
{}
|
71 |
};
|
73 |
};
|
72 |
|
74 |
|
73 |
class RclConfig {
|
75 |
class RclConfig {
|
74 |
public:
|
76 |
public:
|
75 |
|
77 |
|
|
... |
|
... |
237 |
/** mimeconf: get list of gui filters (doc cats by default */
|
239 |
/** mimeconf: get list of gui filters (doc cats by default */
|
238 |
bool getGuiFilterNames(vector<string>&) const;
|
240 |
bool getGuiFilterNames(vector<string>&) const;
|
239 |
/** mimeconf: get query lang frag for named filter */
|
241 |
/** mimeconf: get query lang frag for named filter */
|
240 |
bool getGuiFilter(const string& filtername, string& frag) const;
|
242 |
bool getGuiFilter(const string& filtername, string& frag) const;
|
241 |
|
243 |
|
242 |
/** fields: get field prefix from field name */
|
244 |
/** fields: get field prefix from field name. Use additional query
|
|
|
245 |
aliases if isquery is set */
|
243 |
bool getFieldTraits(const string& fldname, const FieldTraits **) const;
|
246 |
bool getFieldTraits(const string& fldname, const FieldTraits **,
|
|
|
247 |
bool isquery = false) const;
|
244 |
|
248 |
|
245 |
const set<string>& getStoredFields() const {return m_storedFields;}
|
249 |
const set<string>& getStoredFields() const {return m_storedFields;}
|
246 |
|
250 |
|
247 |
set<string> getIndexedFields() const;
|
251 |
set<string> getIndexedFields() const;
|
248 |
|
252 |
|
249 |
/** Get canonic name for possible alias */
|
253 |
/** Get canonic name for possible alias */
|
250 |
string fieldCanon(const string& fld) const;
|
254 |
string fieldCanon(const string& fld) const;
|
|
|
255 |
|
|
|
256 |
/** Get canonic name for possible alias, including query-only aliases */
|
|
|
257 |
string fieldQCanon(const string& fld) const;
|
251 |
|
258 |
|
252 |
/** Get xattr name to field names translations */
|
259 |
/** Get xattr name to field names translations */
|
253 |
const map<string, string>& getXattrToField() const {return m_xattrtofld;}
|
260 |
const map<string, string>& getXattrToField() const {return m_xattrtofld;}
|
254 |
|
261 |
|
255 |
/** Get value of a parameter inside the "fields" file. Only some filters
|
262 |
/** Get value of a parameter inside the "fields" file. Only some filters
|
|
... |
|
... |
319 |
ConfStack<ConfSimple> *mimeview; //
|
326 |
ConfStack<ConfSimple> *mimeview; //
|
320 |
ConfStack<ConfSimple> *m_fields;
|
327 |
ConfStack<ConfSimple> *m_fields;
|
321 |
ConfSimple *m_ptrans; // Paths translations
|
328 |
ConfSimple *m_ptrans; // Paths translations
|
322 |
map<string, FieldTraits> m_fldtotraits; // Field to field params
|
329 |
map<string, FieldTraits> m_fldtotraits; // Field to field params
|
323 |
map<string, string> m_aliastocanon;
|
330 |
map<string, string> m_aliastocanon;
|
|
|
331 |
map<string, string> m_aliastoqcanon;
|
324 |
set<string> m_storedFields;
|
332 |
set<string> m_storedFields;
|
325 |
map<string, string> m_xattrtofld;
|
333 |
map<string, string> m_xattrtofld;
|
326 |
|
334 |
|
327 |
void *m_stopsuffixes;
|
335 |
void *m_stopsuffixes;
|
328 |
unsigned int m_maxsufflen;
|
336 |
unsigned int m_maxsufflen;
|