Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter numeric range terms against the term dictionary
previously, all numeric terms required to implement a numeric range search were passed to the disjunction query (possibly exceeding the disjunction clause limit) now, after producing the list of terms, we filter them against the terms which actually exist in the term dictionary. the theory is that this will often greatly reduce the number of terms and therefore reduce the likelihood that you would run into the disjunction term limit in practice. because the term dictionary interface does not have a seek API and we're reluctant to add that now, i chose to do a binary search of the terms, which either finds the term, or not. then subsequent binary searches can proceed from that position, since both the list of terms and the term dictionary are sorted.
- Loading branch information