Fix "phantom positions" with OP_NEAR
commitbbff0cf91654dcb730ebd5dd21467a1ac5c79594
authorOlly Betts <olly@survex.com>
Wed, 20 Dec 2017 21:09:27 +0000 (21 10:09 +1300)
committerOlly Betts <olly@survex.com>
Wed, 20 Dec 2017 21:09:27 +0000 (21 10:09 +1300)
tree3cb40cd0cb3c5fb4d01f30a77c836dd58345c9a1
parenta7b56de9d7671d58ff8e0aecc1f87467b929db1b
Fix "phantom positions" with OP_NEAR

OP_NEAR would think a term without positional information occurred at
position 1 if it had the lowest term frequency amongst the OP_NEAR's
subqueries.
xapian-core/matcher/nearpostlist.cc
xapian-core/tests/api_backend.cc