[Xapian-tickets] [Xapian] #697: Omega SORTREVERSE semantics confusing

Xapian nobody at xapian.org
Tue Feb 2 11:24:19 GMT 2016


#697: Omega SORTREVERSE semantics confusing
--------------------+-----------------------------
 Reporter:  olly    |             Owner:  olly
     Type:  defect  |            Status:  assigned
 Priority:  normal  |         Milestone:  1.3.5
Component:  Omega   |           Version:  1.3.3
 Severity:  normal  |        Resolution:
 Keywords:          |        Blocked By:
 Blocking:          |  Operating System:  All
--------------------+-----------------------------

Comment (by olly):

 Reviewing...

 A `-` prefix makes total sense for a named key with a numeric value (in
 algebraic terms, sorting on `-price` is indeed the reverse of sorting on
 `price`).  For a named key string value you can think of `-` being
 overloaded for strings I guess.  The analogy rather breaks down once you
 have numbered keys, as we do here.

 I think we ought to do something, and it'll be simpler for people to
 upgrade if we're essentially just renaming the parameter (and its value),
 which argues for a separate parameter.  So I'm leaning towards `SORTREV`
 for 1.4.x and we can think about decoupling for the future.

--
Ticket URL: <https://trac.xapian.org/ticket/697#comment:8>
Xapian <//xapian.org/>
Xapian



More information about the Xapian-tickets mailing list