[Xapian-tickets] [Xapian] #339: Change "name" method of Weight subclasses to return full name
Xapian
nobody at xapian.org
Mon Mar 2 20:06:51 GMT 2009
#339: Change "name" method of Weight subclasses to return full name
---------------------+------------------------------------------------------
Reporter: richard | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone: 1.1.0
Component: Other | Version: SVN trunk
Severity: normal | Blockedby:
Platform: All | Blocking:
---------------------+------------------------------------------------------
The PostingSource::name() method currently returns the full name of the
postingsource subclass (eg, Xapian::FooPostingSource). The Weight::name()
method just returns a short name (eg, "Foo"). These methods should be
consistent, and I think the full name approach is the best way to go.
This was already discussed in ticket #295, but I thought it useful to make
a ticket so it didn't get forgotten.
Changing this will break the remote protocol, and possibly API depending
how you define that, so marking for 1.1.0. On the other hand, it's very
unlikely to break user implemented weight classes.
It's easy to fix, anyway - there's a patch attached to ticket #295, too:
http://trac.xapian.org/attachment/ticket/295/weightnames.patch
--
Ticket URL: <http://trac.xapian.org/ticket/339>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list