NEAR non-leaf subqueries

Jean-Francois Dockes jf at dockes.org
Thu Dec 29 18:21:41 GMT 2016


Hi,

Xapian 1.2 supports a query like:

   (A OR B) NEAR (C OR D)

and distributes the factors to create something like:

    (A NEAR 2 C) OR (B NEAR 2 C) OR (B NEAR 2 C) OR (A NEAR 2 C)

Xapian 1.4 rejects such a query with the error message.

    OP_NEAR and OP_PHRASE only currently support leaf subqueries

Because Recoll expands the terms to their stem siblings at query time, its
NEAR queries are affected by the change (no stemming is used with PHRASE
queries, so these are unaffected).

Of course, it would be possible to effect the distribution at the
application level, but, before I get into this, I would like to know if
there is a plan to restore the 1.2 behaviour, or if the new one is
permanent ?

I saw https://trac.xapian.org/ticket/508, but it is rather inconclusive as
to the future plans.

Cheers,

jf



More information about the Xapian-discuss mailing list