[Xapian-tickets] [Xapian] #720: range vs filter prefixes

Xapian nobody at xapian.org
Mon May 9 02:40:09 BST 2016


#720: range vs filter prefixes
--------------------------------+-------------------
        Reporter:  olly         |      Owner:  olly
            Type:  defect       |     Status:  new
        Priority:  normal       |  Milestone:  1.4.x
       Component:  QueryParser  |    Version:  1.3.5
        Severity:  normal       |   Keywords:
      Blocked By:               |   Blocking:
Operating System:  All          |
--------------------------------+-------------------
 For a range, a prefix like `date:` needs to be specified with the `:`
 (which is because a prefix like `$` is allowed).

 But for a filter, the `:` is implicit, and you shouldn't explicitly
 include it.

 This is an inconsistency in the API, and those make the API harder to
 learn and use.

 I think the simplest solution is to optionally allow the `:` for a filter.
 Perhaps we should also encourage explicitly specifying it, with an eye to
 later supporting filters with a prefix which isn't "word and a colon",
 e.g. `#1234` instead of `sku:1234`, `@olly` instead of `user:olly`.

--
Ticket URL: <https://trac.xapian.org/ticket/720>
Xapian <//xapian.org/>
Xapian



More information about the Xapian-tickets mailing list