[Xapian-tickets] [Xapian] #268: Review ValueWeightPostingSource, possibly replace with a query operator

Xapian nobody at xapian.org
Tue Dec 16 15:34:51 GMT 2008


#268: Review ValueWeightPostingSource, possibly replace with a query operator
-------------------------+--------------------------------------------------
 Reporter:  richard      |        Owner:  richard  
     Type:  defect       |       Status:  assigned 
 Priority:  normal       |    Milestone:  1.1.0    
Component:  Library API  |      Version:  SVN trunk
 Severity:  normal       |   Resolution:           
 Keywords:               |    Blockedby:           
 Platform:  All          |     Blocking:           
-------------------------+--------------------------------------------------

Comment(by richard):

 I'm not sure whether it's particularly cleaner: the main way in which it
 might be cleaner is that it avoids any need to keep track of the
 PostingSource instance, and delete it after the match (and not before the
 match).  Because they're not reference counted, this can be awkward.

 Implementing OP_VALUE_WEIGHT the obvious way (ie, by making a new PostList
 for it) would work with multi databases without special effort.
 ValueWeightPostingSource currently doesn't work with multi databases.  As
 long as the operator was added to the serialisation format for queries, it
 would work for remote databases, too.

 I think I favour fixing ValueSources to work with remote and multi
 databases, instead, though.  It's more flexible, and easy enough to use.

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



More information about the Xapian-tickets mailing list