public DocIdSet getDocIdSet(LeafReaderContext context, Bits acceptDocs) throws IOException {
// make sure there are terms to filter on
if (terms == null || terms.isEmpty()) return null;
final SortedBinaryDocValues values = fieldData.load(context).getBytesValues(); // load fielddata
return new DocValuesDocIdSet(context.reader().maxDoc(), acceptDocs) {
@Override
protected boolean matchDoc(int doc) {
values.setDocument(doc);
final int numVals = values.count();
for (int i = 0; i < numVals; i++) {