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