Similarly to what we did with other filters. Additionally, DocValuesTermsQuery could support approximations.
Bulk close after 5.1 release
Commit 1662255 from Adrien Grand in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1662255 ]
LUCENE-6289: Replace DocValuesRangeFilter with DocValuesRangeQuery.
Commit 1662244 from Adrien Grand in branch 'dev/trunk'
[ https://svn.apache.org/r1662244 ]
I forgot to mention: I extracted some logic to oal.search.ConstantScoreWeight for these queries that return a constant score.
Here is a patch. The change is similar to what was done with DocValuesRangeFilter.