On Tue, Oct 26, 2021 at 10:58 AM Alan Woodward <romseyg...@gmail.com> wrote: > > We have SortedSetDocValuesField.newSlowRangeQuery() which does something > close to what you want here, I think. >
See also DocValuesRewriteMethod which might be useful, at least as a start. You'd have to express the "SetQuery" as a MultiTermQuery for that to work, but It would be more efficient than a disjunction of slow-exact-queries. e.g. for each segment it will first sequentially fill a bitset corresponding to the ordinals matching the terms in your set. Then when checking a single doc, it looks at document's ordinals to see if one is in the bitset. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org