[Xapian-tickets] [Xapian] #206: Serialization for Xapian::Query doesn't work for PostingSource queries. (was: Implement simple serialization for Xapian::Document and Xapian::Query)
Xapian
nobody at xapian.org
Sat Feb 7 00:23:42 GMT 2009
#206: Serialization for Xapian::Query doesn't work for PostingSource queries.
----------------------------+-----------------------------------------------
Reporter: armin.ronacher | Owner: richard
Type: enhancement | Status: assigned
Priority: normal | Milestone: 1.1.0
Component: Library API | Version: SVN trunk
Severity: minor | Resolution:
Keywords: | Blockedby: 295
Platform: All | Blocking:
----------------------------+-----------------------------------------------
Changes (by richard):
* milestone: 1.1.1 => 1.1.0
Old description:
> It would be good to have a simple and fast serialization for
> Xapian::Document
> and Xapian::Query so that a client can communicate with a Daemon etc.
> That
> format is allowed to change between Xapian versions and should just
> provide a
> simple way to do some inter-process/inter-server communication.
New description:
Attempting to serialise a query containing a PostingSource subquery raises
a UnimplementedError exception. Much of the code to implement this will
be part of the fix to ticket #295 - we will need to provide an extra
argument to the Query::unserialise method() to provide a way to lookup
possible PostingSource classes by name.
--
Comment:
Changeset [11829] applies this patch, together with some tests, and fixes
most of this bug. It's not possible to serialise queries containing
postingsources, so I'm updating the title and description to reflect this.
Also marking this for 1.1.0, since it's just about done, and the final fix
may require a tweak to the API.
--
Ticket URL: <http://trac.xapian.org/ticket/206#comment:8>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list