if (fromPadded == null || fromPadded.length() == 0)
if (toPadded == null || toPadded.length() == 0)
return SenseiDocIdSet.buildMatchAll(reader, "RANGE");
else
return new SenseiDocIdSet(new TermRangeFilter(field, fromPadded, toPadded, false,
include_upper).getDocIdSet(reader), defaultDocIdSetCardinalityEstimate, "RANGE " + field + " TO " + toPadded);
else if (toPadded == null|| toPadded.length() == 0)
return new SenseiDocIdSet(new TermRangeFilter(field, fromPadded, toPadded, include_lower,
false).getDocIdSet(reader), defaultDocIdSetCardinalityEstimate, "RANGE " + field + " FROM " + fromPadded);
return new SenseiDocIdSet(new TermRangeFilter(field, fromPadded, toPadded, include_lower,
include_upper).getDocIdSet(reader), defaultDocIdSetCardinalityEstimate, "RANGE " + field + " FROM " + fromPadded + " TO " + toPadded);
}
};
}