On Thu, Jun 16, 2011 at 04:28:25PM -0300, Bruno Rezende
wrote:> When we use OP_ELITE_SET we can specify the number of terms we want to
> use. In http://trac.xapian.org/wiki/FAQ/EliteSet there is this text:
>
> "The number of terms which OP_ELITE_SET will use defaults to 10 (or
> ceil(sqrt(number_of_subqueries)) if there are more than 100
> subqueries), but may be set by specifying a parameter to the query
> constructor"
>
> is it possible to use only the fixed number of terms, or a fixed max
> number of terms, instead of using
'ceil(sqrt(number_of_subqueries))'
> (e.g. if I have 144 terms, instead of using 12 terms I'd like to use
> only 10 terms)?
Yes, that's what this part is saying (or trying to):
"may be set by specifying a parameter to the query constructor"
I'll add an example to the FAQ entry.
Cheers,
Olly