Displaying 1 result from an estimated 1 matches for "set_elite_set_size".
2005 Feb 24
2
mutable Query objects
...plement a "deep copy" clone for Query objects and use it in
Enquire::set_query()
(b) make Query object immutable by replacing these non-const public
methods with extra constructor parameters:
void set_window(Xapian::termpos window);
void set_cutoff(Xapian::weight cutoff);
void set_elite_set_size(Xapian::termcount size);
Xapian::termcount set_length(Xapian::termcount qlen);
The private non-const methods are only used during construction, so
they're not a problem.
I tend to favour (b). The first three are tied to particular OPs
(OP_NEAR/OP_PHRASE, OP_WEIGHT_CUTOFF, and OP_ELITE_SET r...