[Xapian-tickets] [Xapian] #663: Make ValueRangeProcessor return a Query object
Xapian
nobody at xapian.org
Tue Oct 28 22:24:06 GMT 2014
#663: Make ValueRangeProcessor return a Query object
--------------------------------+-----------------------
Reporter: olly | Owner: olly
Type: enhancement | Status: new
Priority: normal | Milestone: 1.3.3
Component: QueryParser | Version: SVN trunk
Severity: normal | Keywords:
Blocked By: | Blocking:
Operating System: All |
--------------------------------+-----------------------
\
\
Currently VRP takes two strings by reference, potentially modifies them,
and returns a value slot number.
It would be more flexible and easier to wrap for the bindings if it took
two strings by const reference and returned a Query object instead.
There's an example in the getting started guide suggesting adding boolean
terms to restrict the number of docs a VRP has to consider, but this
doesn't really work as you can't insert an OP_FILTER for such terms at the
right place in the query tree - this change would allow that to work
nicely.
We could provide this in 1.4 by having two overloaded virtual forms of the
{{{operator()()}}} method with the existing and new signature, and have a
default implementation of the new method which calls the old.
\
\
\
--
Ticket URL: <http://trac.xapian.org/ticket/663>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list