[Xapian-tickets] [Xapian] #206: Serialization for Xapian::Query doesn't work for PostingSource queries.

Xapian nobody at xapian.org
Tue Feb 17 08:55:11 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:           
----------------------------+-----------------------------------------------

Comment(by richard):

 I've just attached a patch which adds a SerialisationContext object which
 allows users to register their own posting sources (or weighting schemes).
 The patch modifies the query unserialisation methods to use this, and also
 modifies the remoteserver to use this internally.

 The patch is lacking tests (both in core and in the bindings) - though it
 passes the existing testsuite.  It would probably be best if RemoteServer
 was also modified to expose the SerialisationContext, too.

 [It also fails to delete old registered posting sources or weighting
 schemes when they're replaced by one of the same name - this is just an
 oversight which is marked by FIXME in the patch, and which is easily
 resolved.]

 Comments on the design welcome!

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



More information about the Xapian-tickets mailing list