Optimise AND_MAYBE when the RHS has a maxweight of 0
|Reported by:||Richard Boulton||Owned by:||Olly Betts|
If the RHS of an AND_MAYBE clause has an RHS whose maxweight is 0 (or becomes zero during the search), the AND_MAYBE could be replaced with the LHS. The attached patch does this. However, it doesn't quite work, due to two side effects:
- if the AND_MAYBE is part of an OP_SYNONYM, the wdf of the RHS of the AND_MAYBE can have an effect, but will be lost.
- if a percentage weight calculation is in effect, the count of the number of terms matching will miss those in the AND_MAYBE.
This doesn't change API at all, so doesn't need to be fixed during the 1.1 series.
Change History (9)
comment:4 by , 7 months ago
|Milestone:||1.4.x → 1.5.0|
|Status:||new → assigned|
|Version:||SVN trunk → git master|