[Xapian-tickets] [Xapian] #216: Inconsistent return values for percentage weights

Xapian nobody at xapian.org
Mon Jun 23 09:52:49 BST 2008


#216: Inconsistent return values for percentage weights
---------------------+------------------------------------------------------
 Reporter:  richard  |        Owner:  richard 
     Type:  defect   |       Status:  new     
 Priority:  normal   |    Milestone:  1.0.7   
Component:  Matcher  |      Version:  SVN HEAD
 Severity:  normal   |   Resolution:          
 Keywords:           |    Blockedby:          
 Platform:  All      |     Blocking:          
---------------------+------------------------------------------------------

Comment(by richard):

 I don't think this bug can be fixed with the current API without
 compromising efficiency quite significantly.  Therefore, it requires
 calcpercent.patch to be applied to allow searches to be performed without
 the percentage calculation code.

 However, calcpercent.patch defaults to not calculating percentages.  If
 this was applied to 1.0.7, it would break existing applications which
 require percentages.  Therefore, we would need to make the default be
 calculation of percentages.  If we then applied a fix for the bug, any
 existing application which didn't turn off percentage calculation would
 suffer a performance drop.

 Since this bug seems to be fairly benign (I found it when reading the
 code, rather than having a problem in a real application), I suggest
 simply bumping this issue to 1.1.x, and documenting that percentage
 results in 1.0.x are unreliable when not sorting by relevance.

-- 
Ticket URL: <http://trac.xapian.org/ticket/216#comment:8>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list