Fix stats passed to Weight with OP_SYNONYM
commit6b4d451261fd940e771178c75afa2e8b8b1b9fa6
authorOlly Betts <olly@survex.com>
Mon, 17 Oct 2016 08:40:57 +0000 (17 21:40 +1300)
committerOlly Betts <olly@survex.com>
Mon, 17 Oct 2016 08:40:57 +0000 (17 21:40 +1300)
tree297ec5c97a8bcfe902cf086e59017d6e6cd61c50
parent653c3e3e258ea8e1de188078cb12b727026043ba
Fix stats passed to Weight with OP_SYNONYM

Actually set want_unique_terms in SynonymPostList - previously it was
always false.

Disable optimisation of a term which matches all documents to an
all-docs postlist in the case where it's under OP_SYNONYM and the
weighting scheme needs wdf - weighted==false in this case, but
that's misleading.
xapian-core/api/leafpostlist.h
xapian-core/api/queryinternal.cc
xapian-core/matcher/localsubmatch.cc
xapian-core/matcher/localsubmatch.h
xapian-core/matcher/queryoptimiser.h
xapian-core/matcher/synonympostlist.cc
xapian-core/tests/api_weight.cc