.serialize(bean, false);
if (bean instanceof FieldAwareQuery) {
defaultSerialization.remove("field");
if (bean instanceof SpanTerm
&& ((SpanTerm) bean).getBoost() == null) {
SpanTerm spanTerm = (SpanTerm) bean;
defaultSerialization = new JSONObject().put(
spanTerm.getField(), spanTerm.getValue());
} else {
defaultSerialization = new JSONObject().put(
((FieldAwareQuery) bean).getField(),
defaultSerialization);
}