payloadBoost.setValue(payloadScore);
// GSI: I suppose we could toString the payload, but I don't think that
// would be a good idea
payloadBoost.setDescription("scorePayload(...)");
ComplexExplanation result = new ComplexExplanation();
if (includeSpanScore) {
result.addDetail(nonPayloadExpl);
result.addDetail(payloadBoost);
result.setValue(nonPayloadExpl.getValue() * payloadScore);
result.setDescription("btq, product of:");
} else {
result.addDetail(payloadBoost);
result.setValue(payloadScore);
result.setDescription("btq(includeSpanScore=false), result of:");
}
result.setMatch(nonPayloadExpl.getValue() == 0 ? Boolean.FALSE
: Boolean.TRUE); // LUCENE-1303
return result;
}