[Xapian-tickets] [Xapian] #363: Avoid using the termlist when calculating percentages in get_mset()
Xapian
nobody at xapian.org
Tue May 5 15:25:09 BST 2009
#363: Avoid using the termlist when calculating percentages in get_mset()
---------------------+------------------------------------------------------
Reporter: richard | Owner: richard
Type: defect | Status: new
Priority: normal | Milestone: 1.1.1
Component: Matcher | Version: SVN trunk
Severity: normal | Blockedby:
Platform: All | Blocking: 181
---------------------+------------------------------------------------------
Currently, get_mset() uses the termlist for assigning percentages; it
iterates through the termlist looking up the weight for each term in it
and in the query, and adding them together to get a value for the weight
for 100%.
This requires an access to the termlist (which can be quite costly) and
also doesn't work correctly for synonyms, since these aren't in the
termlist.
This could be avoided by keeping track of which Xapian::Weight::Internal
objects were used for the best msetitem, or just of the sum of the
termweights for these.
This information would need to be serialised along with the MSet.
--
Ticket URL: <http://trac.xapian.org/ticket/363>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list