[Xapian-tickets] [Xapian] #452: Add support for sorting documents missing a value to end

Xapian nobody at xapian.org
Fri Nov 6 00:49:18 GMT 2015


#452: Add support for sorting documents missing a value to end
-------------------------+------------------------------
 Reporter:  richard      |             Owner:  richard
     Type:  enhancement  |            Status:  new
 Priority:  normal       |         Milestone:  1.3.4
Component:  Library API  |           Version:  SVN trunk
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+------------------------------

Comment (by olly):

 Maybe it doesn't matter, but in general the patch doesn't actually allow
 what the title says - you'd have to set the default value to a string
 which sorts after any other string, but there isn't really such a string
 (a `std::string` of maximum length consisting entirely of byte 255 would
 work, but that's too large to be a practical solution).

 For cases on a more restricted domain (for example where
 sortable_serialise() is in use) it's fine, and that's even true for UTF-8
 text as `'\xff'` is not valid in UTF-8 - the string `"\xff"` serves as
 "UTF-8 infinity".

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



More information about the Xapian-tickets mailing list