[Xapian-discuss] OP_ELITE_SET and max number of terms

Olly Betts olly at survex.com
Fri Jun 17 01:58:40 BST 2011


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



More information about the Xapian-discuss mailing list