[Xapian-tickets] [Xapian] #400: Optimise AND_MAYBE when the RHS has a maxweight of 0

Xapian nobody at xapian.org
Tue Dec 3 08:12:08 GMT 2019


#400: Optimise AND_MAYBE when the RHS has a maxweight of 0
-----------------------------+-------------------------------
 Reporter:  Richard Boulton  |             Owner:  Olly Betts
     Type:  enhancement      |            Status:  assigned
 Priority:  normal           |         Milestone:  1.5.0
Component:  Matcher          |           Version:  git master
 Severity:  minor            |        Resolution:
 Keywords:                   |        Blocked By:
 Blocking:                   |  Operating System:  All
-----------------------------+-------------------------------
Comment (by Olly Betts):

 The wdf from the RHS of OP_AND_MAYBE under OP_SYNONYM needs thought still
 though.

 It looks to me like the optimisation of the factor 0 case means that we
 currently discard any wdf from the RHS in this case.  It'd certainly be
 more correct not to, and probably not hard to implement - we'd just need
 to have a flag recording if wdf is wanted for the current subquery (or
 perhaps just pass factor = -1.0 for this case and then we can check
 `factor == 0.0` or `factor <= 0.0` depending which cases we care about).
-- 
Ticket URL: <https://trac.xapian.org/ticket/400#comment:5>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list