try {
BooleanQuery booleanQuery = new BooleanQuery(disableCoord);
for (Object value : values) {
if (mapper != null) {
booleanQuery.add(new BooleanClause(mapper.termQuery(value, parseContext), BooleanClause.Occur.SHOULD));
} else {
booleanQuery.add(new TermQuery(new Term(fieldName, BytesRefs.toString(value))), BooleanClause.Occur.SHOULD);
}
}
booleanQuery.setBoost(boost);