Hi,
While reading Lucene source code, I have a tiny question about the selection of threshold?threshold = value >>> 3.
eg. in NumericComparator#updateCompetitiveIterator(), as 'threshold = iteratorCost >>> 3' a condition for whether to update iterator
eg. in IndexOrDocValuesQuery, as 'threshold = cost() >>> 3' a condition for choosing indexScorerSupplier or dvScorerSupplier
So the selection of threshold base some theory or tradeoff or other reason?
Could I get some suggestion?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
While reading Lucene source code, I have a tiny question about the selection of threshold?threshold = value >>> 3.
eg. in NumericComparator#updateCompetitiveIterator(), as 'threshold = iteratorCost >>> 3' a condition for whether to update iterator
eg. in IndexOrDocValuesQuery, as 'threshold = cost() >>> 3' a condition for choosing indexScorerSupplier or dvScorerSupplier
So the selection of threshold base some theory or tradeoff or other reason?
Could I get some suggestion?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org