protected Query getRangeQuery(String field, String part1, String part2, boolean inclusive) throws ParseException {
FieldType ft = schema.getFieldType(field);
return new ConstantScoreRangeQuery(
field,
"*".equals(part1) ? null : ft.toInternal(part1),
"*".equals(part2) ? null : ft.toInternal(part2),
inclusive, inclusive);
}
protected Query getPrefixQuery(String field, String termStr) throws ParseException {
if (getLowercaseExpandedTerms()) {