[Xapian-tickets] [Xapian] #467: Extend get_eset() signature to include optional prefix argument

Xapian nobody at xapian.org
Wed Apr 21 03:26:42 BST 2010


#467: Extend get_eset() signature to include optional prefix argument
-------------------------+--------------------------------------------------
 Reporter:  michelp      |       Owner:  olly
     Type:  enhancement  |      Status:  new 
 Priority:  normal       |   Milestone:      
Component:  Library API  |     Version:      
 Severity:  normal       |   Blockedby:      
 Platform:  All          |    Blocking:      
-------------------------+--------------------------------------------------
 Suggest Enquire.get_eset arguments include 'prefix' that rejects terms
 early that do not begin with the argument value.  My personal use case is
 to prevent upcalls into the python interpreter, triggering garbage
 collection, thread switching, signal handling, or whatever else, for what
 could be a very cheap and early check.

 I'm not a C++ programmer by any means, but I think the signature would
 look something like this:

 ESet
 Enquire::get_eset(Xapian::termcount maxitems, const RSet & rset, int
 flags,
                   double k, const ExpandDecider * edecider, const string
 &prefix) const


 In python it could be called with a prefix='string' argument.

-- 
Ticket URL: <http://trac.xapian.org/ticket/467>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list