[Xapian-discuss] Ranking and term proximity

Olly Betts olly at survex.com
Thu Sep 15 07:41:34 BST 2011


On Tue, Sep 06, 2011 at 01:35:15PM +0200, goran kent wrote:
> In fact, there should be a flag to default all searches to NEAR (if
> there *is*, forgive my ignorance).

    queryparser->set_default_op(Xapian::Query::OP_NEAR);

Cheers,
    Olly



More information about the Xapian-discuss mailing list