[Xapian-tickets] [Xapian] #663: Make ValueRangeProcessor return a Query object

Xapian nobody at xapian.org
Mon Nov 9 00:01:40 GMT 2015


#663: Make ValueRangeProcessor return a Query object
-------------------------+------------------------------
 Reporter:  olly         |             Owner:  olly
     Type:  enhancement  |            Status:  assigned
 Priority:  normal       |         Milestone:  1.3.4
Component:  QueryParser  |           Version:  SVN trunk
 Severity:  normal       |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+------------------------------

Comment (by olly):

 We can check the type of the returned query with `Query::get_type()` and
 could easily add a method to return the slot for a range query.  But then
 returning different query types for some cases wouldn't work so well.

 Perhaps some sort of `OP_FILTER_KEY` operator, which takes a single
 subquery and just delegates to it when evaluated, but serves as something
 which can store the "key" above (and could be added by `FieldProcessor` as
 well).  If we go that way, a clear name would be good.

 This is a fairly simple change (once we have a plan) and the benefit seems
 high so I'd quite like to try to do it for 1.4.0.

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



More information about the Xapian-tickets mailing list